Hello all,
I have a problem here.
I have a procedure called FillForm() where I populate values for some hidden
asp:textboxes.
But after I do a postback, my values in the textboxes are lost and I see
only "" values.
Hope someone can help me with this.
Thank you. 3 1440
Check the veiwstate property for the page by default it is true.
--
BaluSmiles
"Rajesh" <di*******@yaho o.com> wrote in message
news:Os******** *****@tk2msftng p13.phx.gbl... Hello all, I have a problem here. I have a procedure called FillForm() where I populate values for some
hidden asp:textboxes. But after I do a postback, my values in the textboxes are lost and I see only "" values.
Hope someone can help me with this. Thank you.
Well, I I did not specify the EnableViewState property.
So by default it should be true.
Oh! and I forgot; when I make the textboxes to be visible and not hidden
anymore,
the values are retained.
Strange isnt it!!
"Balu Smiles" <ba********@hot mail.com> wrote in message
news:es******** ******@TK2MSFTN GP09.phx.gbl... Check the veiwstate property for the page by default it is true. -- BaluSmiles
"Rajesh" <di*******@yaho o.com> wrote in message news:Os******** *****@tk2msftng p13.phx.gbl... Hello all, I have a problem here. I have a procedure called FillForm() where I populate values for some hidden asp:textboxes. But after I do a postback, my values in the textboxes are lost and I see only "" values.
Hope someone can help me with this. Thank you.
Use html hidden control, before using right click and choose 'run as server
control'.
This is better instead of a normal textbox, when u say visible=false for any
webserver control, the control is not emitted at all.
Another good trick if u are bent on using the textbox is,
1. make its border flat instead of 3d, with no border.
2. make the background color of the text box equal to the page background
color.
3. visible can be true.
Kind of merges with the background.
"Rajesh" <di*******@yaho o.com> wrote in message
news:Od******** ******@TK2MSFTN GP11.phx.gbl... Well, I I did not specify the EnableViewState property. So by default it should be true.
Oh! and I forgot; when I make the textboxes to be visible and not hidden anymore, the values are retained. Strange isnt it!!
"Balu Smiles" <ba********@hot mail.com> wrote in message news:es******** ******@TK2MSFTN GP09.phx.gbl... Check the veiwstate property for the page by default it is true. -- BaluSmiles
"Rajesh" <di*******@yaho o.com> wrote in message news:Os******** *****@tk2msftng p13.phx.gbl... Hello all, I have a problem here. I have a procedure called FillForm() where I populate values for some hidden asp:textboxes. But after I do a postback, my values in the textboxes are lost and I
see only "" values.
Hope someone can help me with this. Thank you.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Newbee Adam |
last post by:
how to save textbox values to 2 tables using sqladapter
I am new with this. Do I need to ADO.net?
what is the simplist correct way?
or can I write a query in my vb.net form
insert table Machine_Count(MachName, CoinsIn)
values(txtMachineName(1).Text, txtCoinsIn(1).Text)
|
by: Peter D.C. |
last post by:
Hi
I want to update data hold in several textbox controls on an asp.net form.
But it seems like it is the old textbox values that is "re-updates" through a
stored procedure who updates a SQL tabel. I know the SP works, because a
smalldatetime-field in the database is changed. I've tried to disable
viewstate on all textbox controls.
Any ideas to solve this problem.
|
by: bwalke |
last post by:
I am developing a web form which is going to be used for manufacturing
input. The form uses a DataList which list a batch of parts that may
range anywhere from 1-9 parts. The DataList contains 6 textboxes
pre-fill with data (reason for using datalist) which will capture user
input and changes to the textboxes. So the 6 textboxes in columns will
be constant but the rows will vary representing each part. I am
looking to loop through...
|
by: colleen1980 |
last post by:
Hi: Can any one please tell me that how to i pass the two textbox
values in the new page. If i use the form action in the popup window
page then the new page is open in the same popup window as i need to
open the new page in the main page window with passing the two textbox
parameters into the new page. Program opens the new page but dont know
how to pass the two textboxes values into the new page name
deceasedToday.asp Needs help in...
|
by: rahuls2930 |
last post by:
i want to use a value for the whole page
how could i use that
whether storing in a hidden textbox or viewstate or global variable
which one is better
| |
by: sandhyamn |
last post by:
hi....i am writing a jsp code for uploading file inside a folder using multipart/form-data.but also i want to write textbox values in to that file, but the textbox values is not coming. ie..textbox content(string) is not taken.if i am using enctype= text/plain,then the textbox valus is coming(valus can displayed in the internet explorer.....but the uploading is not coming...what to do... here any code for write the textbox values into a file...
|
by: sandhyamn |
last post by:
hi...i am trying to write a programme for uploading file with jsp using multipart/form data.it's working.....but the problem is i can't write the textbox values into a file....if change the form enctype as text/plain...then the textbox value is taken..but the file uploading is not working...i want a programme like when the file is uploading the textbox is value is write into that file...anyone know how to do this....with javascript and jsp..
|
by: Andy B |
last post by:
I have this code:
protected void EditEventsWizard_NextButtonClick(object sender,
WizardNavigationEventArgs e) {
//get the values from the DetailsView
TextBox StartTime = (TextBox)EditEventForm.Rows.Cells.Controls;
TextBox EndTime = (TextBox)EditEventForm.Rows.Cells.Controls;
|
by: kumarrk |
last post by:
Hi all,
i am using place holder for dynamic textbox and label box, then when i enter the values in textbox then i click the add button and save to database, but i couldnt get the dynamic textbox values, Pllssssssssss help how can i get the dynamic values using vb.net
pls help me as soon as possible
regards
kumar
thanxxx....
|
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |