Click here to Skip to main content
16,004,761 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Update user status to Online or Offline.....Pls help..... Pin
VinothRao24-May-09 22:22
VinothRao24-May-09 22:22 
QuestionContent Managment System Pin
gauthee24-May-09 21:26
gauthee24-May-09 21:26 
AnswerRe: Content Managment System Pin
Ramesh Swaminathan24-May-09 23:55
Ramesh Swaminathan24-May-09 23:55 
QuestionHow to: Migrate Ruby on Rails application to ASP.NET (C#) Pin
Jadhav Ajay24-May-09 20:54
professionalJadhav Ajay24-May-09 20:54 
AnswerRe: How to: Migrate Ruby on Rails application to ASP.NET (C#) Pin
Ramesh Swaminathan24-May-09 23:51
Ramesh Swaminathan24-May-09 23:51 
GeneralRe: How to: Migrate Ruby on Rails application to ASP.NET (C#) Pin
Jadhav Ajay25-May-09 1:51
professionalJadhav Ajay25-May-09 1:51 
Questionprint image in asp.net Pin
MAHDIEHES24-May-09 15:33
MAHDIEHES24-May-09 15:33 
AnswerRe: print image in asp.net [modified] Pin
Ramesh Swaminathan24-May-09 19:22
Ramesh Swaminathan24-May-09 19:22 
You know 'window.print()' function will print the HTML content of the current page in the browser window.

Put the image in a DIV tag and then use the following code. The content of the DIV is written to a new window and then printed in this code.,

<script type="text/javascript"> 
   function ClientSidePrint(idDiv) 
    { 
          var w = 600;
          var h = 400;
          var l = (window.screen.availWidth - w)/2;
          var t = (window.screen.availHeight - h)/2;
            
          var sOption="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=" + w + ",height=" + h + ",left=" + l + ",top=" + t;
 
       // Get the HTML content of the div
       var sDivText = window.document.getElementById(idDiv).innerHTML;

      // Open a new window
      var objWindow = window.open("", "Print", sOption);

    // Write the div element to the window
    objWindow.document.write(sDivText);
    objWindow.document.close(); 
 
    // Print the window                  
    objWindow.print();
   
    // Close the window
    objWindow.close();                  
   } 
</script>


modified on Monday, May 25, 2009 1:32 AM

GeneralRe: print image in asp.net Pin
MAHDIEHES25-May-09 8:48
MAHDIEHES25-May-09 8:48 
QuestionGridView Help Pin
phani2548524-May-09 15:02
phani2548524-May-09 15:02 
AnswerRe: GridView Help Pin
padmanabhan N24-May-09 18:46
padmanabhan N24-May-09 18:46 
QuestionRe: GridView Help Pin
Baran M24-May-09 18:51
Baran M24-May-09 18:51 
AnswerRe: GridView Help Pin
padmanabhan N24-May-09 18:54
padmanabhan N24-May-09 18:54 
Questionthreading in ASP.net question Pin
nick pinansky24-May-09 4:50
nick pinansky24-May-09 4:50 
Questionsearch in website Pin
michaelgr124-May-09 1:23
michaelgr124-May-09 1:23 
AnswerRe: search in website(Ignore repost) Pin
Manas Bhardwaj24-May-09 4:21
professionalManas Bhardwaj24-May-09 4:21 
AnswerRe: search in website Pin
firozu24-May-09 21:30
firozu24-May-09 21:30 
Questionbinding value with listbox Pin
jainiraj23-May-09 23:02
jainiraj23-May-09 23:02 
AnswerRe: binding value with listbox Pin
scy27875351724-May-09 3:21
scy27875351724-May-09 3:21 
AnswerRe: binding value with listbox Pin
mdazeemuddin24-May-09 3:58
mdazeemuddin24-May-09 3:58 
GeneralRe: binding value with listbox Pin
jainiraj24-May-09 17:56
jainiraj24-May-09 17:56 
GeneralRe: binding value with listbox Pin
Tuwing.Sabado24-May-09 18:28
Tuwing.Sabado24-May-09 18:28 
GeneralRe: binding value with listbox Pin
jainiraj24-May-09 18:38
jainiraj24-May-09 18:38 
GeneralRe: binding value with listbox Pin
Tuwing.Sabado24-May-09 19:26
Tuwing.Sabado24-May-09 19:26 
QuestionHow to avoid post back of other user controls on post back of one user control contend in a .aspx page Pin
Anurajtemkar23-May-09 22:51
Anurajtemkar23-May-09 22:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.