472,353 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Setting the navigate URL

Hi,

How can I set the navigate URL with parameter without extra code?

I have now this:
NavigateUrl="~/test2.aspx?ID=" + <%# Bind("Id") %>

There must be a way to do this with a string function....

Thanks for help!
Nov 19 '05 #1
5 5901
Check out the stringbuilder function...

Dave

Nov 19 '05 #2
Generally the proper way of setting things like that is in the code behind.

However, if for whatever reason you want to do it this way, it would look
more like:
NavigateUrl="~/test2.aspx?ID=<%# Bind("Id") %>" inside the element that your
are setting that attribute on.

Jason Lind
"Arjen" wrote:
Hi,

How can I set the navigate URL with parameter without extra code?

I have now this:
NavigateUrl="~/test2.aspx?ID=" + <%# Bind("Id") %>

There must be a way to do this with a string function....

Thanks for help!

Nov 19 '05 #3
Also, I'm not completly sure if you can set server controls like that...

Jason Lind

"Arjen" wrote:
Hi,

How can I set the navigate URL with parameter without extra code?

I have now this:
NavigateUrl="~/test2.aspx?ID=" + <%# Bind("Id") %>

There must be a way to do this with a string function....

Thanks for help!

Nov 19 '05 #4
This is not posible. ;-(
Nov 19 '05 #5
Ha, I get it done by this:
NavigateUrl='<%# "~/test2.aspx?ID=" + DataBinder.Eval(Container.DataItem,
"Id") %>'

Thanks,
Arjen

"Jason L Lind" <Ja********@discussions.microsoft.com> schreef in bericht
news:02**********************************@microsof t.com...
Also, I'm not completly sure if you can set server controls like that...

Jason Lind

"Arjen" wrote:
Hi,

How can I set the navigate URL with parameter without extra code?

I have now this:
NavigateUrl="~/test2.aspx?ID=" + <%# Bind("Id") %>

There must be a way to do this with a string function....

Thanks for help!

Nov 19 '05 #6

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

Similar topics

1
by: Jim Quast | last post by:
I have an ASP page and a CREGReports002.vbs file coded to export data to excel. I do this by building variables in a stored procedure. The ASP...
0
by: DotNetDummy | last post by:
Hi all, I am trying to set the printing setting e.g duplex mode etc. on a default printer when I.E object started printing a particular html...
2
by: John Hargrove | last post by:
I'm having trouble setting decimal place values in the results field of a sample management database I'm building for an environmental testing...
2
by: Dan | last post by:
I'd like to display some HTML code in a form using the axwebbrowser control, without having to create a temporary file to navigate to. I'm trying...
2
by: newgenre | last post by:
running the setup it wants to provide "the SAPWD" switch. I assume it wants me to run from command prompt. Does it mean "C:\setup.exe -SAPWD"? That...
1
by: jeem | last post by:
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and...
2
by: RAB | last post by:
I am designing an application. I have 5 web pages. Page1.aspx, Page2.aspx, Page3.aspx, Page4.aspx and Login.aspx I want any user to freely be...
2
by: Ryan Ramsey | last post by:
I have been chasing this one down for a week and have narrowed it down to a machine issue. I have the following code:...
3
by: lsmith | last post by:
Dear group, I am the new volunteer coordinator for a non-profit organization in Tucson, AZ. One of my main focuses is to develop our own...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.