Is there a recommended way to have a form that is a list of textboxes from
a sql table based on a username that then puts the captured data back into
the db?
I have a table |userid|skill|level|. I need to display the list to the
user, have them update the level and then store this data back into the
table. I can't seem to create the textboxes as asp controls with a unique
id based on the text in the skill field.(to enable me to put the data back
into the database)
thanks for any help or pointers
tony 10 1881
Tony,
Why not to use datagrid? You can make template columns containing textboxes.
Eliyahu
"Tony" <tony@Wright_nospam_one.co.uk> wrote in message
news:pan.2004.06.26.08.39.17.609079@Wright_nospam_ one.co.uk... Is there a recommended way to have a form that is a list of textboxes from a sql table based on a username that then puts the captured data back into the db?
I have a table |userid|skill|level|. I need to display the list to the user, have them update the level and then store this data back into the table. I can't seem to create the textboxes as asp controls with a unique id based on the text in the skill field.(to enable me to put the data back into the database)
thanks for any help or pointers
tony
On Sun, 27 Jun 2004 11:27:55 +0200, Eliyahu Goldin wrote: Tony,
Why not to use datagrid? You can make template columns containing textboxes.
Eliyahu
Hi, can you tell me where to find a good tutorial on templates? I have had
a look at a few but nothing for the beginner. Do any show how to access
the textbox on a post back when the id is not known(Created dynamically)?
Thanks
Tony
Tony,
I don't know much about tutorials, sorry. As to id, it is known. Look at
UniqueId property. It is made specially for your purposes.
Eliyahu
"Tony" <tony@Wright_nospam_one.co.uk> wrote in message
news:pan.2004.06.27.09.10.57.706667@Wright_nospam_ one.co.uk... On Sun, 27 Jun 2004 11:27:55 +0200, Eliyahu Goldin wrote:
Tony,
Why not to use datagrid? You can make template columns containing textboxes.
Eliyahu
Hi, can you tell me where to find a good tutorial on templates? I have had a look at a few but nothing for the beginner. Do any show how to access the textbox on a post back when the id is not known(Created dynamically)?
Thanks
Tony
Tony,
Why not to use datagrid? You can make template columns containing textboxes.
Eliyahu
"Tony" <tony@Wright_nospam_one.co.uk> wrote in message
news:pan.2004.06.26.08.39.17.609079@Wright_nospam_ one.co.uk... Is there a recommended way to have a form that is a list of textboxes from a sql table based on a username that then puts the captured data back into the db?
I have a table |userid|skill|level|. I need to display the list to the user, have them update the level and then store this data back into the table. I can't seem to create the textboxes as asp controls with a unique id based on the text in the skill field.(to enable me to put the data back into the database)
thanks for any help or pointers
tony
On Sun, 27 Jun 2004 11:27:55 +0200, Eliyahu Goldin wrote: Tony,
Why not to use datagrid? You can make template columns containing textboxes.
Eliyahu
Hi, can you tell me where to find a good tutorial on templates? I have had
a look at a few but nothing for the beginner. Do any show how to access
the textbox on a post back when the id is not known(Created dynamically)?
Thanks
Tony
Tony,
I don't know much about tutorials, sorry. As to id, it is known. Look at
UniqueId property. It is made specially for your purposes.
Eliyahu
"Tony" <tony@Wright_nospam_one.co.uk> wrote in message
news:pan.2004.06.27.09.10.57.706667@Wright_nospam_ one.co.uk... On Sun, 27 Jun 2004 11:27:55 +0200, Eliyahu Goldin wrote:
Tony,
Why not to use datagrid? You can make template columns containing textboxes.
Eliyahu
Hi, can you tell me where to find a good tutorial on templates? I have had a look at a few but nothing for the beginner. Do any show how to access the textbox on a post back when the id is not known(Created dynamically)?
Thanks
Tony
On Sun, 27 Jun 2004 10:10:58 +0100, Tony
<tony@Wright_nospam_one.co.uk> wrote: On Sun, 27 Jun 2004 11:27:55 +0200, Eliyahu Goldin wrote:
Tony,
Why not to use datagrid? You can make template columns containing textboxes.
Eliyahu
Hi, can you tell me where to find a good tutorial on templates? I have had a look at a few but nothing for the beginner. Do any show how to access the textbox on a post back when the id is not known(Created dynamically)?
Think again about the "not known" comment. Something had to be used to
determine which text boxes were to be created. That same code should
be used again to get the text boxes and their contents.
Tony.... You just need to persist the primary key for the row "in" the
HTML
page. So first you must get the primary key for the row and then you
must
decided how to "persist" the value into the page (using viewstate,
session,
hidden field). If the primary key is the person's name you could have
problems if two people have the same name. If this is confusing, you
could
read up on the terms candidate key, primary key, simple key and compound
key.
Regards,
Jeff I can't seem to create the textboxes as asp controls with a unique
id based on the text in the skill field.(to enable me to put the data
back
into the database)<
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
On Sun, 27 Jun 2004 10:10:58 +0100, Tony
<tony@Wright_nospam_one.co.uk> wrote: On Sun, 27 Jun 2004 11:27:55 +0200, Eliyahu Goldin wrote:
Tony,
Why not to use datagrid? You can make template columns containing textboxes.
Eliyahu
Hi, can you tell me where to find a good tutorial on templates? I have had a look at a few but nothing for the beginner. Do any show how to access the textbox on a post back when the id is not known(Created dynamically)?
Think again about the "not known" comment. Something had to be used to
determine which text boxes were to be created. That same code should
be used again to get the text boxes and their contents.
Tony.... You just need to persist the primary key for the row "in" the
HTML
page. So first you must get the primary key for the row and then you
must
decided how to "persist" the value into the page (using viewstate,
session,
hidden field). If the primary key is the person's name you could have
problems if two people have the same name. If this is confusing, you
could
read up on the terms candidate key, primary key, simple key and compound
key.
Regards,
Jeff I can't seem to create the textboxes as asp controls with a unique
id based on the text in the skill field.(to enable me to put the data
back
into the database)<
*** Sent via Devdex http://www.devdex.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: Bhavin |
last post by:
Anybody quickly replies it, would be a great help!
I try to create dynamic array of textboxes control in ASP.NET(C#). I got the
following error while I tried to assign value to ID property of...
|
by: Briand |
last post by:
In my previous posting I failed miserably, to give enough information to get
my difficulty apparent.
So to start again. I want to create textboxes dynamically in VB.NET. This
is not a web...
|
by: Chad |
last post by:
I have a problem that I am desperate to understand.
It involves dynamically adding controls to a Table control that is built as a result of performing a database query.
I am not looking to...
|
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,...
|
by: Dotnet Gruven |
last post by:
I've built a WebForm with a Table added dynamically in Page_Load when
IsPostBack is false. The table includes a couple of TextBoxes,
RadioButtonLists and CheckboxLists.
On postback, those...
|
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...
|
by: lanmou |
last post by:
hi,
Iam working on an application where the user gives the fields they want in a particaular clients records.(this is a form where there are textboxes where they enter the field names and data type...
|
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...
|
by: osakthivel |
last post by:
hello sir,
I have one problem.I want to createtexboxes dynamically using javascript when textbox onblur event.after creating textboxes if i submit the form the dynamically created...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |