Forms Data Controls :: Make Gridview Data As Hyperlink With Alias Open In New Window?

Sep 28, 2010

I have one asp.net C# page in which i have gridview..

This are the url comes from database and binded in gridview

www.xxxxxx.com/A/Default.aspx
www.xxxxxx.com/B/Default.aspx
www.zzzzz.com/C/Default.aspx

what i need is i need to show this url has like this

www.xxxxxx.com/A/Default.aspx is like Test1
www.xxxxxx.com/B/Default.aspx is like Test2
www.zzzzz.com/C/Default.aspx is like Test3
if user click Test1 it will open a new browser window with www.xxxxxx.com/A/Default.aspx
if user click Test3 it will open a new browser window with www.zzzzz.com/C/Default.aspx

how to make this in gridview

View 28 Replies


Similar Messages:

Forms Data Controls :: Open Hyperlink In New Window?

Jun 30, 2010

I have a hyperlink being returned as a template field in a gridview, it all works except that I would like the link to open in a new window.See code...

<asp:TemplateField HeaderText="File Name" SortExpression="projectFileName">
<itemtemplate>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl= '<%# "~procure_files" & DataBinder.Eval

[code]...

View 2 Replies

Forms Data Controls :: Open A New Window From Listview Hyperlink?

Jan 14, 2010

Here is my code which works but opens in the same window from a listview hyperlink.

I'm trying to insert Target="_blank" so a new window opens.

<asp:HyperLink
runat="server"
ID="hl"
NavigateUrl='<%#Eval("BarDetailsId","aaaVenueSummary.aspx?ID={0}")%>'
Text='<%# Eval("BarName") %>'></asp:HyperLink>

View 5 Replies

Forms Data Controls :: How To Open New Window From Hyperlink Using Conditional Statement.

Dec 28, 2010

my code is :

[Code]....

row.item(6) field is a navigate url (asp:hyperlink) in front-end code as <eval('url')>

row.item(7) is a boolean field with values : true/false.

if row.item(7) is true then the hyperlink page must open on the current page.

whereas if row.item(7) is false then it should open in a new tab/window.

View 7 Replies

Forms Data Controls :: Open Popup Window In Datalist Hyperlink With Databinding?

Feb 16, 2010

How to open popup window in datalist hyperlink with databinding

my code is:

[Code]....

View 2 Replies

Forms Data Controls :: Open GridView From A HyperLink In A FormView?

Jan 3, 2011

I have used this forum a lot to guide me before, but now I have a problem which I cannot find a solution to.

I have used GridViews to open either DetailsView or FormView, so I understand that part to some extent.

This time, I have a FormView that includes a HyperLink, which is displayed when page comes up.

The user will click on this HyperLink to open a NEW GridView to be placed in the bottom of the page.

[Code]....

Maybe the NavigateUrl cannot be used in this way ?

Should I use a button in the FormView to launch my second GridView ?

View 7 Replies

Forms Data Controls :: Gridview - Display Popup Window Using Hyperlink Field?

Feb 8, 2011

I have a requrement to display a popup window when i ckick on the gridview hyperlink field.

View 6 Replies

Forms Data Controls :: How To Open New Window From HyperLinkField In Gridview

Aug 31, 2010

How do I open a new window from a HyperLinkField in a Gridview?

<asp:HyperLinkField HeaderText="Test Icon"
DataNavigateUrlFields="clientID"
DataNavigateUrlFormatString="~/ClientInfo.aspx?ID={0}"
DataTextField="clientComments"
DataTextFormatString= "<img src='Images/moreInfoIcon.gif' alt='More Info'/>"/>

View 6 Replies

Forms Data Controls :: Make Onle Specific Cells In Gridview As Hyperlink?

Sep 9, 2010

i have gridview and im displaying the employement history of employee.and im providing a hyperlink in empid to open employee page with update mode ..so that user can update the record.i have an issue here.only if the employeeresigned = "N" empid should be hyperlink, if its "Y" it should not be a hyperlink.

<asp:TemplateField
HeaderText="empid"
SortExpression="empid"> [code]....

am wondering how to do this

1) shall i replace all the linkbutton with label if the resignedstatus = "Y"

- how to do this? 2) or shall i make the empid as boundfields instead of templatefields and write code on rowbound...with checkin that

if resigned =
"Y" then
e.Row.Cells(0).BackColor = Drawing.Color.blue

e.Row.Cells(0).Attributes.Add("onclick", "empDetails_disp")

e.Row.Cells(0).Attributes.Add("class", "statusclass")

......

in this case i can use only javascript function for

e.Row.Cells(0).Attributes.Add("onclick", "empDetails_disp")

this statement? or can i directly call my empdetials_disp function in my aspx.vb page...

View 5 Replies

Forms Data Controls :: Can Use GridView CommandField Open A Page In A New Window

Aug 25, 2010

I'm using a GridView hooked up to an AccessDataSource holding details of books. The GridView has a CommandField which I want to act as a link to another page (called "showBook.aspx"). This page will have a DetailsView which I want to use to show the details of the selected book. I want this page to open in a new window.

View 2 Replies

Forms Data Controls :: Show Links In Gridview / Open In New Window?

Jun 16, 2010

I have a list of links displayed in a gridview that, when clicked, open in a new window. I used OnClientClick = "form1.target = '_blank';" to achieve this. I also need to let the users delete links. Problem is, when I click the delete button it calls the OnClientClick event even though it isn't in the delete tag. This only happens if I click delete after I have clicked on a link. The result is that the link I am trying to delete opens up in a new window and is not deleted.

