Click here to Skip to main content
15,884,353 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: User Control Pin
J4amieC25-Apr-06 0:22
J4amieC25-Apr-06 0:22 
GeneralRe: User Control Pin
Uma Kameswari25-Apr-06 0:31
Uma Kameswari25-Apr-06 0:31 
QuestionCalling Client side Script Pin
NICE TO MEET24-Apr-06 23:59
NICE TO MEET24-Apr-06 23:59 
AnswerRe: Calling Client side Script Pin
CWIZO25-Apr-06 0:35
CWIZO25-Apr-06 0:35 
AnswerRe: Calling Client side Script Pin
Richard Parsons25-Apr-06 4:26
Richard Parsons25-Apr-06 4:26 
Questiongj Pin
NICE TO MEET24-Apr-06 23:55
NICE TO MEET24-Apr-06 23:55 
Questionradio button in Datalist prob Pin
Ankit Aneja24-Apr-06 23:36
Ankit Aneja24-Apr-06 23:36 
QuestionHOw can i add Header and footer? Pin
NinaWilliam24-Apr-06 23:27
NinaWilliam24-Apr-06 23:27 
HOw can i add Header and footer?

Hi i am using javascript code to print a datagrid in my page..is there a way to add header and footer in the document like a title on the header and page number in the footer?

this is the function am calling t print:


// quick browser tests
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;

function show(sw,obj) {
// show/hide the divisions
if (sw && (ie4 || ie5) ) document.all[obj].style.visibility = 'visible';
if (!sw && (ie4 || ie5) ) document.all[obj].style.visibility = 'hidden';
if (sw && ns4) document.layers[obj].visibility = 'visible';
if (!sw && ns4) document.layers[obj].visibility = 'hidden';
}
// End -->

//Print datagrid only function (print button 1)
function CallPrint(strid)
{
show(false,'srcPnl');
var prtContent = document.getElementById(strid);
var WinPrint =
window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
show(true,'srcPnl');
WinPrint.close();
}



AnswerRe: HOw can i add Header and footer? Pin
Richard Parsons25-Apr-06 4:39
Richard Parsons25-Apr-06 4:39 
GeneralRe: HOw can i add Header and footer? Pin
NinaWilliam25-Apr-06 18:06
NinaWilliam25-Apr-06 18:06 
QuestionInternet Speed Pin
kirthikirthi24-Apr-06 23:26
kirthikirthi24-Apr-06 23:26 
AnswerRe: Internet Speed Pin
Zakaria Bin Abdur Rouf25-Apr-06 3:20
Zakaria Bin Abdur Rouf25-Apr-06 3:20 
GeneralRe: Internet Speed Pin
kirthikirthi25-Apr-06 18:12
kirthikirthi25-Apr-06 18:12 
QuestionSession continues after the Session times out Pin
Praveen_S24-Apr-06 23:25
Praveen_S24-Apr-06 23:25 
AnswerRe: Session continues after the Session times out Pin
yogsworld24-Apr-06 23:54
yogsworld24-Apr-06 23:54 
AnswerRe: Session continues after the Session times out Pin
Frank Kerrigan25-Apr-06 0:43
Frank Kerrigan25-Apr-06 0:43 
QuestionHow to open a windows application from asp.net page Pin
nesaraja24-Apr-06 23:14
nesaraja24-Apr-06 23:14 
AnswerRe: How to open a windows application from asp.net page Pin
J4amieC24-Apr-06 23:22
J4amieC24-Apr-06 23:22 
QuestionArthimetic operations results in overflow Pin
MaheshSharma24-Apr-06 23:11
MaheshSharma24-Apr-06 23:11 
AnswerRe: Arthimetic operations results in overflow Pin
Colin Angus Mackay24-Apr-06 23:26
Colin Angus Mackay24-Apr-06 23:26 
GeneralRe: Arthimetic operations results in overflow Pin
MaheshSharma25-Apr-06 0:10
MaheshSharma25-Apr-06 0:10 
GeneralRe: Arthimetic operations results in overflow Pin
Colin Angus Mackay25-Apr-06 0:53
Colin Angus Mackay25-Apr-06 0:53 
GeneralRe: Arthimetic operations results in overflow Pin
MaheshSharma25-Apr-06 2:15
MaheshSharma25-Apr-06 2:15 
GeneralRe: Arthimetic operations results in overflow Pin
Colin Angus Mackay25-Apr-06 2:20
Colin Angus Mackay25-Apr-06 2:20 
GeneralRe: Arthimetic operations results in overflow Pin
MaheshSharma25-Apr-06 3:26
MaheshSharma25-Apr-06 3:26 

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.