Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture a prior form value
Message
 
 
To
14/05/2008 11:58:14
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01317012
Message ID:
01317047
Views:
10
Found some sample for the first part, though now I see that it's a very strange code (I haven't written it)
        protected void SelectedIndexChanged(object sender, EventArgs e)
        {

            String ProgramID = this.GridView2.Rows[GridView2.SelectedIndex].Cells[0].Text;

            ProgramID = this.GridView2.Rows[GridView2.SelectedIndex].Cells[1].Text;


            ProgramID = this.GridView2.Rows[GridView2.SelectedIndex].Cells[2].Text;
>OK, how do you do that?
>Like I said, I'm a total newbie.
>Currently I have this in the gridview select
>
>    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
>        Response.Redirect("edituser.aspx")
>    End Sub
>
>:)
>
>>One of the way would be to pass the ID of the selected record as a QueryString.
>>
>>>As a .NET total newbie, can someone tell me how to capture a value from the preceeding page control? Something like :
>>>
>>>myvalue = request.gridview1.value    ???
>>>
>>>
>>>And would the code properly be placed in the load event of the second page if we wanted to use the value to establish a control on the new page?
>>>
>>>Specifically, page1 has a grid where the user selects a record. Control is then transferred to page2 which contains a formview that displays the record details.
>>>
>>>
>>>Thanks
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform