Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:603762
More Search Options
RSS Available
Matching Posts
Re: __doPostBack and ModalPopupExtender
Yeah I do that and it still shows on postback. I ended up getting rid of the __doPostBack: function EnterKeySubmit(evt) { //submits form on enter key. if (evt.which || evt.keyCode) { if ((evt.which == 13) || (evt.keyCode == 13)) { //submit login request. location = document.getElementById('<%=lbLogin.ClientID %>').href; return false; } } return true; }
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
jtoth55
on 9/28/2009
__doPostBack and ModalPopupExtender
Hey all, I have a login page that also has a modalpopupextender on it for opening up a change password form. I have some javascript on the page so that the login form can handle a user pressing the enter key: function EnterKeySubmit(evt) { //submits form on enter key. if (evt.keyCode == 13) { //check if form is valid. if (typeof(Page_ClientValidate) == 'function') { if (Page_ClientValidate("Login") == false) { return false; } } //postback page to submit login request. __doPostBack
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
jtoth55
on 9/27/2009
Re: Modal Popup closes on Postback
Thanks, that worked! I guess it was the AsyncPostBackTrigger that I was missing, it just makes me wonder how I got it to work in the past without using triggers...
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
jtoth55
on 9/25/2009
Re: Modal Popup closes on Postback
The dll in the bin is the 3.5 version and there isn't anything in the web.config referencing the ajaxcontroltoolkit. So the placement of the updatepanel, modalpopupextender, and associated button seems right to you?
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
jtoth55
on 9/24/2009
Re: Client-side validators not firing on button click
This isn't a code problem, like I said the code works fine in another web app. It has to be some sort of configuration issue or something in the web.config after upgrading from 1.1 to 3.5. Client-side validation just doesn't work, it goes straight to the server-side postback.
Posted to
Web Forms
(Forum)
by
jtoth55
on 9/23/2009
Re: Modal Popup closes on Postback
Thanks but I've already tried this and it didn't work. The reason I have the updatepanel around the entire modal popup is because then it doesn't show the postback when opening the modal popup. If you put the updatepanel inside the modal popup then it's not encompassing the linkbutton which opens the modal popup so it shows a postback when opening the modal. Also, when moving the update panel within the modal popup, it still closes on postback so it didn't make any difference
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
jtoth55
on 9/23/2009
Re: Modal Popup closes on Postback
Thanks for the tips. Upgrading to the 3.5 version of the ajaxcontroltoolkit had no effect. I'm thinking more and more that this must be related to the bug where client-side validation stops working after upgrading from 1.1. With the validation, it's supposed to execute client-side javascript and not postback if there are invalid controls but it bypasses the javascript and does a server-side postback. With the modal popup and the update panel, it's supposed to use javascript to refresh
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
jtoth55
on 9/23/2009
Re: Client-side validators not firing on button click
I created a new 3.5 web app project and copied all my files over and client-side validation started working! So this means that there's a bug in migrating a web app from 1.1 to 3.5 but it doesn't always occur, as I've migrated other apps that didn't have this issue. My guess would be it's either something in the project file or the web.config.
Posted to
Web Forms
(Forum)
by
jtoth55
on 9/23/2009
Re: Modal Popup closes on Postback
I was able to figure out the client-side validation issue and it wasn't related. However I'm still having the issue with the modal popup closing on postback, here's the code: http://pastebin.com/m7edb9222 When they click the lbSave link button it's closing the modal popup, I've tried putting UpdateMode as both Always and Conditional. Suggestions??
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
jtoth55
on 9/23/2009
Client-side validators not firing on button click
I've got an ASP.NET web app that I upgraded from 1.1 to 3.5. For some reason, client-side validation isn't firing for standard validator controls such as RequiredFieldValidator; it posts back right away and goes to the server-side onclick method. The same exact code works fine in another web app so there's something funky going on here, most likely related to upgrading. I've tried adding EnableClientScript="true" but to no avail. I know that before you needed to have a aspnet_client
Posted to
Web Forms
(Forum)
by
jtoth55
on 9/22/2009
Page 1 of 16 (159 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Channel 10:
ASUS Brings GUI to BIOS
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online