472,378 Members | 1,580 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Multiple querystring in datagrid

Amy
All,
I'd like to use multiple querystring in hyperlink column in Datagrid

I want to create a hyperlink column in my datagrid which contains two query
strings
ex: nextpage.aspx?id=11&name=somename
for one querystring i would use nextpage.aspx?id={0}
when i trying nextpage.aspx?id={0}&name={1} its raising errors

Thanks,
Amy
Jul 21 '05 #1
1 1976
Hi

Please check the following articles

http://www.datawebcontrols.com/faqs/...ngValues.shtml

Some times its necessity for programmers to send multiple parameters in

Datagrid using HyperLink Column. Following code explains how to do
< asp:TemplateColumn HeaderText="View Details">
< ItemTemplate>
< asp:Hyperlink runat="server" Text='View Details'

NavigateUrl='< %# "page.aspx?ViewID=" &
Server.UrlEncode(Container.DataItem("ListingNo"))
"&Param2="&Server.UrlEncode(DropDown1.SelectedItem .Value)%> '

ID="Hyperlink1" NAME="Hyperlink1" />
< /ItemTemplate>
< /asp:TemplateColumn>

HTH
Ravikanth[MVP]

"Amy" wrote:
All,
I'd like to use multiple querystring in hyperlink column in Datagrid

I want to create a hyperlink column in my datagrid which contains two query
strings
ex: nextpage.aspx?id=11&name=somename
for one querystring i would use nextpage.aspx?id={0}
when i trying nextpage.aspx?id={0}&name={1} its raising errors

Thanks,
Amy

Jul 21 '05 #2

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

Similar topics

7
by: Evan Kontos | last post by:
I am using the window.open function to open a small window and I am using GET to get values back from that window. I want to be able to open another from the second window but I get an error...
2
by: Carl Howarth | last post by:
Hi, I need to bind data to a datagrid and have a custom hyperlink column that has multiple elements in the querystring: Page.aspx?1=Hello&2=Goodbye... The query string needs to be populated...
3
by: Jon | last post by:
Hi, I have hyperlink objects in a datagrid that redirect the user back to the current page with this syntax: <a href="mypage.aspx?id=foo"> When the page reloads, code in Page_Load then takes...
2
by: Hazzard | last post by:
I am trying to figure out how to add an additional value to a querystring collection so that when I click on a datagrid cell, there will be a key to distinguish it from another column's...
3
by: crjunk | last post by:
I have 4 different databases that I'm having to pull data from in order to populate a datagrid. I am able to do this, but my problem is that because I'm pulling the data from 4 different...
1
by: Amy | last post by:
All, I'd like to use multiple querystring in hyperlink column in Datagrid I want to create a hyperlink column in my datagrid which contains two query strings ex:...
4
by: Jeff | last post by:
Hey gang. I have a form to select multiple names. The problem I am having, is when it gets to the asp page. If I click 1 name, it will process. But multiple names gives me an error: Either BOF or...
1
by: Beginner | last post by:
I am a newbie in ASP.NET. I am using VB.NET to write my codes. I have a project to be done this week but I am stucked on one thing. I want to make a datagrid of a form and display the form multiple...
4
by: Landes | last post by:
Hiya, I have the following code in a C# aspx page, but I keep getting the error that 'ExceptionCategoryId_' not found. Looks like the QueryString is not returning anything. <asp:DataGrid...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
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. Background colors can be used to highlight important...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

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.