Click here to Skip to main content
15,910,471 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Crystal Report Pin
Sandeep Mewara3-Sep-12 19:09
mveSandeep Mewara3-Sep-12 19:09 
QuestionDetailed progress report question... Pin
JD862-Sep-12 16:18
JD862-Sep-12 16:18 
AnswerRe: Detailed progress report question... Pin
jkirkerx2-Sep-12 17:58
professionaljkirkerx2-Sep-12 17:58 
GeneralRe: Detailed progress report question... Pin
JD869-Sep-12 7:53
JD869-Sep-12 7:53 
GeneralRe: Detailed progress report question... Pin
jkirkerx9-Sep-12 11:25
professionaljkirkerx9-Sep-12 11:25 
GeneralRe: Detailed progress report question... Pin
JD869-Sep-12 15:31
JD869-Sep-12 15:31 
GeneralRe: Detailed progress report question... Pin
jkirkerx9-Sep-12 17:52
professionaljkirkerx9-Sep-12 17:52 
QuestionSetting the height of an textarea on the fly Pin
PP from bangalore2-Sep-12 2:54
PP from bangalore2-Sep-12 2:54 
Hi

I have a web page .On clicking of a button I get a modal popup(Ajax) which shows the the text box which is dynamically filled by the contents and it is inside a panel. This modal popup contains a print button. Once I do print then I take the innerhtml from the panel and open it in a separate window and this goes for printing. But as the text value is dynamic so the height of the text box is not fixed and hence when i do print so the part remaining in the scroll bar doenot print. Could you please let me know how exactly i can remove the scrool bar means I can adjust the height of the text area so that all the contents present in the text area can be printed.

the code is like this as shown below.
var printContent = document.getElementById('<%= pnlProrateSlip.ClientID %>');
var windowUrl = 'about:blank';
var uniqueName = new Date();
uniqueName.getTime();
var printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=0,height=0');
var printWindow = window.open(windowUrl, windowName);
printWindow.document.write(printContent.innerHTML);
printWindow.document.close();
printWindow.focus();
printWindow.print();
printWindow.close();

So what I am doing is , geting the innerhtml value from the panel and putting in a new page and printing it.This panel contains a textbox, whose height and widt I have to manipulate through script, so that I will not get the scroll bar. So from the innerhtml of the panel can I get the textbox by the ID?

Thanks
Prashant
GeneralRe: Setting the height of an textarea on the fly Pin
jkirkerx2-Sep-12 9:47
professionaljkirkerx2-Sep-12 9:47 
QuestionURL or goto.aspx?URL Pin
Jassim Rahma1-Sep-12 3:15
Jassim Rahma1-Sep-12 3:15 
AnswerRe: URL or goto.aspx?URL Pin
Eddy Vluggen1-Sep-12 3:59
professionalEddy Vluggen1-Sep-12 3:59 
AnswerRe: URL or goto.aspx?URL Pin
JeeLaso3-Sep-12 16:38
JeeLaso3-Sep-12 16:38 
QuestionAsp.net system. diagnostics.process access denied Pin
RajavelK1-Sep-12 2:58
RajavelK1-Sep-12 2:58 
AnswerRe: Asp.net system. diagnostics.process access denied Pin
Eddy Vluggen1-Sep-12 3:57
professionalEddy Vluggen1-Sep-12 3:57 
Questionasp c# Pin
ajis23261-Sep-12 1:25
ajis23261-Sep-12 1:25 
AnswerRe: asp c# Pin
Richard MacCutchan1-Sep-12 2:35
mveRichard MacCutchan1-Sep-12 2:35 
AnswerRe: asp c# Pin
Sandeep Mewara1-Sep-12 10:34
mveSandeep Mewara1-Sep-12 10:34 
QuestionSlideShowExtender Pin
pknarun31-Aug-12 21:35
pknarun31-Aug-12 21:35 
Questionhow to display the gridview content Pin
kumaranvnr31-Aug-12 19:03
kumaranvnr31-Aug-12 19:03 
AnswerRe: how to display the gridview content Pin
Sandeep Mewara1-Sep-12 10:38
mveSandeep Mewara1-Sep-12 10:38 
Questionquick answer for me Pin
mamnafih31-Aug-12 0:57
mamnafih31-Aug-12 0:57 
AnswerRe: quick answer for me Pin
Keith Barrow31-Aug-12 1:11
professionalKeith Barrow31-Aug-12 1:11 
AnswerCross post Pin
Wes Aday31-Aug-12 1:40
professionalWes Aday31-Aug-12 1:40 
GeneralRe: Cross post Pin
Keith Barrow31-Aug-12 1:47
professionalKeith Barrow31-Aug-12 1:47 
GeneralRe: Cross post Pin
Wes Aday31-Aug-12 3:38
professionalWes Aday31-Aug-12 3:38 

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.