TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shail nautiyal
NA
3
0
Sending mail from .aspx page
Jun 9 2009 8:57 AM
hello friends,
I am looking for sending any server control in mail ..
but I am getting the Error which is:
Control 'TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server.
this is CODE BEHIND:
protected void Page_Load(objec
t sender, EventArgs e)
{
TextBox1.Text = "Finishing";
StringBuilder SB = new StringBuilder()
;
StringWriter SW = new StringWriter(SB
);
HtmlTextWriter HTW = new HtmlTextWriter(
SW);
TextBox1.Render
Control(HTW);
}
this is ASPX page.
<body> <form id="form1" runat="server">
<asp:TextBox runat="server" ID="TextBox1">
<
/asp:TextBox> </form> </body>
thanks !!!
Reply
Answers (
0
)
Getting handle on Web Site content
Modifying html output on page load