I have a form with multiple text boxes on it and one of several can
raise a postback event. Is there a way to easily tell which one raised
the event? Thanks!
I have a form with multiple text boxes on it and one of several can raise a postback event. Is there a way to easily tell which one raised the event? Thanks!
Each item can have an event handler, so one option is to just put your logic in each individual event handler.
-Darrel
Thanks for the response. I wasn't aware TextBoxes could have event
handlers, I've only used them with various bound controls. I'll look
into it.
text boxes use javascript to postback, so you can look in th hidden field
"__EVENTTARGET" to get the name of the control.
-- bruce (sqlwork.com)
"MattB" <so********@yahoo.com> wrote in message
news:3o************@individual.net...
I have a form with multiple text boxes on it and one of several can raise a postback event. Is there a way to easily tell which one raised the event? Thanks!
> Thanks for the response. I wasn't aware TextBoxes could have event
handlers, I've only used them with various bound controls. I'll look into it.
Ah, yea, you are correct. You'd have to use javascript to do that with the
textboxes.
Hmm...I dunno. I'm stumped. (Though, I have to ask, what are you doing with
the postback of a textbox...is this perhaps something you could/should just
leave client side with javascript?)
Thanks for the response. I wasn't aware TextBoxes could have event handlers, I've only used them with various bound controls. I'll look into it.
Ah, yea, you are correct. You'd have to use javascript to do that with the textboxes.
Hmm...I dunno. I'm stumped. (Though, I have to ask, what are you doing with the postback of a textbox...is this perhaps something you could/should just leave client side with javascript?)
-Darrel
Mostly because I'm lazy, and I'm better at server-side (VB) than
client-side coding. It's an Intranet application so the bandwidth for
postbacks isn't critical.
I have a form with multiple text boxes on it and one of several can raise a postback event. Is there a way to easily tell which one raised the event? Thanks!
I have a form with multiple text boxes on it and one of several can raise a postback event. Is there a way to easily tell which one raised the event? Thanks!
I have a UserControl that contains a calendar control. The calendar is not
raising events (month navigation, date selections, etc.). I've checked that
the OnSelectionChanged event has a handler...
Hi,
Is there documentation that talks about the page lifecycle, the lifecycle of
controls on the page, and the rendering of inline code, in a single
document?
Thanks,
John
I'm sure this is a design question that is commonly encountered, but I
can't find any resources which explain how to solve it. I would deeply
appreciate any advice.
Basically, when building a...
Hi,
I have created a composite control that has a number of standard asp.net
controls on it that can themselves cause postbacks.
What i need to do in my composite control is to determine which...
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$) {
}
...
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...
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...