|
-
Jul 30th, 2003, 11:31 PM
#1
Thread Starter
yay gay
how to bind a textbox that isnt in a datalist?
how do i bind it? i dont find a .DataSource property like the datalist has!
\m/  \m/
-
Jul 31st, 2003, 08:09 AM
#2
Lively Member
You don't actually need to bind it, cause it has almost no sense, cause off the static manner of webdesign.
So you can just do this txtbox.text = ds.tables(0).cells(0)(0)
HTH
Bjorn
-
Jul 31st, 2003, 09:04 AM
#3
Thread Starter
yay gay
\m/  \m/
-
Jul 31st, 2003, 09:09 AM
#4
Lively Member
You sound disappointed ....
Lazy programmer ?
-
Jul 31st, 2003, 09:10 AM
#5
Thread Starter
yay gay
if i am using across all the project heavy use of databinding i'd like to databind the text box even if its for a reason of consistency..anyways if i have to do it thru code np..
\m/  \m/
-
Jul 31st, 2003, 09:14 AM
#6
Lively Member
Indeed,
I know what I mean... In vb.net projects, this isn't a problem.
The biggest advantage of asp.net is that you don't need to distribute applications anymore. But it still has much disadvantages !
But I'm really glad with the server controls, this opens a whole new world.... let's hope that the next generation of asp.net will be even more improved !
Bjorn
-
Jul 31st, 2003, 12:30 PM
#7
PowerPoster
Or you can create your own textbox control that is inherited from the textbox control. Then just add the databinding code to it so you can then use your new control when you need to.
-
Jul 31st, 2003, 02:32 PM
#8
Thread Starter
yay gay
\m/  \m/
-
Jul 31st, 2003, 02:44 PM
#9
PowerPoster
That was what I was thinking, but it is an option.
If you want to databind a lot, then it may be worth it because you could reuse it everytime.
-
Jul 31st, 2003, 02:45 PM
#10
Thread Starter
yay gay
err i dont remember how i used to use the datareader..i have a datareader that has some info..how to get the rows from it?
\m/  \m/
-
Jul 31st, 2003, 03:15 PM
#11
Thread Starter
yay gay
ok now i remember that datareader obj has an indexer
tks
\m/  \m/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|