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


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

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

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

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

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 :: 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

How To Pass A Parameter To The Child Window From Parent Window Using Window.open

Oct 18, 2010

i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?

View 2 Replies

Web Forms :: Close Popup Window And Open Page In Parent Window?

Mar 10, 2011

I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop

So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.

View 1 Replies

Web Forms :: Retrieve Value From Popup Window Opened Using Window.open?

Apr 28, 2010

I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.

View 3 Replies

Web Forms :: How To Open The Redirected Page From Iframe To Open In The Parent Window

Feb 17, 2011

I have an asp.net page that contains an Iframe embedded with some data and a ImageButton. On ImageButton click event (server side) I have Response.Redirct:

Response.Redirect("results.aspx");

This always open the results.aspx in iframe. I want that results.aspx should always open in the parent window. I tried the following till now but none worked:

Response.Redirect("<script language='javascript'>self.parent.location='results.aspx';</script>");
Response.Redirect("javascript:parent.change_parent_url('results.aspx');");
..and also tried the options from [URL]

View 1 Replies

Web Forms :: Click Imagebutton Open Window.open In Class 2.0

Sep 11, 2010

Click imagebutton open window.open in class asp.net 2.0

View 2 Replies

Web Forms :: How To Pass A Window Name To Window.open

Feb 12, 2010

How do I pass a window name to window.open(url, windowname) programmatically? I am using a user control inside aspx forms. I want the windowname to be different, so from each link a separate window opens.

I have an asp:hyperlink in a .ascx form. The code looks like this:

<asp:hyperlink runat="server" id="xx", navigateurl="is set programmatically" onclick="javascrip:return popup(this, 'my window'; " text="xxx"/>
'my window' needs to be a variable.

View 3 Replies

Web Forms :: Open Popup Window With In Another Window

Aug 26, 2010

I have an aspx page which contains a user control(a gridview). When I click on a link button in the gridview, I will open a popup window(An aspx page) successfully. When I click on save button in the popup, I am saving the details and refreshing the parent page successfully. I have a button in popup window. My requirement is:

When I click on the button inside popup window1, I would like to open another popup(aspx)(Say popup window2) in a new window without closing popup window1. When I save some changes in popup window2 and click on save button in popup window2, I need to close it and refresh popup window1.

View 2 Replies

Javascript - IE - Get Popup's Opening Window When Using Window.open (url)?

Sep 23, 2010

we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because

our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc

View 1 Replies

Using The Javascript To Open A Child Window Using Window.showModaldialog?

Sep 24, 2010

I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.

View 2 Replies

Web Forms :: Use "Window.Open" Method To Create A New Browser Window From C#?

Aug 25, 2010

I using VS2008 and C# for an ASP.NET web application. From within C# code, how to use the "Window.Open" method to create a new browser window? I know it can be done in ASP script code using Javascript but I would like to create new window from C# as desired.

View 11 Replies

Open A File Share Link From Window.open Javascript?

Aug 2, 2010

I am trying to open a file share link from the window.open ... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?

View 1 Replies

Web Forms :: Hyperlink Redirect To A Popup Window?

Aug 8, 2010

How do I make my hyperlink redirect to a popup window?

View 1 Replies

Web Forms :: Open XML File From Hyperlink Control?

Sep 23, 2010

How can I open a XML file from the location mentioned in the web.config file using Hyperlink control?

I have an aspx page with hyperlink control and in code behind I do the following:

[Code]....

Web.config file looks like:

[Code]....

This code is not working. In IE, it doesn't do anything but in FF, it throws a error box with message that the "FF doesn't know how to open this address..."

View 3 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

Web Forms :: Open PDF In New Window?

Aug 9, 2010

Quick one. I've created a PDF using iTextSharp and want to open it straight away inside a new window. I've tried the following to no avail:

[Code]....

View 6 Replies

Web Forms :: How To Open Rad Window

Nov 24, 2010

<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>

[code]...

View 2 Replies

Web Forms :: How To Open Pop Up Window

Aug 30, 2010

i'm interested to know how can i open a small pop up window when clicking a button, not a new tab, but a new window.


View 2 Replies







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