Click here to Skip to main content
16,011,374 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPDF report Pin
Jmshastri20-Apr-06 20:37
Jmshastri20-Apr-06 20:37 
AnswerRe: PDF report Pin
Vasudevan Deepak Kumar20-Apr-06 22:08
Vasudevan Deepak Kumar20-Apr-06 22:08 
QuestionHelp me to write Code Pin
Balavardhan20-Apr-06 20:07
Balavardhan20-Apr-06 20:07 
AnswerRe: Help me to write Code Pin
Guffa20-Apr-06 20:43
Guffa20-Apr-06 20:43 
AnswerRe: Help me to write Code Pin
minhpc_bk20-Apr-06 20:44
minhpc_bk20-Apr-06 20:44 
GeneralRe: Help me to write Code Pin
Balavardhan20-Apr-06 21:31
Balavardhan20-Apr-06 21:31 
Questionto print datagrid control in asp.net 2k3 Pin
RPS Sidhu20-Apr-06 19:37
RPS Sidhu20-Apr-06 19:37 
AnswerRe: to print datagrid control in asp.net 2k3 Pin
gyokusei20-Apr-06 22:57
gyokusei20-Apr-06 22:57 
Hi raj1984,

try this:

1. Add a div tag on your page and give it an ID (ex: divGrid)
2. Add your datagrid control into the div.
3. Add an button and write to onclick event, which will open a new blank page.
4. Add all HTML tag in divGrid to the new page.

ex:

<div id='divGrid'><br />
<asp:DataGrid....<br />
</div><br />
<br />
<input type='button' onclick.='doPrint();'>


doPrint method:

function doPrint()<br />
{<br />
    var subwin = window.open("_blank");  // you can open an existing page<br />
    var d = document.getElementById("divGrid");<br />
    subwin.document.write(d.innerHTML);<br />
    subwin.print();<br />
}

QuestionSerious GridView Problem! Pin
Sheel Gohe20-Apr-06 19:12
Sheel Gohe20-Apr-06 19:12 
AnswerRe: Serious GridView Problem! Pin
minhpc_bk20-Apr-06 20:46
minhpc_bk20-Apr-06 20:46 
GeneralRe: Serious GridView Problem! Pin
Sheel Gohe20-Apr-06 21:10
Sheel Gohe20-Apr-06 21:10 
GeneralRe: Serious GridView Problem! Pin
minhpc_bk20-Apr-06 21:20
minhpc_bk20-Apr-06 21:20 
GeneralRe: Serious GridView Problem! Pin
Sheel Gohe21-Apr-06 3:34
Sheel Gohe21-Apr-06 3:34 
QuestionSession timed out Pin
karthiBalu20-Apr-06 19:08
karthiBalu20-Apr-06 19:08 
GeneralVery important reply. Read immediately. Pin
Guffa20-Apr-06 20:45
Guffa20-Apr-06 20:45 
AnswerRe: Session timed out Pin
ptvce22-Apr-06 4:46
ptvce22-Apr-06 4:46 
Questionview state, response.direct, server.transfer Pin
Sriram Suresh20-Apr-06 17:26
Sriram Suresh20-Apr-06 17:26 
AnswerRe: view state, response.direct, server.transfer Pin
Vasudevan Deepak Kumar20-Apr-06 18:20
Vasudevan Deepak Kumar20-Apr-06 18:20 
AnswerRe: view state, response.direct, server.transfer Pin
HimaBindu Vejella20-Apr-06 19:55
HimaBindu Vejella20-Apr-06 19:55 
Question"Aout graphicscontainer Pin
tczhang20-Apr-06 16:44
tczhang20-Apr-06 16:44 
Questionhelp in creating "help" in asp.net Pin
scarfaced20-Apr-06 16:13
scarfaced20-Apr-06 16:13 
AnswerRe: help in creating "help" in asp.net Pin
Vasudevan Deepak Kumar20-Apr-06 18:21
Vasudevan Deepak Kumar20-Apr-06 18:21 
AnswerRe: help in creating "help" in asp.net Pin
HimaBindu Vejella20-Apr-06 20:00
HimaBindu Vejella20-Apr-06 20:00 
QuestionASP.net 2005 Pin
AnhTin20-Apr-06 16:03
AnhTin20-Apr-06 16:03 
AnswerRe: ASP.net 2005 Pin
minhpc_bk20-Apr-06 16:55
minhpc_bk20-Apr-06 16:55 

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.