473,996 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

send more than 1 parametr from hyperLinkColumn ?

Hi all, i have HyperLinkColumn in DataGrid

<asp:HyperLinkC olumn DataNavigateUrl Field="PostID"
DataNavigateUrl FormatString="h ttp://localhost/forum/posts.aspx?id={ 0}"
DataTextField=" Subject" HeaderText="ôÅÍ Á">

This code work, but when i do next

<asp:HyperLinkC olumn DataNavigateUrl Field="PostID"
DataNavigateUrl FormatString="h ttp://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.Quer yString["id"];

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

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

"Antoni Biliardis" <an****@bd-tech.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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******** *****@tk2msftng p13.phx.gbl...
Hi all, i have HyperLinkColumn in DataGrid

<asp:HyperLinkC olumn DataNavigateUrl Field="PostID"
DataNavigateUrl FormatString="h ttp://localhost/forum/posts.aspx?id={ 0}"
DataTextField=" Subject" HeaderText="ôÅÍ Á">

This code work, but when i do next

<asp:HyperLinkC olumn DataNavigateUrl Field="PostID"

DataNavigateUrl FormatString="h ttp://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.Quer yString["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
4864
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" DataNavigateUrlFormatString="http://www.aaa.com?Name={0}" SortExpression="NAME" />
3
3391
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 links a yellow which is what I normally won't but in this case I want to override the link color and can't seem to do it. I set the forecolor in itemstyle prop. But it doesn't work.
3
3384
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 ====================================================== <asp:HyperLinkColumn Text="View" DataNavigateUrlField="field1" DataNavigateUrlFormatString="page.aspx?idx={0}"></asp:HyperLinkColumn>
1
1207
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}" datatextfield="full_name"></asp:hyperlinkcolumn> How can I get the value of it's datatextfield (full_name) from my code? If I try dataGridItem.Cells(9).Text it just returns an empty string.
0
1095
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 if the number of characters in the link exceed 100 characters. I tried adding the <ItemStyle> to the HyperLinkColumn tag but it did not work, the whole of the link is displayed on one line with the column width getting extended. ...
5
4169
by: sincethe2003 | last post by:
Hi, in the following example: ----------- <asp:HyperLinkColum HeaderText="Select an Item" DataNavigateUrlField="IntegerValue" DataNavigateUrlFormatString="detailspage.aspx?id={0}" DataTextField="PriceValue" DataTextFormatString="{0:c}" Target="_blank"/> -----------
10
1773
by: tshad | last post by:
I have a Datagrid with a column: <asp:HyperLinkColumn DataTextField="JobTitle" DataNavigateUrlField="PositionID" DataNavigateUrlFormatString="AddNewPositions.aspx?PositionID={0}" HeaderText="Job Title" Visible="True" SortExpression="JobTitle"/>
0
1104
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" datanavigateurlformatstring="{0}" datatextfield="DOCNAME" headertext="Document Link">
4
2264
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 HyperlinkColumn. The second datagrid is for inserting data, and when a user inserts data I used 'Windows Authentication' for names in one column called Name. Now this is how it's supposed to work: When any user want to see data about a particular user...
0
10239
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11941
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
11504
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...
0
11005
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10172
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7716
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();...
1
5268
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
2
4841
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3853
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.