Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Learning to use JavaScript with ASP.Net
Message
De
20/05/2009 16:18:44
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Application:
Web
Divers
Thread ID:
01400821
Message ID:
01401107
Vues:
44
>>
>>This goes back to a topic I had discussed with you earlier about a grid and timing the events right to use the business object for inserts before the grid adds a row and presents it to the user for editing without all the default values. What I ended up doing is adding my own button that causes a postback (inside an update panel) to add a row to
>
>You can put this code pretty much anywhere in your code-behind. In your case, I'd put it right after you've added the new row. Assuming your EditAfterNew() function is always available, you just inject a call to this function with the grid ID.
>
>
>string script = string.Format("EditAfterNew('{0}');", this.grdTrucks.ClientID);
>Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "JustNameOfScript", script, true);
>
Great Paul Thanks. I will try that out.
What is "JustNameOfScript" for ?
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform