Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Learning to use JavaScript with ASP.Net
Message
From
20/05/2009 16:18:44
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Application:
Web
Miscellaneous
Thread ID:
01400821
Message ID:
01401107
Views:
45
>>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform