Firing both Client side event and server side event for server side button
I have a website where multiple users are updating various pages of data. If a user updates a particular section that other people are looking at I'd like to be able to trigger an update in the other peoples' Update Panels.
Is this possible?RegardsMatthew
You can update a panel from server-side code, by simply use the Update method of the UpdatePanel that you want to update./Fredrik Normén - fredrikn @ twitterMicrosoft MVP, MCSD, MCAD, MCTASPInsidersMy Blog
How do I get an event on one user's page to update other users' pages asyncronously?
My first thought was to record the events of...server-side control inside another server-side control
I have a requirement where I need to create a custom server side control which will contain a series of ASP controls -- no problem there.
However, this component also needs to itself be placed inside a server side control, and then placed into the page...so I'll have a custom server-side component inside a custom server-side component. Is that even possible? Everytime I start to think about it I get a headache.
It's perfectly possible. Just give it a try and you'll see that it works.-- "Mark As Answer" if my reply helped you --
Yup...server side controls in a non-server side form
I want to use server side controls in a non-server side form.I use server side controls (like dropdownlists) so I can fill them with the right options from the database.My question is, what is the best way to approach this?CAN I use server-side controls in a client side form? If so, how can I get the values contained in the controls when I do a post? (not in a querystring).Here's a sample of my code:
<form id="frmAdvancedSearch" method="post" action="advancedSearch.aspx">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input type="submit" />
</form>...controls won't update or events fire on server side in AJAX application.
I tried using "change" events for the controls, but they won't fire on the server side. I also tried putting them all in an update panel triggered on the events of those controls, but it still doesn't work.
Everything works OK on the cli...Server Side control invoking a Client Side event
I need to figure out how to get a server side control to process the "OnMouseOver" event.
Since server side controls do not have the onmouseover event associated with them, how would you make for example, a DropDownList have a "OnMouseOver" event associate with it?
The DropDownList must be server side. I guess the idea here is to set client-side events on the server-side control.
Any help will be appreciated.
You may try something like this:
In server side code
Th...How can you raise server side event from client side
Let's say I have an event on server side that handles button_click. how can I raise that event from client side using AJAX.
You can create a script in a string variable, and register withScriptManager.RegisterStartupScript http://msdn.microsoft.com/en-us/library/bb359558.aspx
string script = "alert('ciao!')";ScriptManager.RegisterStartupScript( this, this.GetType(), "Alert", script, true );If this answers your question, please select 'mark as answer' thanks!Andrea DottorMicrosoft MVP - ASP/ASP.NEThttp://blog.dottor.net
For buttons you can use JQu...Validation Controls in .NET ( Client side or server side?)
i have a very basic question. We have all these validation controls in asp.net ( required field, range validator and others)..my question is the required field validator is a server side control. So does that mean that it does a post back?..is it client side or server side control
The only controls that post back are buttons and other inputs where you set AutoPostback="True", such as a dropdownlist or a textbox. Another way of posting back is using an UpdatePanel and placing a trigger in it for a specified control and/or event.
All controls are considered clien...ajax
I made my own autoComplete extender because the standard one was not suitable for us... I have a problem to returning a property value of my extender that was changed on the client-side. I used the default extender template in order to create it. Does anyone knows how to update a property on client-side and get its value on the postBack? Normally the GetPropertyValue of the ExtenderControlBase should pick the value from client but it returns the default value on null...
Please help me...
Thank you very much
Have you or anybody else managed to find a solution for this...Calling a client side control event from a server side function
I would like to know how to raise an event on a client side only control from a server side function. For example, I have Button1 whose onclick is handled at the server. The logic behind the function will do 1 of 2 things, change the text of a label to indicate a problem or navigate to a new page. I cannot use redirect because i need the new page to appear inside 2 of 3 existing frames. I can manage this using an anchor on the client. All I need to do is automatically click the anchor after I post back from the Button1.click event.I tried the following line of c...making enter key in server side textbox cause a server side button event
hi, I have a asp control textbox with an asp button next to it ( ie both server side asp controls). If I press the enter key when focus is on the textbox - how can I trigger the enter button event to fire off at the server ? Many thanks?
ubique--Regarding this... ubique wrote:...I have a asp control textbox with an asp button next to it ( ie both server side asp controls).If I press the enter key when focus is on the textbox - how can I trigger the enter button event to fire off at the server ?...I have to ask: why do this?...why not simply have the endus...How to access Client Side control in server side button click event?
I need to access client side control from server side code. For an example
<form id="form1" runat="server">
<td><input type="text" id="textBoxUserName" /></td>
<td><asp:Button ID="buttonShow" runat="server" Text="show" OnClick="buttonShow_Click" /></td>
I need to access the textBoxUsername in the server side button click event.
How to do that?
I am trying to combine a server-side control with a client-side control.
I have created a listbox in both sides, the client-side control's code is:
<select size="4" name="lstFruit" id="Select1" ondblclick="lst_dblClick" visible="false">
The other one is the server-side control which has this code:
I wanted to add the ondblClick attribute to the se...