473,322 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

User Control and Event handling

Current Scenario:

I have a user control (with a text box and an Ajax Calander control)to manage "Date Selection" by user. The selected date is exposed to the asp.net web form as a property along with enabling/disabling of the "autopostback" property of the textbox.

I have 2 of these user controls on the same web form.

1. <dpc:DatePickerControl ID="dpcDate" runat="server" ErrorMessage="Date" AutoPostBack="true" />

2. <dpc:DatePickerControl ID="dpcSourceDate" runat="server" ErrorMessage="Source Date" CauseValidation="false" AutoPostBack="true" />

Problem:

I would like to add a "DateChanged" event to be triggered every time the user selects a new calender date.

Also, for each user control, I want their exclusive event handler on the aspx page.

Please help!
Jun 15 '12 #1
1 1918
Frinavale
9,735 Expert Mod 8TB
I don't think you can cause a server side event to occur with the Ajax toolkit's calendar control.

Consider handling the TextChanged event of the TextBox that it is attached to since it's what is changed when the user changes the date.

-Frinny
Jun 18 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tom | last post by:
hi guys I have a problem a event bubble that isn't working. isn't working= I've opened up a handle in my user control but when I try to use it ie. ok I am trying to assign an event handler from...
0
by: mortb | last post by:
Hi. I have a page that has a user control as a header on it: ------------------------------------------------------------------- | Header linkButton: logout ...
1
by: Nick Stansbury | last post by:
Hi, Is there any way to cause a page to completely resubmit itself from the server side? I have an array of user controls that, in the event handler of the user control itself, add new user...
6
by: Rob Morgan | last post by:
I have a grid and a user control on the same page. The user control has a save button that triggers a click event server side. Once the click event happens the page renders, but I need to update...
2
by: Developer_Software | last post by:
Thanks in advance to anyone who can help :) I've got a placeholder control WITHIN A USER CONTROL that has its contents dynamically added and removed at runtime by a regular .aspx page. At...
3
by: c676228 | last post by:
Hi all, I have an event in user control email to handling email change when user want to change the input for email address. Here it is In email.ascx.vb: Protected Sub UpdateEmail(ByVal sender As...
1
by: nashak | last post by:
Hello, Following is my scenario: When I click a button on my aspx page, the panel containing a use control becomes visible. This user control has a data grid in it. The user enters some data...
2
by: Italian Pete | last post by:
Hi, I have a search bar as a User Control sitting on a Page. The asp web control search button has its OnClick event set to a method "Search" which sets a bool isSearch to true. When I try to...
5
by: rn5a | last post by:
Consider the following user control which resides in Address.ascx: <script runat="server"> Public Property Address() As String Get Address = txtAddress.Text End Get Set(ByVal value As String)...
5
by: Andrew Robinson | last post by:
I have a page that can load a number of different user controls. Each of these user controls inherits from a common base class and the controls are loaded based on application state, status, etc...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.