473,410 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

passing parameter through navigateUrl

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
7 5335
Plater
7,872 Expert 4TB
append the ?name=value&name=value to the url and then parse them on your next page?
Jun 8 '09 #2
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
Plater
7,872 Expert 4TB
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
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
Plater
7,872 Expert 4TB
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
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
Plater
7,872 Expert 4TB
Yup, just put it in the link. (See my first post)
Jun 12 '09 #8

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

Similar topics

0
by: Viktor Popov | last post by:
I am trying to do that in ASP.NET/C#: ds.Tables.DefaultView.RowFilter="EstateID= ' '"; In the HTML I use REPEATER and: <asp:HyperLink id="lnkGo" runat="server"...
0
by: Viktor Popov | last post by:
I am trying to do that in ASP.NET/C#: ds.Tables.DefaultView.RowFilter="EstateID= ' '"; In the HTML I use REPEATER and: <asp:HyperLink id="lnkGo" runat="server"...
4
by: Lan H. Nguyen | last post by:
I have this line of code in my .aspx page <asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server" NavigateUrl='<%# "View.aspx?id=" + ID.ToString()%>'>View...
1
by: Paul D. Fox | last post by:
I'm trying to launch a Child Window from a hyperlink on a Datagrid and have it recieve multiple values from the Parent Window. Upon recieving the values in the Child Window, I need to access them...
4
by: SJ | last post by:
I want to pass a value in the NavigateURL property of the asp.HYPERLINK tag. right now i'm using something like this : asp:hyperlink id="Details" ImageUrl="images/btn.gif"...
10
by: amazon | last post by:
Our vender provided us a web service: 1xyztest.xsd file... ------------------------------------ postEvent PostEventRequest ------------------------------------- authetication authentication...
7
by: TS | last post by:
I was under the assumption that if you pass an object as a param to a method and inside that method this object is changed, the object will stay changed when returned from the method because the...
12
by: dave_dp | last post by:
Hi, I have just started learning C++ language.. I've read much even tried to understand the way standard says but still can't get the grasp of that concept. When parameters are passed/returned...
4
by: Deckarep | last post by:
Hello fellow C# programmers, This question is more about general practice and convention so here goes: I got into a discussion with a co-worker who insisted that as a general practice all...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.