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

encoding DataNavigateUrlFields in HyperLinkField

Hello everyone

Is it possible to encode DataNavigateUrlFields in HyperLinkField of a
gridview in asp 2 so that the url is properly formatted for "&" and
other special characters.

thanks

Newish

Sep 16 '06 #1
2 2650
Use the format string to set up how the string should be formatted. This
will url encode the string when it is a hyperlink.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Newish" <ah*******@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Hello everyone

Is it possible to encode DataNavigateUrlFields in HyperLinkField of a
gridview in asp 2 so that the url is properly formatted for "&" and
other special characters.

thanks

Newish

Sep 16 '06 #2
Thanks for your response. Actually I dont know how to use the format
string in this particular instance. What would I have to actualy do to
encode "&".

cheers

Newish

Cowboy (Gregory A. Beamer) wrote:
Use the format string to set up how the string should be formatted. This
will url encode the string when it is a hyperlink.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Newish" <ah*******@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Hello everyone

Is it possible to encode DataNavigateUrlFields in HyperLinkField of a
gridview in asp 2 so that the url is properly formatted for "&" and
other special characters.

thanks

Newish
Sep 17 '06 #3

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

Similar topics

0
by: John Smith | last post by:
I am trying to add a HyperLinkField to a datagrid programatically, but I keep running into the error: "CS1502: The best overloaded method match for...
0
by: cgambino | last post by:
Hello, In Beta 2, something to this effect once worked: <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="javascript:OpenNewWin('mypage.asp?id={0}'" Text="view"/> ...
1
by: pargat.singh | last post by:
I am using <asp:HyperLinkField in gridview as below which is working fine. <asp:HyperLinkField HeaderText="Process" Target="_blank" DataTextFormatString="Process me" DataTextField="doc_name" ...
2
by: SP | last post by:
Hi, I need a GridView that when I click on a row or on a HyperLinkField a javascript call raise . It is possible? The grid is in a window open from a parent window. Onclick in a row selected,...
8
by: =?Utf-8?B?TWlrZSBSYW5k?= | last post by:
I am trying to get a list of files from a specified directory using the System.IO namespace classes, and then use that list as the datasource for a GridView. I have been able to do this...
8
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to set the color of a visited HyperLinkField (the link text) in a GridView?? Here is the markup of the HyperLinkField I have problems with: <asp:HyperLinkField...
1
by: boevermann | last post by:
I prototyped an html table that has a hyperlink that pops a window showing a map of the entry from the that table. The link looks like this: <a href="authenticate.asp"...
0
by: Luke Davis | last post by:
I know what to do if I want to use HyperLinkField, but ItemTemplate in the Repeater control only allows Hyperlink which does not contain a definition for DataNavigateUrlFields. So how would I...
2
by: indhu kumar | last post by:
I have a hyperlinkfield in the gridview. when i click on that it take some time to redirect to other page, during that time i want to intimate the user with a "pleasewait" message using javascript. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.