473,396 Members | 2,038 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,396 software developers and data experts.

custom control client values gone with postback

Hi,

I'm trying to make my own web custom control.
I've made a control with 2 textboxes and 1 dropdownlist.
But when I enter values in them and get a postback the values are gone.
How can I hold the values typed in by the client??
(for processing on the server but also to display them back)

tia
Nov 25 '05 #1
3 1139
could this be an enableviewstate=false issue?
"Pipo" <Pi**@home.com> schreef in bericht
news:Oe**************@TK2MSFTNGP14.phx.gbl...
Hi,

I'm trying to make my own web custom control.
I've made a control with 2 textboxes and 1 dropdownlist.
But when I enter values in them and get a postback the values are gone.
How can I hold the values typed in by the client??
(for processing on the server but also to display them back)

tia

Nov 25 '05 #2
Nope...all the controls have viewstate enabled!!!

"Edwin Knoppert" <ne**@hellobasic.com> schreef in bericht
news:43**********************@text.nova.planet.nl. ..
could this be an enableviewstate=false issue?
"Pipo" <Pi**@home.com> schreef in bericht
news:Oe**************@TK2MSFTNGP14.phx.gbl...
Hi,

I'm trying to make my own web custom control.
I've made a control with 2 textboxes and 1 dropdownlist.
But when I enter values in them and get a postback the values are gone.
How can I hold the values typed in by the client??
(for processing on the server but also to display them back)

tia


Nov 25 '05 #3
I have a similar problem with a dropdownlist.
it is populated in the page_load, the selected item get's lost.
So i obtain the value from the request.form stuff.
(I want it this way)
"Pipo" <Pi**@home.com> schreef in bericht
news:OD**************@TK2MSFTNGP09.phx.gbl...
Nope...all the controls have viewstate enabled!!!

"Edwin Knoppert" <ne**@hellobasic.com> schreef in bericht
news:43**********************@text.nova.planet.nl. ..
could this be an enableviewstate=false issue?
"Pipo" <Pi**@home.com> schreef in bericht
news:Oe**************@TK2MSFTNGP14.phx.gbl...
Hi,

I'm trying to make my own web custom control.
I've made a control with 2 textboxes and 1 dropdownlist.
But when I enter values in them and get a postback the values are gone.
How can I hold the values typed in by the client??
(for processing on the server but also to display them back)

tia



Nov 25 '05 #4

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

Similar topics

5
by: Robert Phillips | last post by:
I have a Panel control containing a few TextBox controls. The Panel is originally enabled, I enter data into the TextBox controls. When I submit, the Panel is disabled during the PostBack and the...
2
by: John Lau | last post by:
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
21
by: One Handed Man \( OHM - Terry Burns \) | last post by:
When using a custom control. In order to check and see if values have changed one has to implement the IPostBackDataCollection interface. The values returned for the control seem to be simply a...
1
by: Lamont Adams | last post by:
Hi all, I've created numerous custom controls of varying complexity, but I've been on this problem for a day and a half, and I can't figure this mystery out. I hope one of you kind folks can...
5
by: PCH | last post by:
I have an c# asp.net (.net 1.1) web page, viewstate on. The problem I am having is on the button click postback to update. Heres the situation: I have an asp table that has 1 header row. ...
3
by: The Developer | last post by:
Hi All, I have a web application where I am adding a custom attribute to my ASP.NET text box control and changing value of that attribute at client side using JavaScript. My problem is that...
5
by: | last post by:
Hi all, Has anyone been able to write some custom javascript on the onclick event of submit button to do certain things like disable submit button, only submit form once etc. This was a breeze...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
2
by: Pipo | last post by:
Nobody knows how to get the values provided in the client can be read in the user-control? If have made a Web Custom Control with 2 textboxes and 1 dropdownlist. The user fills in my control (the...
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
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
marktang
by: marktang | last post by:
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,...
0
jinu1996
by: jinu1996 | last post by:
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.