View 4 Replies

Forms Data Controls :: Gridview To Excel - Open In The Same Browser Window?

Feb 3, 2010

I'm exporting the GridView to Excel. It works fine and I receive a prompt to Save/Open/Cancel the file although I need the file to be saved automatically in the provided (passed to the Export function) location and opened in the same browser window where the Gridview was.

View 2 Replies

Forms Data Controls :: Hyperlinkfield Or Buttonfield To Open New Window From Gridview

Aug 25, 2010

I have a gridview with a column for tracking numbers. I would like for the user to be able to click the tracking number in that column and it open another browser window to the site with the tracking information. I have tried Hyperllinkfield and I cannot get it to open the website.

View 7 Replies

Forms Data Controls :: Link Gridview Result To Hyperlink To Open Folder On Local Drive?

Feb 15, 2010

I have a file structure setup by project number on my local drive. I have a database with the projectnumber, projectname, client, etc. I set up grid view to display the projectname, projectnumber and client. I need the projectname to be a hyperlink and once its clicked it should open the project folder on the local dirve. i need some code to bind my projectnumber to a hyprelink string of some nature that looks like F:/Projects/{ProjectNuber}

View 7 Replies

Data Controls :: How To Open Popup In GridView With Hyperlink

Apr 27, 2016

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Popup.aspx.vb" Inherits="DX2.Popup" %>
<%@ Register assembly="DevExpress.Web.v15.1, Version=15.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web" tagprefix="dx" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

[Code] ....

View 1 Replies

Data Controls :: How To Make Hyperlink In GridView

Jun 16, 2015

[URL]... It works but when I try to create hyperlink in the gridview, it's failed. How to create hyperlink in the gridview using this tutorial so i can see details, example the Contact Name has a hyperlink..

View 1 Replies

Forms Data Controls :: GridView Select Open New Internet Explorer Window?

Sep 3, 2010

I'm wondering if there is a built in way to take a GridView select buttons and have them open an IE window or tab and link a FormView Control to that link.

Basically a Master-Details type of view, but in a new window instead of the same window.

View 4 Replies

C# - How To Make Hyperlink Field Or Buttonfield In Gridview Pop Up A Window And Redirect To A New Page At The Same Time

Mar 3, 2011

How to make hyperlink field or buttonfield pop up a window and redirect to a new page at the same time? so far it can only redirect to a new page, but target is also to pop up a child window when try protected void Cheque_GridView_RowCommand(object sender, GridViewCommandEventArgs e) can not find a way to add attribute to button to use javascript to pop up a child window <asp:HyperLinkField Text="Select" DataNavigateUrlFields="BatchNo, BankCode, ChequeDate2, IssueDate2, CompanyCode, VoucherBatchNo, VoucherNo, ChequeID, ChequeNo, PaymentType, DespatchType, DespatchDate2, Curr_Code, Amount"
datanavigateurlformatstring="~/Edit_Batch/AddCheque.aspx?BatchNo={0}&BankCode={1}&ChequeDate={2}&IssueDate={3}&companycode={4}&VoucherBatchNo={5}&VoucherNo={6}&ChequeID={7}&ChequeNo={8}&PaymentType={9}&DespatchType={10}&DespatchDate2={11}&Curr_Code={12}&Amount={13}" />

View 1 Replies

Data Controls :: Open Popup Window When GridView Row Is Clicked?

Aug 14, 2013

When i click in a gridview row, how to do to open a popup window?

View 1 Replies

Data Controls :: Open Panel As Modal Popup When HyperLink Inside GridView Is Clicked

Apr 25, 2014

Is it possible to open a "panel" when Clicking on Gridview HyperLink?

In my Web Page there is a Gridview with ItemTemplate field, with HyperLink inside it. On click of HyperLink I want to open a panel below Gridview.

How to achieve it.

View 1 Replies

Web Forms :: Open Hyperlink In A New Window?

Mar 6, 2010

I am using an Image button in a gridview and I want it to open in an new window when I click that image button. How should I do that?

View 6 Replies

Data Controls :: How To Open Popup Window On Click Of Link Button Inside GridView

Oct 8, 2013

<a href="display.aspx?code=<%# Eval("code")%>"> click </a>

opening a new page with a parameter value as shown

a javascript with a url with any querystring is a normal.

i get the parameter  value in the Eval("code") only.

the new pages opens as a normal page and not as poup

View 1 Replies

Forms Data Controls :: Make A Hyperlink In A Data Grid Field?

Jan 8, 2010

I want make one of the field in my data grid in hyperlink after I retrieve the records from the database. I have EmpId and EmpName in the gridview but I want to make the EmpName field in hyperlink so that when I click a name, I can redirect at a page based on the data of that field. How can I suppose to do it??.

View 9 Replies

Web Forms :: Making A Hyperlink Open A New Browser Window Full-Size

Jun 29, 2010

I have the following hyperlink code that opens a new browser window to display a page. The page (browser) opens not full size (maybe something like 500x500). How can I modify this code to make the new browser window open full-size?

[Code]....

View 4 Replies

Web Forms :: Jimmit> Open New Window When User Clicks A Hyperlink Control?

Mar 25, 2011

I am creating a webform where a hperlink control is added dynamically and i want to open a link of that hyperlink in a new browser window.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved