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....
9 3998
Hey dear you have to use ViewState variable for your dynamic controls to keep their values save on postback
Hey dear you have to use ViewState variable for your dynamic controls to keep their values save on postback
thanx..
But i am new to vb.net
so i show my code then u will reply me how can i use viewstate
can u help me...
advance thanx...
Please use the CODE tags when posting code (the # button on the text editor). Especially when you are going to dump 120 lines of code on us.
MODERATOR
use -
ViewState["USERCONTROLNAME"]= anyinstance;
only one in the code
and re create all the dynamic control on every post back
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....
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....
Check out how to use dynamic controls in asp.net.
-Frinny
use -
ViewState["USERCONTROLNAME"]= anyinstance;
only one in the code
and re create all the dynamic control on every post back
Hi thanx for ur reply,
My requirement is i am getting some values via dropdownlist then create x number of Labels and Text boxes when i am clicking a button. Then i put some values in the textboxes after that i have to show in a label all of the text box values. I am using viewstate but i couldnt get the values... can u help me immediatly for last 4 days i am trying but i couldn't finish..
if i create this code in page init and using view state i can get the values, but i cant use my code in page init because i have to take some values via ddropdownlist then show the textboxes by button clicking event thats why i havent get the view state values i think....
expect your reply..... as soon as possible..
Advance thanx....
Check out how to use dynamic controls in asp.net.
-Frinny
Hi
My requirement is i am getting some values via dropdownlist then create x number of Labels and Text boxes when i am clicking a button. Then i put some values in the textboxes after that i have to show in a label all of the text box values. I am using viewstate but i couldnt get the values... can u help me immediatly for last 4 days i am trying but i couldn't finish..
if i create this code in page init and using view state i can get the values, but i cant use my code in page init because i have to take some values via ddropdownlist then show the textboxes by button clicking event thats why i havent get the view state values i think....
expect your reply..... as soon as possible..
Advance thanx....
Check out how to use dynamic controls in asp.net.
-Frinny
Hi
My requirement is i am getting some values via dropdownlist then create x number of Labels and Text boxes when i am clicking a button. Then i put some values in the textboxes after that i have to show in a label all of the text box values. I am using viewstate but i couldnt get the values... can u help me immediatly for last 4 days i am trying but i couldn't finish..
if i create this code in page init and using view state i can get the values, but i cant use my code in page init because i have to take some values via ddropdownlist then show the textboxes by button clicking event thats why i havent get the view state values i think....
expect your reply..... as soon as possible..
Advance thanx....
You want to declare your textboxes and labels so that they are global variables for the aspx page. You then want to instantiate these variables in your page_init event. After that point you should be able to access them anywhere in your aspx page.
Please post what you have tried so far.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Mark |
last post by:
I want to create textboxes dynamically but with dynamic names also.
i am retrieveing a load of values from a table in SQL into a DataReader.
Then i want to create textboxes from those variables. ...
|
by: vitaly.tomilov |
last post by:
I'm using an ASP.NET form to display data from my database table, and
I'm doing it in the following way:
XmlDataDocument doc = new XmlDataDocument(mydataSet);
XPathNavigator nav =...
|
by: J-T |
last post by:
I am constructing an HTML text which I need to render in my ASP.NET page.
string rssOutput = Posts.listPosts(Constants.WeblogSectionID);
rssOutput contains html code and text.Then I create a...
|
by: MasterChief |
last post by:
I have a content place holder that is showing the summary of a sale. Is
there a way to create a button in the content place holder that the
person can click on to print just what is in the content...
|
by: lamuerte451 |
last post by:
Hi:
I am a newbie to asp.net 2.0 and am building an app with VS 2005 that
will allow users to update records via the web. I have created a
master page and then have placed Gridview and details...
|
by: Frinavale |
last post by:
Introduction
Sometimes, when developing web applications, we need to be able to dynamically load controls based on user selections. The following article describes a simple scenario where TextBox...
|
by: englishman69 |
last post by:
Hello,
I have been banging my head against this one for a while... Searches online have revealed many different proposals for correcting my issue but none that I can follow! My basic situation...
|
by: =?Utf-8?B?RHlsYW5TbWl0aA==?= |
last post by:
I have a WebForm where I'm dynamically creating some controls and I'm having
difficulty understanding how the state is being persisted and how to work
with it.
I've created a simplified example...
|
by: greenMark |
last post by:
Hi All,
I'm relatively new to ASP.NET and Visual Web Developer 2008.
I'm using a Master page with one content place holder.
There is a Cascading Style Sheet file which is being refered by the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: Hystou |
last post by:
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...
|
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...
|
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,...
|
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...
|
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...
| |