Groups | Blog | Home
all groups > inetserver asp general > march 2006 >

inetserver asp general : textbox.text Property


DCSTech
3/30/2006 8:06:01 AM
On my webpage I have a textbox. I would like to be able to change the text
in the textbox and via a pushbutton have the value in the textbox written to
the .text property so that next time the page is viewed the new value will be
displayed.

DCSTech
3/30/2006 8:53:04 AM
I am new to this and maybe I did not put the question in the right group.
When I am building my Webpage in VS2003 I drag a textbox from the webform
toolbox. One of the properties for that textbox is text. I want to be able
to change the text property with what is entered into the textbox.

[quoted text, click to view]
Mike Brind
3/30/2006 12:06:55 PM

[quoted text, click to view]

You need to ask this in a Dotnet newsgroup.
microsoft.public.dotnet.framework.aspnet is your best bet.

Dotnet and classic asp (what this group deals with) are two entirely
different technologies.

--
Mike Brind
Evertjan.
3/30/2006 4:30:23 PM
=?Utf-8?B?RENTVGVjaA==?= wrote on 30 mrt 2006 in
microsoft.public.inetserver.asp.general:

[quoted text, click to view]

What is a .text property in ASP?
Or are you talking about the DOM?

DOM and textboxes are clientside, and ASP is serverside.

--
Evertjan.
The Netherlands.
Evertjan.
3/30/2006 5:23:20 PM
=?Utf-8?B?RENTVGVjaA==?= wrote on 30 mrt 2006 in
microsoft.public.inetserver.asp.general:
[quoted text, click to view]

[please do not toppost on usenet]

[quoted text, click to view]

That's why I asked. What do you expect of clasic ASP?

This NG is classic ASP only.


--
Evertjan.
The Netherlands.
Slim
3/31/2006 1:28:38 AM
here is a simple example of persistence in asp
this form is posting back to the same page

<FORM action="persistenceInForm.asp" method=POST id=form1 name=form1>
<INPUT type="text" id=text1 name=text1 value="<%=Request.Form("text1")%>">
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</FORM>

But if you plan to leave the page and return, you an use a session variable

you would need to first put a like of code something like this in the page
your are posting the form to

Session("text1") = Request.Form("text1")

then when hey return to the form you use the session variable set the value
of the textbox

<FORM action="persistenceInForm.asp" method=POST id=form1 name=form1>
<INPUT type="text" id=text1 name=text1 value="<%=Session("text1")%>">
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</FORM>


[quoted text, click to view]

AddThis Social Bookmark Button