By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

Printing a String value in ASP.Net

P: 51
hey all,

AM using VS2003..n developing in asp.net using c#

here i want to print a string value on the click of a button..i can do it in windows application.but whn am using the same code in asp.net(web application)..its showin error on "show dialog"
.so please could ne1 tell me hw to print a string value in asp.net using c#..

thanx a lot..
Apr 23 '07 #1
Share this Question
Share on Google+
2 Replies


Frinavale
Expert Mod 5K+
P: 9,731
hey all,

AM using VS2003..n developing in asp.net using c#

here i want to print a string value on the click of a button..i can do it in windows application.but whn am using the same code in asp.net(web application)..its showin error on "show dialog"
.so please could ne1 tell me hw to print a string value in asp.net using c#..

thanx a lot..

There is no such thing as showDialog() for an asp.net web application.
Dialog boxes can only be created using JavaScript for web applications.

You'll have to create a label or something on the asp page and when you click the button set the text value of that label to the string's value.

Cheers

-Frinny
Apr 23 '07 #2

P: 51
There is no such thing as showDialog() for an asp.net web application.
Dialog boxes can only be created using JavaScript for web applications.

You'll have to create a label or something on the asp page and when you click the button set the text value of that label to the string's value.

Cheers

-Frinny
hi,
Could u tell me how to print the string value.Cos am assigning the contents of a datagrid to a string variable.now on the click of a button i need the table to be printed.i already did it using c# in my windows application but now i want to do it using ASP.Net..So please could ne1 tell me how to go about it.
Thanx...
Apr 24 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.