I am new to Ajax and want to find out if what i am about to do is correct. I want to create an aspx page that has two buttons.
One button called GetData, to connect tothe database and get table information into a grid view
the other button called Create new row, that open an input form in a modal extender to add new row into a table
My question, is that do I use the same input form for add and edit functionality or I create two forms one for Add and another for edit.
The next question, how can i call the edit input form from a grid view.
I have a gridview (gridview-a) with a link button when the user click on this link button it opens a separate modal pop up extender with another grid view (gridview-b) (working fine) I added a close button inside the panel. When the user click on it the modal pop up is getting closed. Excellent.
Now my problem is When I add Edit,Save and Update buttons to the gridview-b ( i.e. Present inside Popup) when ever I click on the edit , or save or update buttons it is going to the gridview-a. How can I avoid that? Do I have to keep the gridview inside a update Panel and make the update mode conditional? If thats true how can I edit , save and delete the rows ( I need to call stored prcedures and all row-databound functions to do that)
I am trying to use the modal pop up extender. I found this source, through a tutorial:
The problem is that nothing seems to happen. This should make Panel1 into a modal box and display it. Instead, it just reloads the page, displaying nothing. I'm working in visual studio 2010. My project is an asp.net project, using .net 4.0. The AjaxControlToolkit.dll is V 3.5.40412.2. I have no code behind the code. I did add a reference to AjaxControlToolkit in my project.
The Top is IE and the bottom is FireFox. Firfox is showing correctly. In IE, however, the grey background start directly on the left edge of the page and not across the window span, and the modal target stays below the grey background.
I try to accomplish the following: When I click on a LoginStatus to log out, I want a modal popup extender to popup ONLY when some condition is true.The mpue has a targetcontrolId that refers to the LoginStatus-control, a PopupControlId that refers to a asp:panel-control.So far I accomplished only two situations:
I have the following code that I'm trying to get to work in a project. I've stepped into all of it and it executes in the correct order. The correct methods are called. The values that are passes are what they should be. I can't figure out why the modul pop extender doesn't open up with the details view in it though.
I have virtually the same code in another project and it works fine. I've compared the two but can't find the problem with it in this project.
I am using modal popup extender to display a user control which has AjaxToolKit- calender extender. When i click on it, it is shown in the background and i cant click or select a date.. i couldnot get it to work..
I am using a griview, in gridview placing a linkbutton then when click that linkbutton a modalpopup should occur. I am using oncommand method in linkbutton to get sum values, that values is display in the modal popup control. How can i acheive this , give me a sample code.
Usually my Modal popup extender is center by default. However, I have a modal popup that is not center - the modal popup is located on the right lower side of the screen. I have a CSS class for my website that I really dont want to start tracking to see if it is causing my problem (In fact I am pretty sure thats the cause of the problem). So I was thinking...
Is there anyway I can manipulate the modal popup position through the CSS. For instance:
The above is not working, it doesn't do anything to manipulate the width of my background and the position of the modal popup.
How to style ajax modal popup extender control just like in forums.asp.net site which when loaded displays a modal popup with close button. i dont want to show the popup every time if an user submits or cancels the popup once.