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

send more than 1 parametr from hyperLinkColumn?

Hi all, i have HyperLinkColumn in DataGrid

<asp:HyperLinkColumn DataNavigateUrlField="PostID"
DataNavigateUrlFormatString="http://localhost/forum/posts.aspx?id={0}"
DataTextField="Subject" HeaderText="ôÅÍÁ">

This code work, but when i do next

<asp:HyperLinkColumn DataNavigateUrlField="PostID"
DataNavigateUrlFormatString="http://manushind/forum/posts.aspx?id={0}?page=1
" DataTextField="Subject" HeaderText="ôÅÍÁ">

i have error on page post.aspx
Syntax error converting the nvarchar value '20?page=1' to a column of data
type int.

'20?page=1' this is value id on Posts.aspx page.
String id=Request.QueryString["id"];

How i can solve my problem, and how i can send more than one parametr from
hyperLinkColumn.

Thanks.
Nov 17 '05 #1
1 1435
ups you right. Thanks.

"Antoni Biliardis" <an****@bd-tech.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Dmitri,

Key/value pairs in querystrings are separated with & not ? ex.
http://manushind/forum/posts.aspx?id={0}&page=1

Hope this helps,
Antoni
__________________________________________________ ___________
B&D Technologies
http://www.bd-tech.com
Antoni Biliardis - antoni(at)bd-tech.com
"Dmitri Manushin" <dm****@mail.ru> wrote in message
news:em*************@tk2msftngp13.phx.gbl...
Hi all, i have HyperLinkColumn in DataGrid

<asp:HyperLinkColumn DataNavigateUrlField="PostID"
DataNavigateUrlFormatString="http://localhost/forum/posts.aspx?id={0}"
DataTextField="Subject" HeaderText="ôÅÍÁ">

This code work, but when i do next

<asp:HyperLinkColumn DataNavigateUrlField="PostID"

DataNavigateUrlFormatString="http://manushind/forum/posts.aspx?id={0}?page=1
" DataTextField="Subject" HeaderText="ôÅÍÁ">

i have error on page post.aspx
Syntax error converting the nvarchar value '20?page=1' to a column of data type int.

'20?page=1' this is value id on Posts.aspx page.
String id=Request.QueryString["id"];

How i can solve my problem, and how i can send more than one parametr from hyperLinkColumn.

Thanks.


Nov 17 '05 #2

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

Similar topics

0
by: Jongmin | last post by:
Hi! I am making HyperLinkColumn in datagrid. It is simple to make the hyerlinkcolumn with one datafield. <asp:HyperLinkColumn Text="NAME" DataNavigateUrlField="NAME"...
3
by: SStory | last post by:
I have a style sheet for my site. It has various classes in it. It has <A: styles defined for all anchor tags. I have a datagrid in ASP.NET with a stylesheet linked to the page. It defines...
3
by: TJS | last post by:
how can I encrypt the querystring values for a HyperLinkColumn ? in example below I would like to encrypt value for field1 ======================================================...
1
by: Shawn | last post by:
Hi. I have a DataGrid with a hyperlinkcolumn, like this: <asp:hyperlinkcolumn datanavigateurlfield="prr_id" datanavigateurlformatstring="test.aspx?prr_id={0}"...
0
by: Atif Jalal | last post by:
I am using a Datagrid control and one of its column is a 'HyperLinkColumn'. The link text for this HyperLinkColumn is sometimes beyond 100 characters. I would like to display the link on multi-line...
5
by: sincethe2003 | last post by:
Hi, in the following example: ----------- <asp:HyperLinkColum HeaderText="Select an Item" DataNavigateUrlField="IntegerValue" DataNavigateUrlFormatString="detailspage.aspx?id={0}"...
10
by: tshad | last post by:
I have a Datagrid with a column: <asp:HyperLinkColumn DataTextField="JobTitle" DataNavigateUrlField="PositionID" DataNavigateUrlFormatString="AddNewPositions.aspx?PositionID={0}"...
0
by: Iain | last post by:
Hi All Using Delphi 2006 developer - C# web project. I have a datagrid with a HyperLink Column as below. <ASP:HyperLinkColumn datanavigateurlfield="DOCNAME"...
4
by: rcoco | last post by:
Hi all, I have this big problem with hyperlinks I would appriciate any help please. My web site has two datagrids on the same page. And one has a list of names of the users which are in a...
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?
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.