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:699959
More Search Options
RSS Available
Matching Posts
Re: How do I call the click handler of a button on the server side?
The new event is replacing the old one. I want to be able to conrol which one gets called. Let's say I click the button, do something in my new click event and then restore the old event. How do I do that?
Posted to
Web Forms
(Forum)
by
Mark Barnes
on 7/13/2009
Page_IsValid is set to true if OnClientClick is set
I wrote a UserControl that attaches a Javascript function to a parent form's submit button. The Javascript function ensures that the page is valid by calling Page_IsValid and then proceeds to execute some code. For the problematic pages, the Page_IsValid is set to true on first load. If I don't set the OnClientClick, Page_IsValid is correctly set to false on the first load. I can't figure out why Page_IsValid is behaving this way, since no events are being fired at all. Also, it only
Posted to
Web Forms
(Forum)
by
Mark Barnes
on 7/13/2009
How do I call the click handler of a button on the server side?
I am writing a UserControl that intercepts a submit button when dropped on a page does something to the fields on the page and then issues a click when its done. I am able to find the submit control on the page, but there doesn't seem to be a way to invoke the Click handler. I tried various methods including JavaScript, but they weren't reliable. The best one I've found is this piece of code: Type t = typeof(Button); object[] p = new object[1]; p[0] = EventArgs.Empty; MethodInfo m = t
Posted to
Web Forms
(Forum)
by
Mark Barnes
on 7/11/2009
Re: How do I call the click handler of a button on the server side?
Nice solution, but how do I restore the previous event. I will need to call it later. My desired solution is to avoid JavaScript as much as possible.
Posted to
Web Forms
(Forum)
by
Mark Barnes
on 7/11/2009
Is it possible to have more than one ConfirmationButtonExtender per page?
Is it possible to have more than one ConfirmationButtonExtender per page pointing to the same target control button? Let me also add that each ConfirmButtonExtender will supply its own OK and Cancel script. Any tips on what to look out for in doing this? Any gotchas?
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
Mark Barnes
on 7/10/2009
Re: Perform serverside processing before showing ModalPopupExtender
Through a lot of studying of JavaScript, trial and error and searching, I found the trick is__doPostBack. More specifically, the method Page.ClientScript.GetPostBackEventReferencewhich generates __doPostBack code for you. Using it along with hidden buttons that contained code on its onclick server-side event, allowed me to generate JS code from the serverside to do what I want. Thanks for your help.
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
Mark Barnes
on 7/9/2009
Re: Perform serverside processing before showing ModalPopupExtender
Any ideas? I'm getting the sense that this will involve lots of complicated JavaScript and a deeper understanding of AJAX.
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
Mark Barnes
on 7/7/2009
OnClientClick overwrites generated OnClick JS code
I have an interesting problem that I am trying to figure out. I am following some code examples and for the life of me I can't figure out why I am getting entirely different results even though they are using the same libraries. The code example specifies OnClientClick declaritively: <asp:Button ID="Button" runat="server" Text="Click Me" OnClientClick="disableSubmit();return false;" OnClick="Button_Click" /> View source gives me this: <
Posted to
Client Side Web Development
(Forum)
by
Mark Barnes
on 7/7/2009
Re: How do I reference the ID of a control that exists in the parent page of a user control?
Thanks a bunch. Duh. I forgot that the parent controls aren't instantiated yet when the accessor is called. That's why I was getting a null reference exception. For the benefit of all here's what to do: public partial class MyUserControl : System.Web.UI.UserControl { private string _targetControlID; public string TargetControlID { get { return _targetControlID; } set { _targetControlID = value; } } protected void Page_Load(object sender, EventArgs e) { ModalPopupExtender1.TargetControlID
Posted to
Custom Server Controls
(Forum)
by
Mark Barnes
on 7/6/2009
Perform serverside processing before showing ModalPopupExtender
I have a user control that contains a ModalPopupExtender and a ConfirmButtonExtender for OK and Cancel functionality. As soon as the user clicks the target control, I want to do some serverside processing and show the ModalPopupExtender with the results. Is there a way to catch the event where the user click the target control id. I want to do this in a way that doesn't destroy the OK and Cancel functionality I already have in place.
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
Mark Barnes
on 7/6/2009
Page 1 of 5 (43 items) 1
2
3
4
5
Next >
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online