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


Similar Messages:

Forms Data Controls :: CommandField For Opening A New Window

Oct 19, 2010

I'm trying to write and application where some fields of a database table are viewed via "GridView". one of the columns of the gridview is a "Commandfield" which contains a "SelectButton". When the buttons is clicked a new window is supposed to open and show more fields of that entry via "DetailsView".

View 2 Replies

Forms Data Controls :: Way To Open A New One Using CommandField

Oct 19, 2010

I need my button under CommandField under a GridView, open a new window. how can this bi done?

[Code]....

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

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

Forms Data Controls :: Retrieve Gridview Value Using CommandField?

Nov 2, 2010

(1) in a gridview there is the CommandField where you can use 'select' which simply highlights a row in the grid data. upon clicking this, can i use javascript to show a pop up message?

(2) upon clicking the CommandField 'select' can i retrieve the row id? if not then if i convert one of my column (type bit) and convert to checkbox, upon checking the checkbox, can i retrieve the row id?

View 8 Replies

Forms Data Controls :: How To Hide A Commandfield In Gridview

Feb 3, 2010

I have a gridview. I have two command fields, Edit and Delete

there are 4 data rows. If i want to read the value of 6th row which is the checkbox. how i can make the edit button disable.

How would I do it in RowDatabound event?

[code]...

View 11 Replies

Forms Data Controls :: Exposing Commandfield Properies In A Gridview?

Jan 19, 2010

how can expose the Commandfield properies in a gridview so I change them programatically? for example, I want change the commandfield property showdeletebutton so it does not show on all rows in the gridview?

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

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

Forms Data Controls :: GridView Client Side Confirmation CommandField, ObjectDataSource?

Apr 22, 2010

[Code]....

GridView Client Side Confirmation CommandField, ObjectDataSource?

View 14 Replies

Web Forms :: Open Page In New Window And Send Data?

Dec 21, 2010

I've been trying this for 2 days. In ASP.NET and VB.NET I've page1.aspx and page2.aspx I would like when I press button1 in page1.aspx to trigger button1.click event and open a page2.aspx in a new window and send to it data. All this can easly be done if no new window, by Server.Transfer or Response.Redirect. But unfortunatly they don't have an option to open a new window. I've used this solution but can't send the parameters and it opens me [URL]

[Code]....

and the javascript is:

[Code]....

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

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

Data Controls :: How To Change Color Of CommandField In GridView

May 7, 2015

I used commandfield in gridview that users can update their data in gridview Below is code:

<asp:CommandField EditText = "EDIT" UpdateText = "Update" CancelText = "Cancel" ShowEditButton="True" ItemStyle-Width="45px" ButtonType="Link" ControlStyle-CssClass="linkGVE" />

and css:

.linkGVE
{
text-decoration:none;
color:#02ca02;
text-align:center; }

Here this css if for all EditText and UpdateText and CancelText 

But I want EditText has blue color  and CancelText has red color how I can do it?

View 1 Replies

Web Forms :: On A Button Click .aspx Page Open New Window Retrieving Data From Another Xml File

Feb 2, 2011

I am using VS 2005.An 1.aspx page is there, retrieving data from an xml file and having a button.On a button click same 1.aspx page should open new window retrieving data from another xml file with the help of query string.

View 3 Replies

Open Page In New Window And Send Data?

Dec 21, 2010

I've been trying this for 2 days. In ASP.NET and VB.NET I've page1.aspx and page2.aspx I would like when I press button1 in page1.aspx to trigger button1.click event and open a page2.aspx in a new window and send to it data. All this can easly be done if no new window, by Server.Transfer or Response.Redirect. But unfortunatly they don't have an option to open a new window.

-- Updae --

I've used this solution but can't send the parameters and it opens me page 0 !!

<asp:Button ID="Add" runat="server" Text="Add" OnClientClick ="return pageOpen(TextBox1.SelectedValue, TextBox2.SelectedValue);"/>

and the javascript is:

<script type="text/javascript">
function pageOpen()
{
window.open("page2.aspx?param1=" & arguments[0] & "¶m2=" & arguments[1])
}
</script>

View 2 Replies

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 :: Right Click On LinkButton Open In New Window?

Oct 30, 2010

There is a textbox , button and gridview(contains linkbutton in template field) in my webpage. If the user enter some text in the textbox and press button means it will search the text in the interrnet and display the text in gridview (like[URL]if the users clicked the linkbutton in the gridview item i want to save the "clicked link" and "searched text" in the database.If the user clicks the linkbutton in the gridview, i captured the server side event of gridview_rowcommand and wrote the code to save the details in the database. But i cannot get the event of mouse rightclick event of "open in new tab" and "open in new window" option in server side and in javascript.how can i get the event of mouse rightclick "open in new tab" and "open in new window"?

View 1 Replies

Forms Data Controls :: Click Image To Open New Window?

Jan 26, 2011

[Code]....

What would I do to make the image click able and bring up the image in a small IE window?

View 6 Replies

Forms Data Controls :: Open Image In A Popup Window?

Jan 18, 2011

I have a repeater which lists (names of images) , i want when i click on an image it opens in a pop-up window.

how can i do that ?

View 3 Replies







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