I am trying to pass values from my gridview to another form but the problem that i have 3 textboxes with the same column name.. so i need to take the first value to the first textbox and second value to the second textbox etc...
Mycode in gridview is :
- <asp:HyperLinkField Text="Edit" Target="_blank" DataNavigateUrlFields="StdId,Student Name,Gender,Date Of Birth,School,Phone Number1,Email,Start Date" DataNavigateUrlFormatString="NewStd.aspx?StdId={0}&Student Name={1}&Gender={2}&Date Of Birth={3}&School={4}&Phone Number1={5}&Email={6}&Start Date={7}" />
In my second form when page loads:
- if (!IsPostBack)
- {
- string id = Request.QueryString["StdId"];
- Label2.Text = id;
- firstxt.Text + midtxt.Text + Lasttext.Text = Request.QueryString["Student Name"];
-
- Genderdroplist.SelectedValue= Request.QueryString["Gender"];
- DOBTxt.Text = Request.QueryString["Date Of Birth"];
- Schooltxt.Text = Request.QueryString["School"];
- Numbertxt.Text = Request.QueryString["Phone Number1"];
- EmailTxt.Text = Request.QueryString["Email"];
- StartDatetxt.Text = Request.QueryString["Start Date"];
- }
so the problem is in the student name field with these 3 textboxes..
any help please with this code.
thanks