TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rajaa Khalifeh
NA
53
6.5k
Passing 3textbox Values into another page using query string
Apr 11 2020 11:18 AM
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"
];
// error in this code
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
Reply
Answers (
4
)
How to print like the passbook in Bank Transactions?
How to remove 2 Zeros in the beginning of a string