|
 |
|
|
Hi TCartwright,
First, I must say that this is an excellent article, and it is a very refreshing change in calling the modalpopup from server side, instead of from the clientside. I've seen lots of articles "clicking" the hidden button from client side, and there's quite a number of problems in getting the button.ClientID onto the Javascript, and even registering the scriptblock properly.
Ok...
What is "SCRUB"?
I've googled this, and whole load of strange results, such as household cleaners, TLC's "No Scrub" lyrics, etc...
Please help.
Thanks!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|

<b> I want to disply grid view as like excel sheet <u><big>with minimum empty rows </big></u> for enter into the data .then after clicking save button to be storde in databse which information are enter into the grid view <big><pre>plz refer frome urls or send code to mu mail id vishnumm@gmail.com</pre></big></b>
thanks
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
|
 |
|
|
I am trying to use the technique you outline here and use your code as a guideline, but whenever I try to view the page in IE (be it version 6 or 7), I get JavaScript errors saying "Object Required" and my page simply refreshes when I click on the Edit button.
Granted, I'm using a DataGrid, not a GridView, but does that really make that much of a difference? I feel that the problem lies in the Ajax markup, not the code-behind. At least, that's my guess. Input?
========================= ~Events occur in real time~
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
Hi, Thank you for great post. It helped me a lot. I am having on problem you might be able to help. I am using a formview and depending which button is clicked I am changing its mode to edit or insert
FormView1.DefaultMode = FormViewMode.Insert; //or Edit Depending on the button UpdatePanel1.Update(); programmaticModalPopup.Show();
but the formview mode deos not change. Do you have any suggestions?
Thanks, Mo
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Try to use:
FormView1.ChangeMode(FormViewMode.Insert);
instead of:
FormView1.DefaultMode = FormViewMode.Insert;
[]'s!
Henrique
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Thanks so much for sharing this I am a programmer that goes off examples in conjunction with technical books. And I found I was able to figure out the code with the help of documentation. To alter the way I needed. So, thanks so much for sharing...
One question I don't understand this code: ---------------------- <!--cheesy button for the modal popups target control--> <asp:Button ID="btnHiddenCat" runat="Server" Style="display: none" />
**Is the above line becuase the module has to be associated with a button to ModalPopupExtender? So instead of a button doing a mpe="ID" they reversed it and put the onis on the mpe to detect the click event of the button?
------------------------ Button btnEditCat = sender as Button; GridViewRow row = (GridViewRow)btnEditCat.NamingContainer;
***Is the sender always the HTML object being invoked or used? So the Button was clicked there for the sender is a button? But what I don't get is the next line. Is that saying okay what is the button contained in or wrapped in? Which is a gridviewrow? In otherwords it is getting the name of the wrapper using the button? -------------------- //generic row data bound handler to add the DataItemIndex to the edit button's CommandArgument if (e.Row.RowType == DataControlRowType.DataRow) { string editIndex = e.Row.DataItemIndex.ToString();
Button btn = e.Row.FindControl("btnEditCat") as Button; if (btn != null) { btn.CommandArgument = editIndex; } btn = e.Row.FindControl("btnDeleteCat") as Button; if (btn != null) { btn.CommandArgument = editIndex; } }
*** this I just plain do not get? What is a data Item index? and why do we need to assign it as anrguement to the two btns? I read docs it says it is an index but an index to what? And why is it important to assign it? It doesn't seem to being used in the onclick events?
I also tooked it out and it doesn't seem to impact functionality... Could you explain why it was included? -------------------------------
thanks for any time you give to answer these questions. I am a person that learns kinda backwards way by example can't read technical books then implement. Need example to change then look up technical reasoning.
Yours in deepest gratitude,
Angela
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
i have asp:Panel ID="pnlPerson" runat="server" CssClass="modalBox" ScrollBars="Both"
I want to create a "sticky panel" that follows when you scroll. ? possible
any help?
thanks
-- modified at 1:22 Saturday 8th September, 2007
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|

I am adapting this Modal popup to use with a current project, however when I click on the Edit button, nothing happens. It just reposts with the gridview and no popup. How can I fix this? I have looked at both of our code and don't see anything out of whack, but I am no expert at this. This is the first time I have used Ajax.
Candi
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Yes. I was able to figure out the problem. I wasn't showing the update panel it is all contained in.
~Candi
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
I Have Ie 7.0 and paging is working for me...
Did you make sure you declared a trigger event for the updatepanel and set your paging on as well as the page count?
<Triggers> <asp:AsyncPostBackTrigger ControlID="GridView1" EventName="PageIndexChanging" /> </Triggers>
<asp:gridview AllowPaging="True" PageSize="1" .....
Paging didn't work for me until I declared the trigger for the panel telling it to allow the postback.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
All of us want to be able to pop up a single panel to enable the user to edit the data. Nice idea.
BUT: None of the validation controls (RequiredFieldValidator, RangeValidator, CustomValidator, etc.) work. Or, at least, they do work and ensure the validation requirement is met but if it is not met, no error text is show.
ASP ~ Apple Simply Performs
|
| Sign In·View Thread·PermaLink | 3.20/5 (3 votes) |
|
|
|
 |
|
|
Yea, I had already thought of that. I use Peter Blum's validators with this technique which are hands down superior to the built in ones, but not everyone will have that luxury. Give me a bit and I will see if I can come up with a solution to this.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
Hey,
I downloaded your example.
And my IE 7 open's the page. --> No Problem so far. But when i hit the edit imagebutton in the grid nothing happens @ all ? In fire Fox (version 2.0.0.2) i have the same result, nothing
Anyone else having this problems ?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |