passing post argument and linefeed in textbox

Joined
Aug 21, 2007
Messages
2
Reaction score
0
hi

Two questions from a newbie. Thanks!

1. How do I get the posted argument as part of url, the "Tool=something" portion?

http://myapp.aspx?Tool=something

<Form ID="Material" runat="server" method="post" enctype="multipart/form-data">

Neither of these work in c#:
string action = Material.Attributes["action"];
string tool = Material.Attributes["Tool"];



2. How to put in a linefeed in a textbox control, as the default value (line1, line2, line3)?

asp.net just combine the three lines into one long line.
When filling out the form, how do I enter a linefeed (which acts as pushing a button on the form)?

<asp:TextBox ID="ManualEntry" runat="server" Height="40">
# line1
# line2
# line3

Thanks
Alan
 
Joined
Aug 21, 2007
Messages
2
Reaction score
0
I haven't found out how to retrieve arguments passed in as part of the link yet, like this. If someone knows, let me know.
http://myapp.aspx?Arg1=apple&Arg2=peanuts


I have found out how to place linefeed in textbox. That was easy.

<asp:TextBox ID="something" runat="server" TextMode="MultiLine" Wrap="false">

Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top