hi
I am creating travels project, in left part of my datagrid of my default page i placed all the products such as india tour ,world tour etc and if v click any product it will redirect to itennary page according to their ID's
my problem is i inserted new product as Hotel Booking and i want to place textbox and a button in the itenary page and if v click india tour or world tour i want those textbox and button should be not visible and if v click Hotel booking then those textbox and button should visible
Please solve my problem its urgent.
Thank you in advance
raghu
raghu.8
0
Light Poster
Recommended Answers
Jump to PostButton2.Visible = false; // to hide button textBox1.Visible = false; // to hide textbox Button2.Visible = true; // to show button textBox1.Visible = false; // to show textbox
Jump to PostYou haven't given us enough information to give you specific codeing. How do you know what itinery to show in the itinery page? Are you using the query string or session variable? Codeing will be different depending.
The only coding that would always be the same is the snippet …
Jump to PostI'm still not entirely sure what you want to do. I take it english is not your first language?
Are india tour and world tour catagories ?
So I choose a category, then I see a datagrid of tour products, one of which is a hotel booking ? …
Jump to PostRight, so just set the visible properties of the necessary controls in the page load event handler of itenary.aspx
I don't get what the problem is ??????
Jump to PostPost the error then, I 'm afraid I left my crystal ball at home. :)
Well actually I can hazard a guess. You cast the QueryString variable to integer, then you try and comapre it to a string lilteral ??
if (id == "hotel booking")
is your …
All 18 Replies
Jx_Man
987
Nearly a Senior Poster
Featured Poster
raghu.8
0
Light Poster
scru
commented:
Well then make it easier to read your question. It's very confusing!
+0
hollystyles
113
Veteran Poster
raghu.8
0
Light Poster
hollystyles
113
Veteran Poster
raghu.8
0
Light Poster
hollystyles
113
Veteran Poster
raghu.8
0
Light Poster
hollystyles
113
Veteran Poster
raghu.8
0
Light Poster
hollystyles
113
Veteran Poster
raghu.8
0
Light Poster
raghu.8
0
Light Poster
hollystyles
113
Veteran Poster
hollystyles
113
Veteran Poster
raghu.8
0
Light Poster
hollystyles
113
Veteran Poster
raghu.8
0
Light 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.