I am at a stand still here. I have a GridView in which I'm moving the DetailsView (bound to a sqldatasource) to the ModalPopupExtender for Updating. DetailsView for the selected row is contained in an updatepanel with the UpdateMode set to Conditional. My Select function works properly, filling in the fields of DetailsView, but I cannot figure out how to get the Update function to work properly. I think what I am missing is a method to get the the key values and control values into the SqlDataSource UpdateParameters.
I'm starting with ASP.NET MVC (1.0). I have a problem to resolve. I have developed a web applicaton (an application of articles like e-commerce) with a head (logo and menu). I have defined the head (logo and menu) in the Master page (site.master). Now, I must display the number of articles in the head in a field (like the number of articles in the virtual basket in the e-commerce). I can read the number of articles in the data base (in the controller), but i can't integrate it in the master page.
How to create create variables/properties in master page, and let sub-pages access them? So my master will have a string property HomeUrl How can any page that uses the master page access this property?
I'm currently in the process of creating a webshop. This webshop supports theming, but I also want customers to choose a lay-out. I can create multiple masterpages and create a handler to dynamically set the correct master page. But some components, like the shopping cart, are controls which have to be present in the master page and are also used in the aspx pages. The shopping cart control for instance, has an Update method which is called whenever the user adds a product to their cart. So the question is: can I somehow create a default masterpage which has all the components on it, but still be able to create multiple lay-outs. And how should I reference that master page from the aspx pages? I also thought of creating an Interface class which defines the masterpage and it's public components, but I don't know if I can reference an interface from aspx pages.
I would really appreciate if someone can find out what's wrong with this code.
Here is my question. I have textboxes in a modal popup extender (City, state, zip) and there is an image button search for searching the address from the database. All this functionality is within a control (.ascx file). This control is added to the page where it needs to be displayed and is being displayed when a user click the Address button (the code for it is not shown here). The method ShowAddressSearch() in the control is being called from the page and it displays the popup.
When the user enters any of the 3 values and hits search a server event is fired up and the result should be displayed in a grid. What is happening is, when the user hits the search button the server call is made and the data fetched from the db but the modal popup closes itself here is the code for this. I would really appreciate if someone can find out where and how popup is getting closed.
I have a wierd issue with a ModalPopupExtender. I am using a GridView and a DetailsView Control inside a ModalPopupExtender to show the details. After I Hide the ModalPopupExtender it renders at the bottom of the page. The popup works fine, just when i close it it moves to the bottom. If i click on another item and close it, it just builds at the bottom of the page. If i click Save it closes and falls to the bottom of the page and my Update sql statement contains all the values of the below popups. Wierd huh!
I have tried both using the OKControlID and creating an event handler to do a ModalPopupExtender.Hide(); neither works. I have used the ModalPopupExtender a number of times and have never seen this happen.
i hope to add a popup panel in the child page. however i find that when i move the panel, the location is not right and the reason is the master page have some area which cause the location is not exactly right .for example, the panel is on x,y=10,10. when i click the panel, it jump to x,y=10.50.
I have other button BTNinsert that when I click on this button it insert data into database now problem is that when I click on BTNinsert it show popup for 1 second and after that insert data into database and if I refresh page it shows popup again for 1 second I want when I click on BTNinsert or refresh page it doesn't show popup just for a second...
I have a modal popup extender with one control (ascx) this control has a label that on onclic method call other popup extender.
In the other hand, If a use de second popup inside an asp page the event and control work correctly. The problem is with the popup inside popup.