Web Forms :: Disable Grdiview From Subform Shown In The Frame?
Apr 13, 2010
In my web application i need to show a page in the frame by using some options.Successfully i have done it. But from the sub form which shown in the frame, from it on a button click I need to disable or enable the gridview in the main page. How can I do it?
In my web application i need to show a page in the frame by using some options.
Successfully i have done it. But from the sub form which shown in the frame, from it on a button click I need to disable or enable the gridview in the main page. How can I do it?
The first page, default.htm, is a frameset page that uses the other two pages.
The second page, casemenu.aspx, is a form that contains an object we call "PopupManager": It has an element <xxx:PopupManager runat="server"/>. This object is dependent on the standard ScriptManager, which requires a form.
The third page, header.aspx, contains three links. Each link calls a JScript function that in turn calls a function on the Popup Manager. It makes the call to the popup manager with an expression like 'top.frames.casemenu._PopupManager'.
Now, the problem I have is that I have to change default.htm to be a normal page containing an iframe, which will refer to a new page, container.aspx, which has the original frameset. When I do that, I can no longer access the PopupManager the same way ('top.frames.casemenu._PopupManager' no longer works.)
I would like some way to refer to the PopupManager relative to header.aspx, something like "self.parent.frames.casemenu._PopupManager", but that doesn't work.
First let me say that I am new to ASP.net and I come from a Microsoft access background hence my post is in Access terminology i.e Main form / Sub Form. I am not sure what the correct terms to use for ASP.net are and this might hamper my explanation a bit but here goes.
In Microsoft Access (MC) you can create a main form and then drag and drop a subform onto it and the application automatically knows how to pass the primary key from the mainform to the foreign key on the subform when a record is created. So my question is how can I get the same effect in ASP.NET.
Let's say I am using the Surrogate Key approach (autonumber primary key) and I have a table called "Customers" and another table called "Address" where one customer can have many addresses.
1. How can I set it up so that when I am entering multiple addresses for a customer the application knows which primary key of which customer to use?
2. What are the best controls to use for this (Gridview, Formview, etc)
3. Building upon the above. Lets say i select ONE customer from a list of customers and I have many different subforms how does the application know what is the primary key to use as I update information on this customer in the various tables.
I know this is a lot I am asking, or it is simple and it is just a lot in my mind as I am new.
I have a scenario where I will be showing a Customer data in a GridView. I have a Dictionary collection like this IDictionary<Customer, IList<CustomerOrder>>.
First Question Can I bind this dictionary to the ASP.Net GridView?
Now next question, I want to show following kind of UI i.e. Show multiple CustomerOrders in one row of Customer.
FName LastName OrderNumber MarkOrderCompleted(RadioButton) ABC DEF 123 Radio Buttons Yes No 345 Radio Buttons Yes No 678 Radio Buttons Yes No GHI JKL 213 Radio Buttons Yes No 546 Radio Buttons Yes No 768 Radio Buttons Yes No
FName and LastName would be populated from Customer object inside the Dictionary and OrderNumber and MarkOrderCompleted would be populated from CustomerOrders. Below all thre is a submit button, which saves the radion buton status values to the database against the Order.
1 A Show 2 B Show ID , Name Template Field Show LinkButton
Click on Show button model popup would open, that popup also contain one gridview like
Grid B ID Value cal 1 10 Minus 2 20 Minus id , value are Template Field minus is linkbutton
i write down the code on GridB Row Command without using model popup i get all the event but inside the modelpoup i can't get the row command or any other event.
I have a databound gridview with 3 columns. I enumerate through each row to get values and put into an array. I would like to make column1 NOT visible to the user. but when I set Visible="False", it no longer can retieve that columns value as it enumerates.
Is there a way I can make the first column invisible to the user but still retrieve the values of that column when enumerating?
My login page has frame set . After login right hand side contents and left side tree view loading .. I tried to redirect to home page (frame page) when user session is expired.. But it always loading login control in right hand side..home.aspx.....
I cant get the onmousemove event to fire when the mouse goes over a iframe (its empty for the time being).and making a div surround the frame doesnt solve the problem either..
I have a main page with some buttons on it.If the user clicks on a button, a frame is created in the center and a order (web)form is shown.At the end of the form, when the order is placed, I want to close the frame somehow.What would be the best way to do this?If I do a redirect on the page that is in the frame, it just opens the main page in the frame, which isn't what I'm looking for of course.
Is there any way to force a page (that opens in an iframe) to load in the parent frame (whole page/window)?
I am in a scenario where I really had to use iframes to maintain my website branding because my eCommerce provider does not support customizations. When Payment is made, I would like my TransactionComplete.aspx to open in the parent frame and not within the same child frame.
We have an aplication which works fine withing ASP 2.0 .NET Framework 3.5. Its a response. redirect call from inside ajax update panel, and it can not be outside. After updating to Framework 4.0 it no longer funchtions and returns "Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed." without redirecting.
Server.trasfer gves the same error as well as and does not work
rl711 You have to use target attribute in form tag: <form runat=server target=_blank> // new window or <form runat=server target=_top> // above all frames or <form runat=server target=_parent> //parent frame or <form runat=server target=someframe> // a frame by name
This can only work if the Server.Transfer is invoked from within the form such as a button click.
If your Server.Transfer method is in the Page_load event (which isn't a form event), how do you set a target window to Server.Transfer?
I have a gridview with entity frame work datasource. When editing or deleting I get Store update, insert or delete statement affected an unexpected number of rows(0). I selected * from the datasource. I made a template field to show the posts. There is a PostId in the framework. I am guessing that the PostID is not bound to the gridview the problem and the fix?
in my application, images are not shown in IE,where as it works f9 in Mozila, it sucks me,Plz help me to solve out the problemcheck it out the websitewww.clcparivar.inimages visible in Mozila bt nt shown in IE [URL]
I am using .Net Framework 2.0 as its a old application with a datagrid in a page. I want to expand each row when clicked to create a new row to display a page in the newly created row.
[Code]....
Instead when I show here orderdetail.aspx in a different page. I want to show it when any row is expanded based on ordernumber.
I've added a .ascx control in a Master Page in the site's root. It is perfectly shown when the page is in the same master page path (in the root in this case), but when the page is contained in a subfolder, the component isn't displayed.