Accessing Client JavaScript after Selecting Row from Grid

J

Jason

Hello,

I am currently working with Visual Studio 2008 and asp.net 3.0 I have
the following question I hope that someone can help me with:

1) I have a GridView with rows that I read from a database.

2) The user can select a row from the grid, which fires the event:

protected void MyGrid_SelectedIndexChanged(object sender,
EventArgs e)
{
<update text field on form>
<call client javascript function>
}

3) I have the <update text field on form> portion of the routine
working, but need to call the <call client javascript function> in
order to finish the processing.

4) I'm not sure how to <call client javascript function> I've seen
my web searching comments on adding something like the following in
the Page_Load:

MyMain.Attributes.add("onclick", "jsfunction();")

But this would execute the javascript first. I want the client side
JavaScript to be executed AFTER the grid does it's updating.

Would welcome any advice, suggestions, etc.?

Thanks
Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top