Web Forms :: Jimmit> Open New Window When User Clicks A Hyperlink Control?
Mar 25, 2011I 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 RepliesI 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 RepliesSo I am using a simple GridView control to display a table containing Sender_ID, Subject(hyperlink), date . When the user clicks on the subject hyperlink, another page with the Body should open. This page should also contain a Back button for navigation.
View 5 RepliesI 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 RepliesI 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]...
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>
I would like to open a popup window from user control on button click event. I am using the following code but I am not able to open new window
[Code]....
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]....
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.
How to open popup window in datalist hyperlink with databinding
my code is:
[Code]....
I want to develop the same future in C# , that is there in asp.net (MODEL POP UP) .
when ever i click on the button, that should come up with a panel to enter the values.
I have a webpage that allows a user to download a specified file. When the file is ready to be fully downloaded (i.e I call the HttpResponse.End or HTTPRepone.Flush) the user is presented with a File Download dialogue.
Is there any way to determine what option the user has selected?
Have they Opened, Saved or Cancelled the File Download once the Flush or End has been sent?
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
How to prevent a user to open a new Tab or window, if the user already in session?
View 2 RepliesI am using HTML Input control that will open a file dialog window where user can select a file.
Is there a way to set a path from where to open the window. Right now it looks like the default folder is "My Documents".
I need it to point to something like "ftpexternalftp$Data"
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..."
I have a file upload control. I would like to do something when the user clicks on the brose/choose file. Basically, I want to autopopulate the textbox once the user clicks to browse and get the file.
<asp:FileUpload ID="FileUpload1" runat="server" onchange="this.form.txtbox1.value=GetFileName(this.value);"/>
i want to display a window with size less than previous window on click of the button.
View 4 RepliesI've been searching in all the forums, and websites for the last 4 hours without finding a solution for a problem that in the beginning I tought it was an easy one!!!This is my problem, I have a gridview with the following colums: select (link), Room Type (for hotels), and TotalThe total field Is a template field it has in the custom binding property a function: find_total(Eval("Room")) this function makes some calculation and returns the calculated Total value, and shows in the gridview without problems,The thing I cant do is: when the user clicks on the select link I want to get the text of the template field and put in a label control.
I tried, almost all the events of the datagrid, to reference the content of my template field but sometimes I receive a null value (seems that Im looking for the value before the find_total function has been executed) or I get an error "the index is out of range".I dont know how to approach this, I tought It has to be much easier, but Im very confused right now, if anybody knows how to do this
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:
hypLink.Text = "Transformed XML";
hypLink.NavigateUrl = ConfigurationSettings.AppSettings["OutputXML"];
web.config looks like:
<add key="OutputXML" value="C:WorkingMyTestXMLTransformApp_DataTransformed.xml"/>
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..."
I'm trying to get my treeview control to work where a user clicks on a parent node. The node will expand.Then, the user clicks on another parent node and that node expands while the previous parent node stays expanded. My problem is that when I expand one parent node, another expanded parent node collapses.What am I doing wrong?
View 6 Repliesi 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 RepliesI 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.
How to pass user credential from ASP.Net application to open Report Manager in a new window. When I'm searching in the net, basic authentication was the solution I found. But don't know to pass credential through code
View 1 RepliesI 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 RepliesI 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]