473,837 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6022
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.Data Item,
"Id") %>'

Thanks,
Arjen

"Jason L Lind" <Ja********@dis cussions.micros oft.com> schreef in bericht
news:02******** *************** ***********@mic rosoft.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
4330
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 page has text boxes, list boxes, and radio buttons. I also placed two buttons on the form. One submits the form to redirect to the Crystal Web Viewer (genCREGReports.ASP). The other one executes VB code in a vbs document that spawns some more code to run a stored procedure with the values from...
0
1652
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 doc. Here's the partial code, any help would be appreciated. I have been using system.drawing.printing method but not much help since drawing.printing required printDocument() object which specially
2
3756
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 laboratory. The degree of sensitivity varies among test methods; consequently, some results are reported to 2 decimal places, some to 3, etc. The Results subform consists of Test Parameter, Result, Report Unit, Analysis Date, Analyst and other fields. The test parameter control is a drop-down...
2
1840
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 the following code (let's say that the web browser control is named wbb): object o = System.Reflection.Missing.Value; wbb.Navigate("about:blank", ref o, ref o, ref o, ref o); while (wbb == null) Application.DoEvents(); mshtml.HTMLDocument doc = (mshtml.HTMLDocument)wbb.Document;...
2
270
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 doesn't work. Jim
1
2120
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 am setting breakpoints in 4 different *.py files.. Breakpoints in the main file are working OK, but any breakpoints in imported files are not... The three imported files are open in Komodo and are in the same local directory as the main file (in the python24/Lib/site-packages tree)... The code...
2
2502
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 able to navigate between Page1.aspx and Page2.aspx However, I only want users who submit a valid username and password on Login.aspx to be able to navigate to Page3.aspx and Page4.aspx How do I set up my web.config file in order to have this functionality?
2
17980
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: webBrowser.Navigate(http://finao.net/post_dkp.php?database=40); Basically all this script does is create an xml output file. After the navigate, the function stops and is triggered again when webbrowser_DocumentCompleted fires and then the XML file is read by the
3
20853
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 volunteer pool using either MS Access 2002 or Excel spreadsheets. I've used this software in previous positions and was very comfortable with the software but I'm a bit of a novice in setting up databases. However,I learn quickly. I am looking for something like an Access database template that I can...
0
9827
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10863
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10560
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10609
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6987
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5838
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4468
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.