473,508 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dynamically adding textboxes

81 New Member
Hi,

My requriment is i want to give dinamicaly adding controls in my asp.net web page . that means if i click add button dinamicallly add textboxs in my page. like wise how many times if i click add buton such textboxs will apper how to do
Apr 17 '08 #1
4 980
antonmaju
7 New Member
You may use Javascript, and then use document.createElement('input') and set its type as textbox.
Just remember because you create the controls from client side, they won't have Viewstate.
So if you want to post the value back to server, I suggest you use Javascript too. I believe ASP.NET Ajax library will help you a lot.
If you choose to maintain state from dynamic controls, you may refer to http://aspnet.4guysfromrolla.com/articles/081402-1.aspx
Apr 17 '08 #2
Frinavale
9,735 Recognized Expert Moderator Expert
Hi,

My requriment is i want to give dinamicaly adding controls in my asp.net web page . that means if i click add button dinamicallly add textboxs in my page. like wise how many times if i click add buton such textboxs will apper how to do

Have you see the .Net article on How To Use Dynamic Controls in ASP.NET?

There is an example of how to dynamically create TextBoxes in that article.

-Frinny
Apr 17 '08 #3
rathishr
5 New Member
i have written a code for adding textbox on button click.
now what i wanna do is to access the value in the textbox in the next page
can anyone help
Nov 10 '08 #4
tlhintoq
3,525 Recognized Expert Specialist
i have written a code for adding textbox on button click.
now what i wanna do is to access the value in the textbox in the next page
can anyone help

This reads like you are the Original Poster, Ganesh22 who has been banned.

If you are someone different, you really should start your own question and not try to tag in on another post - Especially by someone who is banned. It won't lead to good answers to your specific question: If any at all.

Also, when you post your new question, you should include the code fragment where you are having trouble, so those here can see what you are doing in an effort to help.
Nov 10 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
1278
by: Dany P. Wu | last post by:
Hi everyone, I created a page which contains a two-column table. The first column has a bunch of labels, and the second a bunch of textboxes. Here's the code: ...
2
2409
by: buran | last post by:
Dear ASP.NET Programmers, I have a HTML table (running as server control with the control ID: tblInsertSP). The table has 16 rows with textboxes. Depending on the value of the ddlSPType, which...
3
1227
by: SD | last post by:
Hello, I have a form that has a panel container where I'm adding textboxes dynamically based on a query to database, so I'm looping through the records. The problem I have is that once built,...
4
1391
by: Alex Denton | last post by:
Okay, here's my problem: I need to populate different fields in an HTML table with TextBoxes. For example, if I had 3 columns "Name", "Address", and "City"; I need to have a TextBox in all of...
9
7026
by: netasp | last post by:
hi all, how can I populate one aspx form when page is loading based on page ID? for example: loading page A (to search for VB code) would display labels and texboxes, dropdown lists all related...
6
1479
by: Bjorn Sagbakken | last post by:
Hello In VS2005: I am adding buttons and textboxes dynamically into a table, that also dynamically expands. So far, so good, actually very nice. But I am having trouble starting the desired...
3
7451
by: scripter199 | last post by:
Hi, Im adding textboxes dynamically from an onclick event that calls the function below: function addRowDynamic() { rowCnt++; lookupCnt++; id++; //add a row to the rows...
13
1510
by: Konrad Hammerer | last post by:
Hi! Can somebody tell me or show me an example how to add a textbox and a button dynamically by code to an apsx page and how to read the filled in value from the textbox after the user has...
1
2139
by: Shraddha | last post by:
Hi, I am adding some ASP.Net user controls (.ascx file) dynamically on the button click. The user control will get added as many times userhits the button. Now on the click of the submit button, I...
1
1741
by: mazdotnet | last post by:
Hi all, I have Repeater dynamically adding textboxes to a placeholder and connecting it to AjaxControlToolkit.PopupControlExtender which works fine. I'm adding the textboxes using the following...
0
7231
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
7336
Oralloy
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,...
0
7401
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...
1
7063
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
7504
tracyyun
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...
0
5640
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,...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
bsmnconsultancy
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...

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.