Web Forms :: Open In A New Tab On Image Or Link Button

Aug 27, 2012

I want when any user right click on Image button or link button on my website at that time I want him to show open in a new tab.

The event has been created on Datalist_Itembound event and from their I am redirecting user to another window.

View 1 Replies


Similar Messages:

Web Forms :: How To Open A New Window Using Link Button

Feb 9, 2010

I am trying to navigate it to another page using Link Button and in the .cs file, I am using Response.Redirect. But I want it to the open in a new window.

The reason why I cant use hyperlink is I cant use Command Arg and Command Name which I am using in the Link Button.

I tried the below Javascript, But it's coming as a pop up for the first time when it loads. I don't want it in that way also.

Is there a way like Hyperlink '_blank'.

public static void OpenNewWindow(string url, Page thispage)
{
string fullURL = "window.open('" + url + "', '_blank', 'fullscreen = no, status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,titlebar=yes' );";
ScriptManager.RegisterStartupScript(thispage, typeof(string), "OPEN_WINDOW", fullURL, true);
}
.cs
<asp:LinkButton ID="lbtn_photo" runat="server" Text="Upload Photo"
OnClick="Upload_Photo"></asp:LinkButton>
protected void Upload_Photo(object sender, EventArgs e)
{
Response.Redirect("UpPhoto.aspx?id=" + Request.QueryString["id"]);
}

View 8 Replies

Web Forms :: Open A Ppt When Link Button Is Clicked?

May 18, 2010

I have a ppt in a folder Rocky and i am doing something like this :

this.btnSmartQuoteTutorialVideo.OnClientClick = "OpenMaximizedWindow('Tutorials/Paoli/PaoliSmartQuoteTraining.ppt'); return false;";

View 8 Replies

Web Forms :: Open A New Tab In Iframe Using A Link Button?

Nov 30, 2010

I have an iframe inside that there is a linkbutton if i click it should open a new tab in that browser,or Unblockable POPup's. I cant change it into other controls like Hyperlink or <a> tag, coz i am doing an DB updation in that linkbutton click event also passing values in query string.

View 7 Replies

Web Forms :: How To Open/close The Panel By One Link Button

Dec 9, 2010

I am tring to open the panel with clicking linkbutton and to close the same panel using that link button .How can i write close and open in one event .

View 4 Replies

Web Forms :: Link Button Cannot Open Popup On Single Click

Jan 4, 2011

i have to open the popup on from the gridview's linkbutton, bnut it open on the double click, not on the single click.

LinkButton btn = sender as LinkButton;

View 4 Replies

Web Forms :: How To Open New Window On Click Link Button In Gridview

Jun 26, 2012

i have gridview with link button.. if i click on link button to open new window with pdf file.

View 1 Replies

Web Forms :: How To Open Windows Explorer On Click Of Link Button

Jul 30, 2013

I have used a LinkButton as Text "D:NewFolder".I want when user click on the link the "NewFolder" folder will be open as windows explorer !

View 1 Replies

Web Forms :: HTTP Error 403 On Clicking Link Button To Open PDF File?

Apr 16, 2010

I'm in a bit of a pickle here. I'm Binding the name of file to a LinkButton and intending to open that file on the LinkButton' click. I have the LinkButton in the TemplateField of a GridView control. Below is the code I'm using : And the Event Handler goes like : protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.Equals("goto")) { fileToOpen = e.CommandArgument.ToString(); Response.Redirect(path + fileToOpen); } }

View 3 Replies

Link Button Property To Open In New Tab?

Apr 14, 2010

in my application i have some link buttons there but when i right click on them i not(they are in disable mode) found property open in new tab or open in new window

<asp:LinkButton id="lbnkVidTtile1" runat="Server" CssClass="bodytext" Text='<%# Eval("newvideotitle") %>' />

View 4 Replies

Web Forms :: Image Not Loading In Link Button

Jan 6, 2010

image is not loading in my link button in firefox

<asp:Image ID="Image1" ImageUrl="~/Images/bird.bmp" runat="server" />

View 3 Replies

C# - Open Page In New Window When A Link Button Is Clicked

Sep 27, 2010

I was trying to open a new window when a link button is clicked.

<asp:LinkButton ID="lnkpackageinfo" CssClass="linkclass"
runat="Server"
OnClientClick="lnkpackageinfo_Click()">Compare Packages</asp:LinkButton>

I want the target page to be given in the code behind because in the target page i want to use querystring to hide few buttons and links. It is clear

protected void lnkpackageinfo_Click(object sender, EventArgs e)
{
long MerchantID = CommonHelper.GetLoggedInMerchant();
string querystringpackageinfo = ApplicationData.URL_MERCHANT_COMPANY_PACKAGE + "?MerchantCompanyPayment";
Response.Redirect(querystringpackageinfo, false);
}

