|
 |
asptoday_discuss thread: girl
Message #1 by "Tan Chye Ting" <chyeting18@h...> on Sun, 20 Jan 2002 01:39:20
|
|
halo,i have a page that call itself when a button is clicked.but how do
set the value of a textbox so that it does not display any messages on the
first time the page is loaded. that means the moment i click the button on
the page i get the value displayed in the text box.when i load for the
first time there won't be any value displayed in the text box...thanxx
Message #2 by "jacer" <jacer@2...> on Mon, 21 Jan 2002 07:43:17
|
|
i donnot know what you mean exactly, but maybe this can be helpful:
<input type="text" value="" name="Box1">
<input type="button" value="OK" name="B1"
onclick="javascript:Box1.value=0;">
> halo,i have a page that call itself when a button is clicked.but how do
> set the value of a textbox so that it does not display any messages on
the
> first time the page is loaded. that means the moment i click the button
on
> the page i get the value displayed in the text box.when i load for the
> first time there won't be any value displayed in the text box...thanxx
Message #3 by "asame" <asame00@y...> on Mon, 21 Jan 2002 12:27:11 -0000
|
|
To do it server side go:
<%
Dim formValue
formValue=Request.Form("myDetektor")
Response.Write "<form name=""myform"" action=""mypage.asp""
method=""POST"">"
if formValue="" then
Response.Write "<input type=""text"" value=" & formValue &
"name=""mytextbox"">"
Else
Response.Write "<input type=""text"" value=""I now have a value""
name=""mytextbox"">"
End if
Response.Write "<input type=""button"" value=""Submit"" name=""mybutton"">"
Response.Write "<input type=""hidden"" value=""yes"" name=""myDetektor"">"
Response.Write "</form>"
%>
There are a thousand and one ways to further compress or manipulate this
code.
----- Original Message -----
From: "jacer" <jacer@2...>
To: "ASPToday Discuss" <asptoday_discuss@p...>
Sent: Monday, January 21, 2002 7:43 AM
Subject: [asptoday_discuss] Re: girl
> i donnot know what you mean exactly, but maybe this can be helpful:
>
> <input type="text" value="" name="Box1">
> <input type="button" value="OK" name="B1"
> onclick="javascript:Box1.value=0;">
>
>
> > halo,i have a page that call itself when a button is clicked.but how do
> > set the value of a textbox so that it does not display any messages on
> the
> > first time the page is loaded. that means the moment i click the button
> on
> > the page i get the value displayed in the text box.when i load for the
> > first time there won't be any value displayed in the text box...thanxx
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Message #4 by "Tan Chye Ting" <chyeting18@h...> on Fri, 25 Jan 2002 08:02:17
|
|
can anyone please tell me how to create a window which consists of more
than one textbox. when i click on a button the window will pop up ..data
input into the pop up window will be update into the database. thank you
|
|
 |