|
 |
aspx thread: Assigning values to a textbox!
Message #1 by "Brandy" <brandmo@h...> on Tue, 30 Jan 2001 14:57:00 +0100
|
|
Why isnt this code working ??
<HTML>
<BODY>
<form id="form1" action="edit.aspx" method="post" runat=server>
<asp:TextBox id="ID" text=" <%=Request.Form("ID")%>" runat="server">
</asp:textbox> </td>
<asp:button id="b1" text="Click me" runat=server/>
</form>
<BODY>
</HTML>
regards
Brandy
----- Original Message -----
From: "Paul Litwin" <plitwin@m...>
To: "ASP+" <aspx@p...>
Sent: Monday, January 29, 2001 11:30 PM
Subject: [aspx] Re: Option Explicit
> And I suspect that Strict="true" does the same thing as Option Strict On?
>
> Thanks,
>
> Paul
>
> =====================================
> Paul Litwin
> Litwin Consulting, MCW Technologies, and
> DevConnections Conferences
> mailto:plitwin@m...
> http://www.devconnections.com
> http://www.developershandbook.com
> =====================================
>
>
>
> -----Original Message-----
> From: Robert Lair [mailto:mailinglists@a...]
> Sent: Monday, January 29, 2001 12:55 PM
> To: ASP+
> Subject: [aspx] Re: Option Explicit
>
>
> Hi Paul,
>
> You will want the following page directive at the top of the page:
>
> <%@ Page Language="VB" Explicit="true" %>
>
> or
>
> <%@ Page Language="VB" Explicit="false" %>
>
> Hope this helps
> Bob
>
> ----- Original Message -----
> From: "Paul Litwin" <plitwin@m...>
> To: "ASP+" <aspx@p...>
> Sent: Monday, January 29, 2001 2:36 PM
> Subject: [aspx] Option Explicit
>
>
> > How do I get Option Explicit to work in a ASP.NET page without using
code
> > behind?
> > Thanks,
> > Paul
Message #2 by "Pavel Hromadka" <hromadka@a...> on Tue, 30 Jan 2001 15:59:15 +0100
|
|
Try this:
<%
Text1.Text =3D Request.Form("ID");
%>
<BODY>
<form id=3D"form1" action=3D"edit.aspx" method=3D"post" runat=3Dserver>
<asp:TextBox id=3D"Text1" text=3D"" runat=3D"server">
</asp:textbox> </td>
<asp:button id=3D"b1" text=3D"Click me" runat=3Dserver/>
</form>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Why isnt this code working ??
<HTML>
<BODY>
<form id=3D"form1" action=3D"edit.aspx" method=3D"post" runat=3Dserver>
<asp:TextBox id=3D"ID" text=3D" <%=3DRequest.Form("ID")%>"
runat=3D"server">
</asp:textbox> </td>
<asp:button id=3D"b1" text=3D"Click me" runat=3Dserver/>
</form>
<BODY>
</HTML>
Message #3 by philip.moh@a... on Wed, 31 Jan 2001 08:24:05 +0800
|
|
what error you got?
Phil
> -----Original Message-----
> From: Brandy [SMTP:brandmo@h...]
> Sent: Tuesday, January 30, 2001 9:57 PM
> To: ASP+
> Subject: [aspx] Assigning values to a textbox!
>
> Why isnt this code working ??
>
> <HTML>
>
> <BODY>
> <form id="form1" action="edit.aspx" method="post" runat=server>
> <asp:TextBox id="ID" text=" <%=Request.Form("ID")%>" runat="server">
> </asp:textbox> </td>
> <asp:button id="b1" text="Click me" runat=server/>
> </form>
>
> <BODY>
> </HTML>
>
>
> regards
> Brandy
>
>
> ----- Original Message -----
> From: "Paul Litwin" <plitwin@m...>
> To: "ASP+" <aspx@p...>
> Sent: Monday, January 29, 2001 11:30 PM
> Subject: [aspx] Re: Option Explicit
>
>
> > And I suspect that Strict="true" does the same thing as Option Strict
> On?
> >
> > Thanks,
> >
> > Paul
> >
> > =====================================
> > Paul Litwin
> > Litwin Consulting, MCW Technologies, and
> > DevConnections Conferences
> > mailto:plitwin@m...
> > http://www.devconnections.com
> > http://www.developershandbook.com
> > =====================================
> >
> >
> >
> > -----Original Message-----
> > From: Robert Lair [mailto:mailinglists@a...]
> > Sent: Monday, January 29, 2001 12:55 PM
> > To: ASP+
> > Subject: [aspx] Re: Option Explicit
> >
> >
> > Hi Paul,
> >
> > You will want the following page directive at the top of the page:
> >
> > <%@ Page Language="VB" Explicit="true" %>
> >
> > or
> >
> > <%@ Page Language="VB" Explicit="false" %>
> >
> > Hope this helps
> > Bob
> >
> > ----- Original Message -----
> > From: "Paul Litwin" <plitwin@m...>
> > To: "ASP+" <aspx@p...>
> > Sent: Monday, January 29, 2001 2:36 PM
> > Subject: [aspx] Option Explicit
> >
> >
> > > How do I get Option Explicit to work in a ASP.NET page without using
> code
> > > behind?
> > > Thanks,
> > > Paul
>
|
|
 |