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".
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.
when i open home page and click a link in whatsnew section, IE 8 opening the links in a new window.but firefox 3.5.7 opens in parant window, just like i want.how can i make IE 8 also open the links in parent window?
Im having the flowwing problem i have a gridview that i want to list many records when i click on a row iwant to be able to click on a button and go to the form of this record in order to update it. All the navigation works fine.I click on the button and then using javascript i window.open the page that has the form the problem is that when the new page loads the parent page (the page that has the gridview refreshes and because there are many records it is really annoying how can i use window open to pop up a child page without having the parent window to refresh.
Because im using all this in a dotnetnuke framework i have tried enabling and disabling partial rendering to the parent page page but always refreshes when i open the child window
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
Now my problem is here is CommandField is creating at first column (at 0 index). Now I want move this last column. How can I do this? I dont want show this CommandField only at last column only.
The fils containing these control work fine in another project and they work fine on visual studio so I guess it is safe to assume that the problem is not in the files or with the server but has something to do with the project? What could be causing this?
(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?
I have a CommandField with an edit button. I want to be able to use an image for the edit, but text for the update and delete buttons. I can't figure out how to use both. Here is the CommandField:
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?
I am trying to make a user-friendly interface of web page. I want to add images instead of Button to CommandFiend. I think it would be more friendly if show text when the mouse over the image....
I found ways to add a delete confirmation box with a delete buttons, however, I'm using a delete command field to delete my rows, Is there a way to add a delete confirmation within the GridView_RowDeleting method, or should I just use a regular button in a templateField?
I have a gridview that has the following commandfields enabled:
[Code]....
Im working on custom security for the pages and on this page / gridview i need to be able to display the field based on permissions.
can edit a record, but not delete and so on.. So would i need to convert them into template fields? or can i manage that as its configured now?
And this would be a all or nothing.. so if you dont have permissions, the commandfield is not shown for ANY records in the gridiview. I have had in the past where certain links would be available for certain records and so on.. but not this time..
I need to open a new window or page keeping the existing page open. I plan to put a Button on the existing page and when a user click the button, a new page or window pops up with what I have coded for that page. My preference would be that the user don't have to tweek any browser options or configure anhing else to open the new window with the click.
I have a asp.net linkButton on my page. on click of link button i hv written a code on linkbutton click event. after executing that code lastly i want to open new window. I had used a following code for that.
//Script to pass to the RegisterClientScriptBlock method
i am posting some data from my application to an external website i.e for a credit card payment
so i am using a response.write object.how to display the reposnse.write in a new window
this is my code
Dim sb As New StringBuilder() sb.AppendFormat("runat=server") sb.Append("<html>") sb.AppendFormat("<body onload='document.forms[""form""].submit()'>") sb.AppendFormat("<form name='form' action='{0}' method='post'>", postbackUrl)
I need a way to opening a new window after inserting a new record. I'm using object data source for CRUD and my code looks something like this:
Private Sub odsFileNote_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs) Handles odsFileNote.Inserted If e.Exception Is Nothing Then Page.ClientScript.RegisterStartupScript(GetType(Page), "newWindow", String.Format("<script>window.open('{0}');</script>", "www.google.com")).........
I want to open pdf file in new window, but my pdf file is stored in database as image datatype. How will i open this pdf file in new window on clicking of button?
Trying to open up a form in a new window while passing some values. It is working, but it is client side (My ASP co-worker finally grabbed the reigns and implemented a bit of his ASP magic to open the form and transfer the values.) But it's so messy, and I hate the fact that I have been bested by old technology.
I was doing this client side before, using window.open and transfering the variables in the URL, but I was getting flack for doing that. So I looked at alternatives and found session variables, which you set server side. So now we want to open the form. I tried the following (individually): Response.Redirect("OtherForm.aspx") and Server.Transfer("OtherForm.aspx") Which replaced the original form in the open window instead of a new window.
I spent a lot of time searching for a solution but the answer keeps coming back to "Just inject some JavaScript to open your form." Is there no "normal" way to open a form in ASP.NET. In any case I guess the real question I would like to ask is what is the best way to open a child form from a parent form?