473,386 Members | 1,752 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,386 software developers and data experts.

How do I put multiple objects in a NavigateURL link?

jm
Consider:

NavigateUrl= '<%# DataBinder.Eval(Container.DataItem, "ORDER_ID",
"informationmain.aspx?txt_command=EDIT&case_id={0} &ddl1_selected_value=1&ddl2_selected_text=Complain t")
%>

Obviously, the last part is hard coded (past the {0}).

What I am trying to find out is how to put more than just the {0} in
there and that from a variable. In the code above, I have a variable,
but I don't know how to put it in the datagrid format here. I hope
this make sense. Thank you for any help.

So,

NavigateUrl= '<%# DataBinder.Eval(Container.DataItem, "ORDER_ID",
"informationmain.aspx?txt_command=EDIT&case_id={0} &ddl1_selected_value=variable2&ddl2_selected_text= variable2")
%>

Thank you again.
Nov 18 '05 #1
1 1310
One way:

NavigateUrl= '<%# CreateUrl(DataBinder.Eval(Container.DataItem,
"ORDER_ID"));

private string CreateUrl( string input)
{
return "informationmain.aspx?txt_command=EDIT&case_id =" + input +
"&ddl1_selected_value=1&ddl2_selected_text="+ variable2 ;
}
-- I may have some syntax errors there, but you get the idea.
--Peter

"jm" <jo*************@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
Consider:

NavigateUrl= '<%# DataBinder.Eval(Container.DataItem, "ORDER_ID",
"informationmain.aspx?txt_command=EDIT&case_id={0} &ddl1_selected_value=1&ddl
2_selected_text=Complaint") %>

Obviously, the last part is hard coded (past the {0}).

What I am trying to find out is how to put more than just the {0} in
there and that from a variable. In the code above, I have a variable,
but I don't know how to put it in the datagrid format here. I hope
this make sense. Thank you for any help.

So,

NavigateUrl= '<%# DataBinder.Eval(Container.DataItem, "ORDER_ID",
"informationmain.aspx?txt_command=EDIT&case_id={0} &ddl1_selected_value=varia
ble2&ddl2_selected_text=variable2") %>

Thank you again.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Coder Coder | last post by:
Hi I want the DataNavigateUrlFormatString value to be of a couple of different variables such as: DataNavigateUrlFormatString="mypage?val={0}&val2={1} where now I have the following...
4
by: Craig | last post by:
I'm adding several controls to a cell, but want them all to have a <BR> between them. What's the easiest way? I'm doing something like this: HyperLink link = new Hyperlink(); //I setup the...
4
by: Amir Eshterayeh | last post by:
Dear Friends My asp hyperlink goes to relative address instead of absolute. I like navigate url goes to outsite link like www.asp.net but now, it goes to www.mysite/www.asp.net please help....
1
by: Greg Reynolds | last post by:
Hi, I need to create datagrid hyperlink columns with multiple parameters in the URL. In my research on how to do this, it is recommended to create a template column which I have done. The code...
3
by: euan | last post by:
Hey guys, I am just playing around with asp.net 2.0 and I was reading about the image control (for mobile designer) and thought that would be handy. So I have created: Do While...
5
by: Vear | last post by:
Sorry, very Newbie question here. I don't know what I'm doing wrong. I have to use a <asp:hyperlink> to go to another page. I want to pick up the value in a text box. This is what I've tried and It...
0
by: David W | last post by:
I would like to be able to evaluate an expression in the NavigateUrl property of a HyperLink control. This is not a bound control. I know I can do this easily in code-behind, but do not want to...
1
by: Jason Huang | last post by:
Hi, My ASPNet HyperLink NavigateUrl is like http://192.168.0.1/OtherFolder/§ÚªºÀɮק¨/myfile, the OtherFolder is another folder rather than the ASPNet application's default folder in the IIS....
6
by: Dmitry Duginov | last post by:
I have a FormView and a HyperLink on the page. If I use the following code behind (hooked up to Hyperlink's OnLoad event), it renders fine protected void link_Load(object sender, EventArgs e)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.