473,809 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with hyperlinkfield in gridview

1 New Member
Hi all,

For some weird reason my hyperlinkfield does not work.

<asp:GridView ID="GridView1" runat="server" AutoGenerateCol umns="False" DataSourceID="S qlDataSource1"
>
<Columns>
<asp:HyperLinkF ield DataTextField=" batchid" DataNavigateUrl Fields="batchid " DataNavigateUrl FormatString="V iewUserAccount. aspx?id={0}"/>


I am trying to generate a gridview with hyperlink column and when I click the coloumn it should transfer to another page with the value(batchid) of the column.

For somereason Its not working.

Please respond if you know what should be done.

Thanks
Mithun
Jul 31 '07 #1
0 1274

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1360
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" DataNavigateUrlFields="doc_name" DataNavigateUrlFormatString ="~/aaaa.aspx?path={0}" /> Currently it is displaying "Process Me" for all row and opening new window.But i have some records which are already processed and for
1
4069
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" DataNavigateUrlFields="doc_name" DataNavigateUrlFormatString ="~/aaaa.aspx?path={0}" /> Currently it is displaying "Process Me" for all row and opening new window.But i have some records which are already processed and for
1
1688
by: brian.newman | last post by:
I'm trying to link a gridview to another gridview in a Master-Details architecture. But the Details list isn't filtering like it is suppossed to. It will show all items on page load and it won't remove any items when an item in the Masters list is selected. It shouldn't show anything until an item in the Master's list is selected and then only show the details which are associated with the selected item in the Masters list. I'm new to...
1
1277
by: willip | last post by:
I have a Gridview control with a Databound Hyperlink. e.g.: <asp:HyperLinkField HeaderText="MyTitle" DataNavigateUrlFields="MyID" DataNavigateUrlFormatString="~/ShowMe.aspx?MyID={0}" DataTextField="MyTitle" SortExpression="MyTitle"> With Norton Ad Blocking turned "Off" this works fine. Turn Norton Ad Blocking "On" and the rest of the Gridview displays, but any Hyperlinks have gone!
0
4089
by: doomsday123 | last post by:
I have a gridview that displays a ORDER_ID in the first column and then I add 2 button columns on the end of it to approve or deny the order. If they approve it I want to update the database row's column "status" with a 2 and if they deny the order then it will update that column to 6. Im having trouble doing that with a AccessDataSource control. Could someone help me figure it out. Here is what i have. <asp:GridView ID="GridView1"...
1
11458
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" onClick="window.open('authenticate.asp? code=COUNTRYSIDEESTATES','gismap','toolbar=no,menubar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=600,width=800');return false">Map</a> Now that the department has settled on the...
1
2502
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
Hello: I have a hyperlink field in my gridview that redirects to a new page. I would like to set a session variable to a value from the grid row where the hyperlink was clicked before the redirection occurs. Is this possible? Can anyone offer any suggestions? Peter <asp:GridView ID="Townlist" runat="server" >
2
4996
by: Tor Inge Rislaa | last post by:
When I insert the complete querystring into the NavigateUrl tag this hyperlink works fine within the GridView. <asp:HyperLinkField HeaderText=" Details" NavigateUrl="~/Admindetail.aspx?ku_id=1" Text="Details"
9
6328
by: kimbred | last post by:
I have a gridview that has a hyperlink column. It gets the web address from a data source. This is all working as it should. The problem is when I click the web address, it doesn't go to the address. It's like it's trying to find the address locally. I know it probable has something to do with the url formatting, but not sure what needs to be done. <asp:GridView ID="gvEmployeesBenefits" runat="server" DataSourceID="Benefits"...
0
10637
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...
1
10379
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,...
0
10115
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...
1
7660
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
6881
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
5550
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
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
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.