Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > databinding to a text box

Reply
Thread Tools

databinding to a text box

 
 
JJ297
Guest
Posts: n/a
 
      01-22-2008
How do I bring text back from the database to populate two text boxes.

I have a details view on the page plus two text boxes I want shipdate
text box and due date text box to poplutaed with info from the
database.

Do I bring back all of the info in one stored procedure (even the text
box info), such as...

CREATE procedure GetRequestInfo
@Requestorid int


AS
select distinct requestors.Requestorid, titles.title,
requestors.requestorEmail,Requestors.requestdate, fname, lname,
phonenum,
StreetAddress1, City, State, Zip,
libraryrequest.shipdate,libraryrequest.duedate


Cast(DATEPART(m, requestors.requestDate) as Varchar(5)) + '/' +
Cast(DATEPART(d, requestors.requestDate) as Varchar(5)) + '/' +
Cast(DATEPART(yy, requestors.RequestDate) as Varchar(5))


from Requestors
join Titles on titles.Titleid = requestors.Titleid
join libraryRequest on LibraryRequest.requestorid =
Requestors.requestorid
where Requestors.requestorid = @requestorid


Do I need to put something in the page load to populate the text boxes?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
Custom databinding of a text box Keith G Hicks ASP .Net 3 02-10-2008 12:52 AM
Databinding expressions are only supported on objects that have a DataBinding event jobs ASP .Net 0 09-25-2007 11:54 PM
Gridview encoding, or how to run commands before gridview's default databinding, or, how do I disable default databinding at all? Sergei Shelukhin ASP .Net 1 11-12-2006 01:43 PM
2 way Databinding and a Text Box Wayne Sepega ASP .Net 0 03-20-2006 12:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57