populate record from db into web form textfield

populate record from db into web form textfield

am 03.01.2007 21:46:51 von weiwei

Hi
I am trying query the data from db and populate in the web form's
textbox field. so far I cannot put that
record into the text field box. anyone has idea on that, below is my
sample code
thanks in advance

<%'@ Page Language="VB" AutoEventWireup="false"
CodeFile="modifyuser.aspx.vb" Inherits="modifyuser" %>




RepeatDirection="Vertical" runat="server">


text="<%#DataBinder.Eval(Container.DataItem, "word")%> ">





Re: populate record from db into web form textfield

am 03.01.2007 22:00:58 von reb01501

weiwei wrote:
> Hi
> I am trying query the data from db and populate in the web form's
> textbox field. so far I cannot put that
> record into the text field box. anyone has idea on that, below is my
> sample code
> thanks in advance
>
> <%'@ Page Language="VB" AutoEventWireup="false"
> CodeFile="modifyuser.aspx.vb" Inherits="modifyuser" %>

---------canned
reply------------------------------------------------------- ------
There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice), but this is a classic asp newsgroup. ASP.Net is
a different technology from classic ASP. While you may be lucky enough
to find a dotnet-savvy person here who can answer your question, you
can eliminate the luck factor by posting your question to a newsgroup
where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
There are also forums at www.asp.net where you can find a lot of people
to help you.
------------------------------------------------------------ ------------
-----------------

You might want to clarify the symptoms you are experiencing when you
post there. What happens when you run this page?



--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Re: populate record from db into web form textfield

am 04.01.2007 23:16:25 von Chad.Burggraf

On Jan 3, 1:46 pm, "weiwei" wrote:
>
> > RepeatDirection="Vertical" runat="server">
>
>


> > text="<%#DataBinder.Eval(Container.DataItem, "word")%> ">
>
>

>
>
>
>

You cannot have more than 1 form element on an ASP.NET page. According
to the above code you're generating a form element for each row in your
dataset.

Cheers
Chad