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

Processing Postback Data

I want to access the values submitted by a custom control I wrote (using
VB.NET). My control creates an HTML Table and Input type="hidden" tags. All
I want to do is assign the value submitted from the Input tag to a property
of my custom control. I know that this involves implementing the
IPostBackDataHandler interface, but I cannot seem to get it to work. If
anyone could help me figure this out, or direct me to a site with some good
examples, I would appreciate it. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Jul 20 '06 #1
3 1163
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

1) Please don't crosspost.
If anyone could help me figure this out
2) There's little point in posting here that you have a code problem unless
you actually show us your code...
Jul 20 '06 #2
Nathan,
If you use an ASP.Net HiddenField you could just handle the OnValueChanged
event of the control to set the property on your user control. I don;t think
that you'll have to worry about implementing the IPostBackDataHandler
interface.

Garth.

"Nathan Sokalski" wrote:
I want to access the values submitted by a custom control I wrote (using
VB.NET). My control creates an HTML Table and Input type="hidden" tags. All
I want to do is assign the value submitted from the Input tag to a property
of my custom control. I know that this involves implementing the
IPostBackDataHandler interface, but I cannot seem to get it to work. If
anyone could help me figure this out, or direct me to a site with some good
examples, I would appreciate it. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Jul 20 '06 #3
sam
You seem to know what you are doing, but the only reason its not
working is becuase the UniqueID of your composite control must match
the name attribute of the hidden field (in the client html) for that
method to be fired. So your hidden field can catch the event (and
should be getting its submitted value filled in), but your composite
control can't. So the suggestion above will probably work.

If you need more help let me know.

Jul 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stevenson | last post by:
Hello. If have written a webservice within C# that is called from an aspx and processes incoming data correctly. The problem is that the ASMX runs twice before returning. I have debugged the...
5
by: Matthew Louden | last post by:
I created simple ASP.NET web application to test how AutoPostBack property in a web control works. I set AutoPostBack property to be true of a web control. When I run the application, here's the...
0
by: anonymous | last post by:
Thanks Michelle, How could I achieve the second one.I do not like Flashing windows in response to selection of an item. I agree the data transfer is very little but the same data transferred for...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
2
by: Dave Williamson | last post by:
When a ASPX page is created with dynamic controls based on what the user is doing the programmer must recreate the dynamic controls again on PostBack in the Page_Load so that it's events are wired...
1
by: Guadala Harry | last post by:
Suppose two different servers (two different physical machines - no clustering or farming going on here) on the same network: 1: Web Server (2003/IIS6) 2: SQL Server .... and an ASP.NET Web...
4
by: Fao, Sean | last post by:
I'm trying to show an animated image temporarily while the web server is processing a long request. I attempted to use a combination of CSS styles and JavaScript to temporarily hide or show only...
5
by: Adrian Parker | last post by:
Say I have a form with several fields on it, some of which cause postbacks when changed. How can I stop the user from continuing to type data into the other fields while the server is still...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
1
by: jeffreytfritz | last post by:
I have a situation where we have placed a composite webcontrol (containing several buttons) on a webpage. The control has several 'OnClick' events wired up to the buttons, and handlers are placed...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
0
by: emmanuelkatto | last post by:
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
0
BarryA
by: BarryA | last post by:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.