By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,680 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,680 IT Pros & Developers. It's quick & easy.

passing parameter through navigateUrl

P: 24
i am having problem with passing parameter through navigateUrl property of a hyperlink.
in the page where i am using the hyperlink , i am getting the data thorugh commonutility. i want to pass this data to the next page through navigateUrl. plz help.
Jun 4 '09 #1
Share this Question
Share on Google+
7 Replies

Expert 5K+
P: 7,872
append the ?name=value&name=value to the url and then parse them on your next page?
Jun 8 '09 #2

P: 24
i am getting the value in the code behind, in the .cs page. how can i use that variable in the aspx page?? the value is coming from the previous page.
Jun 9 '09 #3

Expert 5K+
P: 7,872
Well the code page BUILDS the aspx page, so if you have the value in the code section, just change a value on your aspx page?
Jun 10 '09 #4

P: 24
let me explain. i have a page where a bulleted list exists , with the list items as hotel, car , flight , railways.
each list item is hyperlinked to the booking form.
the parameters to pass are name of the place and booking type.
passing the booking type is not a problem.
but the name of the place comes from the previous page.
i get it by the code
string placename = commonutility.getQueryStringValue("placename");
in the .cs page.
how can i pass this value in the current page?
plz tell me with necessary code.
Jun 11 '09 #5

Expert 5K+
P: 7,872
Write it out to the links in your bulleted list?
What custom libraries are you using that you have a "commonutility" object?
Jun 11 '09 #6

P: 24
well, i solved it. i think i should post it here so that someone else can be helped.

i used the following code in the .cs page

bl1.items.add( new listitem( "hotel", "page.aspx?aa"+ bb));

bl1 is the id of the bulleted list.
Jun 12 '09 #7

Expert 5K+
P: 7,872
Yup, just put it in the link. (See my first post)
Jun 12 '09 #8

Post your reply

Sign in to post your reply or Sign up for a free account.