Generating doc from online form in ASP.NET

In case of website designing, we may come across a point, where we need to download a form after filling it. So we need some code behind this. In ASP.NET, its not a tough job. All we have to write these codes carefully and job done. I am giving an example. Please follow this. If any query, do comment.

First make an asp page. say form2doc.aspx. Make a textbox and button.

Code:
form2doc.aspx

Then write code behind this page. On button click write this code and test your project. Make sure there is no blank space between code and don’t break the line until it terminates.
form2doc.aspx.cs

Signature

Deepesh Singh
logo

Advertisement

Please leave your valuable comment.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s