View 3 Replies

How To Open A Word Document On Click Of Link Button

Jan 18, 2010

i have an link button in my gridview once user click that link button i need to open an a word document(the path where the document is stored in server would be like this c:/abc/doc/abc1.doc) so now i should all ow the user to download that document for viewing it.

View 2 Replies

Web Forms :: Change The Link Button Image On Page Load?

Aug 10, 2010

I have a form in which user select the number of policies.say 1 or 2 or 3..

When user goes to the next page, based on the number of policy selected in the previous page, i hav to change the link button's image respectively. ie if user chose 1 the button should have 'Continue' or if the user has chosen more than 1 then button should have 'Next Policy'. I am aware that this has to be done on the page_load. Basically how to change the link button's images at runtime based on a condition.

View 6 Replies

Web Forms :: Open New Window Option For Image Button?

Aug 17, 2010

I am using an Image Button with onclientclick property set.

Upon clicking the button I am able to navigate to URL page. But when I am right clicking on the Image Button I am not getting "Open in new window" or "Open in new tab". These options I see when I right click on an Hyperlink control.

Can we achieve the same fro Image Button.

View 4 Replies

Web Forms :: How To Open Calendar Control On Image Button Click

Apr 19, 2012

how to open a calendar control in asp.net web form on the image button click and display the date in the textbox

View 1 Replies

Web Forms :: How To Open Outlook With Sender Mail Id On Click Of Image Button

Apr 15, 2010

how to open outlook with sender mail id on click of image button using asp.net.

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

Link Button Image Not Visible After Postback?

Jan 25, 2010

I have a link button with image and label inside it. After postback, the image and label is not visible.

< asp:LinkButton ID="AddNewRunLinkButton" runat="server" CssClass="Navigationlocalnav"
OnClick="AddNewRunLinkButton_Click" >
< img id="Img1" src="../../Images/add_newIcon.gif" runat="server" alt="Add New Run" />
< asp:Label ID="addText" Text=" Add New Run" runat="server">
< /asp:LinkButton>

This link button is used to import/export data. I have added an attribute on click of this link button(AddNewRunLinkButton) to display a progress bar using javascript - SetInterval function. If I remove this attribute, the image and label is getting displayed, otherwise only link button is getting displayed.

AddNewRunLinkButton.attributes.add("onclick","javascript:DisplayProgress()");
function DisplayProgress()
{
timeid = setInterval("addBlock",100)
}
function Addblock()
{
// Display a progress bar as follows - Increase the width of a div tag at this interval
}

View 2 Replies

Link Button And JavaScript / Change A Standard HTML Input Button To A Link Button

Mar 1, 2011

I need to change a standard HTML Input button to a Link button but am running into problems because the existing

code calls a javascript function. The function basically does the same as the browser back button. When I add the code and

set the property runat="server" I get a "CS1026: ) expected".

Quite new to ASP,net (VS2010) so could be going about this the wrong way.

[Code]....

[Code]....

View 6 Replies

When Click On Image Button Only Caleder Control Will Open?

Sep 17, 2010

jquery calender with images button. when click on image button only then caleder control will open...

View 2 Replies

Image Button Control To Open File Dialog Box?

Mar 11, 2011

I have a Image button Control on my webpage and what I want that user can change it's image dynamically, Is it possible to have File Dialog Box on it's click event ? For instance we've social networking sites like Facebook, Orkut. Just like that I want user to change it's image.

View 2 Replies

Web Forms :: Changing Color Image Of Link Button Of DataList On Mouse Over DataList Item

Jul 6, 2012

I have following datalist ,to display employee id, name, email .....  datalist have column with link button  text " Get Details"  and fontcolor "black" ,  onmouseover of the particular  row i want change the color of linkbutton or the image of  linkbutton ..

<asp:DataList ID="DataList1" runat="server" BorderWidth="1px" CellPadding="1"DataKeyField="EMPID" 
GridLines="Both" RepeatColumns="4" RepeatDirection="Horizontal"><ItemTemplate><table border="0" id="thistable" runat="server" style="width:100%;height:100%">   <tr> <td> EMPID:
<asp:Label ID="EMPIDLabel" runat="server" Text='<%# Eval("EMPID") %>'>

[code]...

View 1 Replies

AJAX :: Upload Image When Dialog Box Open On Button Click

Jun 11, 2012

Can we upload images in asp, means I have a button and after clicking it dialog box should open and after selecting any 1 image from it i should be able to upload it

like we do in facebook and other social networking sites.

View 1 Replies

Forms Data Controls :: Insert A Snippet To Change A Hyper Link 'insert' To A Button Image?

Nov 21, 2010

How do I insert a snippet to change a hyper link ' insert' to a button image?

Here is the front page code:

[Code]....

View 4 Replies







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