As far as asp.net is concerned, a textbox corresponds to both input html element and the textarea html element. The only difference between a textbox rendered as an input html element and a textbox rendered as a textarea is the TextMode property. To get
a textarea, TextMode is set to multiline.
In the MSDN link provided in the previous post, you can use any of the methods mentioned there except the one using QueryString. The reason is simple - a textarea will potentially have linebreaks which will be lost if the value is passed via querystring.
this is what i want to show this text to show in another page within inside this box ,editpage to the printed page
<--------------------------------------inside this box
You can store the text inside the textarea to a session variable and call it on the next page Session("text1") = textarea.text On next page you can call the session variable store it in a string and use it. Dim strTxt1 as string = Session("text1")
richkyrs
Member
436 Points
500 Posts
textarea value to pass to another page
Apr 28, 2012 01:05 AM|LINK
hi i have a textarea on a edit page how can i get that text to show on another page ?
is there a code behind i need
budugu
All-Star
41132 Points
6021 Posts
Re: textarea value to pass to another page
Apr 28, 2012 01:30 AM|LINK
You can pass information between pages in various ways: http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx
"Don't be afraid to be wrong; otherwise you'll never be right."
richkyrs
Member
436 Points
500 Posts
Re: textarea value to pass to another page
Apr 28, 2012 02:03 AM|LINK
nearly right thats a textbox
Prashant Kum...
Star
12346 Points
1993 Posts
Re: textarea value to pass to another page
Apr 28, 2012 02:18 AM|LINK
As far as asp.net is concerned, a textbox corresponds to both input html element and the textarea html element. The only difference between a textbox rendered as an input html element and a textbox rendered as a textarea is the TextMode property. To get a textarea, TextMode is set to multiline.
In the MSDN link provided in the previous post, you can use any of the methods mentioned there except the one using QueryString. The reason is simple - a textarea will potentially have linebreaks which will be lost if the value is passed via querystring.
richkyrs
Member
436 Points
500 Posts
Re: textarea value to pass to another page
Apr 28, 2012 02:26 AM|LINK
this is what i want to show this text to show in another page within inside this box ,editpage to the printed page <--------------------------------------inside this box
Loganix77
Participant
1351 Points
412 Posts
Re: textarea value to pass to another page
Apr 28, 2012 02:42 AM|LINK
richkyrs
Member
436 Points
500 Posts
Re: textarea value to pass to another page
Apr 28, 2012 02:44 AM|LINK
show me a tuturial how its done
tried dowwnloading that msdn thing get error
so show a tuturial on how this is done i dont use sessions mind you but go for it
richkyrs
Member
436 Points
500 Posts
Re: textarea value to pass to another page
Apr 28, 2012 02:45 AM|LINK
that dim thing your on about what is that? that vb or something ?
Loganix77
Participant
1351 Points
412 Posts
Re: textarea value to pass to another page
Apr 28, 2012 03:07 AM|LINK
richkyrs
Member
436 Points
500 Posts
Re: textarea value to pass to another page
Apr 28, 2012 03:10 AM|LINK
what does dim actually mean?