473,385 Members | 1,640 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,385 software developers and data experts.

RaisePostBackEvent fires for last instance

1
I've created a control within a Web Control library, using ASP.NET 1.1 (VB.NET). The control has a value property and a ValueChanged event.

I have implemented the IPostBackEventHandler interface and have ensured that my control renders using the UniqueID. I have not added any code associated with an AutoPostBack, because it did not seem necessary for the application.

My control works great when I drop a single instance onto the web form. During runtime, when the value is changed and the submit button is clicked then the RaisePostBackEvent fires and I'm able to retrieve the value using "Page.Request(Me.UniqueID)".

However, when I place additional instances on the web form then I notice that the RaisePostBackEvent fires only once and always for the last instance of my control. I've read other forums where people have reported this problem, but I've yet to find a solution.

To further clarify, if I place two instances of my control on the page and give them ID values of "Control1" and "Control2" (respectively), then "Control2" receives the RaisePostBackEvent regardless of which control has been changed. I've examined the HTML source at the client and each control renders its own unique code (there is no duplicate code causing a postback to a single instance).

Does anyone have a solution to this?
Jun 14 '06 #1
0 1378

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

Similar topics

2
by: JayDee | last post by:
After a user enters data into a field, I need to populate other controls on the form, based on the user entry. I have to use either Leave, Validating or Validated, and I take it I can't use...
9
by: HL | last post by:
I am using VS 2005 Beta - C# Problem: The Timer fires a few milliseconds before the actual Due-Time Let's say a timer is created in the following manner: System.Threading.Timer m_timer = null;...
0
by: Lucas Tam | last post by:
Hi all, I've been struggling for the past few days to get a custom control to pass events to RaisePostBackEvent. My page successfully fires the RaisePostBackEvent, however, the EventArugment...
4
by: Karl Hungus | last post by:
how come RaisePostBackEvent doesn't work correctly if the IPostBackDataHandler isnt implemented. It seems that I must at least have: public bool LoadPostData(String postDataKey,...
5
by: jdn | last post by:
In my page load, I have the following DropDownList.Attributes.Add ("onblur", Page.GetPostBackEventReference(this, "Update")) The page itself implements IPostBackEventHandler (I don't want a...
2
by: Steve Guidos | last post by:
1) Start a new web application in Visual Studio 2) Drop a CheckBox onto the form and set its AutoPostBack to TRUE 3) In the codebehind, override the RaisePostBackEvent event with: protected...
1
by: Vern DeHaven | last post by:
Hello all, Working on a W2K3 box with Framework version 1.1.4322 here. I've implemented a Web service in VB.NET by generating a server skeleton off the WSDL and overriding the abstract class. ...
3
by: Trex | last post by:
ASP.NET RaisePostbackEvent Issues I ran into some problems on a particular page in an application. Only on that page, for the same control that worked in other pages, the RaisePostbackEvent was...
0
by: Dario | last post by:
Hi! I'm building an ASP.NET application using master pages, but there is a problem that I can't solve. In a master page there are some controls and some controlplaceholders, that I fill...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.