If it's just for that page, then all you need to do, is add a literal tag to
the page. Something like:
<asp:literal id=myList runat=server />
Then, in the codebehind do something like (in the page_load event)
if( page.IsPostBack ){
myList.Text += Text1.Value + "<br />;
}
Also, be sure to change your <input> from
<input id="Text1" style="width: 400px;" type="text" />
to
<input id="Text1" style="width: 400px;" type="text" runat=server />
Cheers!
Dave
----- Original Message -----
From: Jeff Anderson
To: [email protected]
Sent: Saturday, December 17, 2005 10:47 AM
Subject: Re: [AspNetAnyQuestionIsOk] alias.asp
Only for that page but it has to be able to keep the data that I've
already put in and add to it like alias a, alias b, alias c, alias d.
----- Original Message -----
From: dave wanta
To: [email protected]
Sent: Saturday, December 17, 2005 11:04 AM
Subject: Re: [AspNetAnyQuestionIsOk] alias.asp
does the list maintain state for
a) Only that page, and subsequent postbacks?
b) for the users' session?
c) application wide (across different users)?
d) application restarts?
Cheers!
Dave
----- Original Message -----
From: Jeff Anderson
To: [email protected]
Sent: Saturday, December 17, 2005 8:08 AM
Subject: [AspNetAnyQuestionIsOk] alias.asp
Hi, I'm pretty new to coding with asp.net so please bear with me if this
sounds like a newbie question. I am trying to create a webpage where I can add
aliases to a list and have the list post keep the data I put in. ie input this
info "bob e;e;e;s;drink potion"
then have it take that information and add it to a current maintained
list.
The page is supposed to look like this:
Enter your alias:
(input alias here)
Alias list:
bob n;n;spin
jack e;e;sit
mary w;w;drink
This is what I have here so far:
<%@ Page Language="VB" %>
<script runat="server">
</script>
<head runat="server">
<title>Aliases.</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Enter your aliases.<br />
<input id="Text1" style="width: 400px;" type="text" /><br />
eg: cot-coc n;w;n;n;e;n;n;enter<br />
<br />
Your aliases will be added to this list:<br />
</div>
</form>
</body>
</html>
Suggestions will be really appreciated.
All The Best,
Jeff Anderson
[Non-text portions of this message have been removed]
------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "AspNetAnyQuestionIsOk" on the web.
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
SPONSORED LINKS Basic programming language Computer programming languages
Programming languages
Java programming language
------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "AspNetAnyQuestionIsOk" on the web.
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
SPONSORED LINKS Basic programming language Computer programming languages
Programming languages
Java programming language
------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "AspNetAnyQuestionIsOk" on the web.
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/