Click here to Skip to main content
16,005,734 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSearch a name in the text of the TEXTBOX Pin
.NET- India 22-Jul-07 0:26
.NET- India 22-Jul-07 0:26 
AnswerRe: Search a name in the text of the TEXTBOX Pin
Psycho-*Coder*-Extreme22-Jul-07 9:00
Psycho-*Coder*-Extreme22-Jul-07 9:00 
QuestionCHANGING LOCATION OF AN ASP.NET PROJECT Pin
nicetohaveyou21-Jul-07 23:07
nicetohaveyou21-Jul-07 23:07 
AnswerRe: CHANGING LOCATION OF AN ASP.NET PROJECT Pin
Fred_Smith22-Jul-07 1:18
Fred_Smith22-Jul-07 1:18 
AnswerRe: CHANGING LOCATION OF AN ASP.NET PROJECT Pin
koolprasad200322-Jul-07 23:30
professionalkoolprasad200322-Jul-07 23:30 
QuestionBold the selected text in a textbox Pin
.NET- India 21-Jul-07 22:47
.NET- India 21-Jul-07 22:47 
AnswerRe: Bold the selected text in a textbox Pin
Guffa22-Jul-07 0:39
Guffa22-Jul-07 0:39 
QuestionDisplay text file in text area [modified] Pin
ASPnoob21-Jul-07 22:05
ASPnoob21-Jul-07 22:05 
Hi, suppose I have queried my database, filled the dataset, and bound the listbox to the datasource like the following
<br />
myCon = New OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=myServer;Database=myDB;User=myUser;Password=myPW;Option=3;")<br />
cmd = New OdbcCommand("SELECT * FROM myTable where Professions = '" & ListBox2.Items(i).Text & "'")<br />
            <br />
            myCon.Open()<br />
<br />
            cmd.Connection = myCon<br />
<br />
            Dim ds As New DataSet<br />
<br />
            Dim ad As New OdbcDataAdapter(cmd)<br />
<br />
            ad.Fill(ds)<br />
<br />
            Me.ListBox2.DataSource = ds<br />
<br />
            Me.ListBox2.DataBind()<br />

How do I display the data retrieved from the database in the text area of my form? Do I have to set the content type of the data before I can display them in the text area? I've looked in to this and found the following tags for displaying text in thetext area
<textarea name="contents">[retrieved database value]</textarea>
What would go in the [retrieved database value] part of the code? I suspect I am going to need the ID from the ID field of the database to make this work. Please show me what I am missing in my code above that is critical to making this work. Thank you in advance for your help.












-- modified at 13:46 Sunday 22nd July, 2007
AnswerRe: Display text file in text area Pin
Fred_Smith22-Jul-07 1:22
Fred_Smith22-Jul-07 1:22 
GeneralRe: Display text file in text area Pin
ASPnoob22-Jul-07 1:56
ASPnoob22-Jul-07 1:56 
GeneralRe: Display text file in text area Pin
www.Developerof.NET22-Jul-07 6:03
www.Developerof.NET22-Jul-07 6:03 
Questionis any one here that understand encoding of a string ? Pin
B.A21-Jul-07 21:02
B.A21-Jul-07 21:02 
AnswerRe: is any one here that understand encoding of a string ? Pin
Sathesh Sakthivel21-Jul-07 22:09
Sathesh Sakthivel21-Jul-07 22:09 
GeneralRe: is any one here that understand encoding of a string ? Pin
B.A21-Jul-07 23:17
B.A21-Jul-07 23:17 
GeneralRe: is any one here that understand encoding of a string ? Pin
Sathesh Sakthivel21-Jul-07 23:20
Sathesh Sakthivel21-Jul-07 23:20 
QuestionSite structure problem Pin
gvanto21-Jul-07 19:13
gvanto21-Jul-07 19:13 
AnswerRe: Site structure problem Pin
Psycho-*Coder*-Extreme21-Jul-07 19:44
Psycho-*Coder*-Extreme21-Jul-07 19:44 
AnswerRe: Site structure problem Pin
gvanto22-Jul-07 18:10
gvanto22-Jul-07 18:10 
GeneralRe: Site structure problem Pin
Psycho-*Coder*-Extreme22-Jul-07 18:59
Psycho-*Coder*-Extreme22-Jul-07 18:59 
GeneralRe: Site structure problem Pin
gvanto22-Jul-07 19:28
gvanto22-Jul-07 19:28 
QuestionAbout webpage Hosting Pin
Kurian_Kurian21-Jul-07 17:23
Kurian_Kurian21-Jul-07 17:23 
QuestionASP 2.0 add reference for eWorld Pin
gregart21-Jul-07 10:30
gregart21-Jul-07 10:30 
AnswerRe: ASP 2.0 add reference for eWorld Pin
doWhileSomething21-Jul-07 13:27
doWhileSomething21-Jul-07 13:27 
GeneralRe: ASP 2.0 add reference for eWorld Pin
gregart21-Jul-07 17:02
gregart21-Jul-07 17:02 
GeneralRe: ASP 2.0 add reference for eWorld Pin
doWhileSomething22-Jul-07 3:48
doWhileSomething22-Jul-07 3:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.