I have a form1 and form2. in form1 there is a textbox which consist any department. and the another textbox consist room related to only these depatment. besides room textbox there is a searchbutton. which opens form2. form 2 consist a gridview. and this grid view should be filled by only selected department in form1. and when this form2 opens then in grid view also shows room is booked or free...
vivekagrawal
-3
Light Poster
Recommended Answers
Jump to PostSounds like a plan. What have you done so far?
Jump to PostUse Querystring concept .pass department and rooms as string type to second form.
Step1: On Button Click- form1
Response.Redirect("Form2.aspx?Dept=" + Textbox1.Text +"&Rooms="+Textbox2.Text);
Step2 : Bind Grid --Form2
String Dept=Request.QueryString["Dept"].tostring();
String Rooms=Request.Querystring["Rooms"].tostring();
Step 3: Pass these two variables to Stored Procedure.
I thought this will help you.
thanks
Jump to PostResponse.Redirect is for web pages, he said he had forms so won't work here
All 9 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
chithrasujith
0
Newbie Poster
Momerath
1,327
Nearly a Senior Poster
Featured Poster
vivekagrawal
-3
Light Poster
Momerath
1,327
Nearly a Senior Poster
Featured Poster
vivekagrawal
-3
Light Poster
Momerath
commented:
Needs to show some effort
-1
Mitja Bonca
commented:
I agree!
+0
Momerath
1,327
Nearly a Senior Poster
Featured Poster
emmyt
0
Newbie Poster
SunnyVunny
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.