Hello,
how can I clear all ViewStates from a WebUserControl without
doing a PostBack ?
Thanks in advance,
Andreas 3 4992
You can't. ViewState is handled on the server, not on the client.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
The more I learn, the less I know.
"Andreas Klemt" <ak******@hotma il.com> wrote in message
news:eF******** *****@TK2MSFTNG P09.phx.gbl... Hello, how can I clear all ViewStates from a WebUserControl without doing a PostBack ?
Thanks in advance, Andreas
Hello Kevin,
should I use control.clear? Is there a way to clear any viewstate from
textboxes?
Regards,
Andreas
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> schrieb im Newsbeitrag
news:On******** ******@tk2msftn gp13.phx.gbl... You can't. ViewState is handled on the server, not on the client.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com The more I learn, the less I know.
"Andreas Klemt" <ak******@hotma il.com> wrote in message news:eF******** *****@TK2MSFTNG P09.phx.gbl... Hello, how can I clear all ViewStates from a WebUserControl without doing a PostBack ?
Thanks in advance, Andreas
Hi,
You can set that textbox won't get any viewstate by setting
enableviewstate property to false. this can be done only on the server
side.
Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Christian |
last post by:
Hi,
Viewstate of WebUserControl does NOT work although the
'EnableViewstate'-property of the usercontrol is set to true
Description :
Using ASP.Net :
I have a created a WebPage with 2 buttons and 1 Web-UserControl of type
LottoWebUserControl. The control has 1 label-control embedded
|
by: Christian |
last post by:
Hi,
Viewstate of WebUserControl does NOT work although the
'EnableViewstate'-property of the usercontrol is set to true
Description :
Using ASP.Net :
I have a created a WebPage with 2 buttons and 1 Web-UserControl of type
LottoWebUserControl. The control has 1 label-control embedded
|
by: Robin Bonin |
last post by:
In my user contol I am creating a set of dropdownlists.
Each list is created based on input from the other lists.
The problem I am having is setting the selected index on
the lists.
If someone changes box1, I want to set the selected index in
box2 = 0. When I do this, I dont get an error, but when the
page loads, it still has the selected value and not 0.
It seems that it is getting the selected value from the viewstate
|
by: Calvin X |
last post by:
Hi all I have the following code in the page load event. The function in
this code works get to populate the 4 dropdownlists on my webform. I have
enabled postback because when the user selects from one of the boxes it
should filter the other dropdownlists according to the data selected in the
one causing the postback. However, when the post back runs the drop down
boxes are empty and there are no values in the list. I realize that this...
|
by: et |
last post by:
I'm not sure I understand the use of the ViewState.
Do I understand correctly that values of controls are automatically held in
a hidden control called ViewState?
If so, then why can't we get them, or how do we get that value? I always
have to set the ViewState("FirstName") = txtBox.text myself before a
postback is done, otherwise, the value of ViewState("FirstName") is always
empty; there doesn't seem to be a way to retrieve that...
| |
by: olduncleamos |
last post by:
Hello all,
I am experimenting with the repeater control and ran into something
that I wasn't expecting. I would appreciate if the experts can confirm
or correct my understanding.
Here is a fragment of a very simple page that I wrote that will drill
down into the displayed item. The result is to be display on the same
page so that the user can keep on drilling down:
|
by: Nad |
last post by:
Hello,
I have a page with two link buttons. When I click on the first one I call
server.execute("target.aspx") to view target.aspx on the original page.
Then I click on the second link button and in this case I redirect to
another page, HOWEVER, I get Invalid ViewState exception. I know the problem
stems from server.execute but don't know why. Any Ideas?
Thank you.
|
by: batista |
last post by:
Hello,
I have a web page, which is being refresh after every
30 secs.Now, there is also a datagrid in it, which i bind
in the pageload event.
Now the problem is when the page is refresh after 30 secs
the datagrid loses it's values.
I mean it does not maintain it's viewstate.
Why is it?
|
by: bminder |
last post by:
I have a web user control that contains a serializable class. I persist
this class in viewstate, but on postback, the viewstate is null. Is
this behavior by design?
This technique works fine on regular pages -- just not in a control.
Is the main page's viewstate interfering with the control's viewstate?
Thanks,
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |