Click here to Skip to main content
15,888,733 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Zero's were getting trimmed when string convert to integer. Pin
Satish - Developer23-Mar-09 21:35
Satish - Developer23-Mar-09 21:35 
GeneralRe: Zero's were getting trimmed when string convert to integer. Pin
Spunky Coder23-Mar-09 22:08
Spunky Coder23-Mar-09 22:08 
Questionspacebar problem for insertion Pin
roshid23-Mar-09 19:13
roshid23-Mar-09 19:13 
AnswerRe: spacebar problem for insertion Pin
SachinKumar M23-Mar-09 19:52
SachinKumar M23-Mar-09 19:52 
GeneralRe: spacebar problem for insertion Pin
roshid23-Mar-09 20:06
roshid23-Mar-09 20:06 
QuestionHelp needed in finding control Pin
The Pod23-Mar-09 16:14
The Pod23-Mar-09 16:14 
AnswerRe: Help needed in finding control Pin
Cybernate24-Mar-09 10:45
Cybernate24-Mar-09 10:45 
QuestionASP.Net Multiline Text Box Pin
Ryan Fleming23-Mar-09 4:39
Ryan Fleming23-Mar-09 4:39 
Hello,

I am trying to use a multiline textbox in asp.net that will automatically move with the browser as it is resized both horizontally and vertically. I have tried using CSS and percent See Example Below:

***************************************************************************************

<asp:textbox id="txtInfo" runat="server" height="20%" textmode="MultiLine" xmlns:asp="#unknown">
Width="99%" Wrap="False" Font-Bold="False" Font-Names="Courier New"
Font-Size="Medium">

***************************************************************************************


I have also tried using java script

***************************************************************************************


// Subscribe to the onresize window event

window.onresize = Resize;

// Resize the textbox
Resize('txtInfo');

// Resizes the supplied textbox name
function Resize(textBox) {

// Get height - take margins into consideration
var height = parseInt(document.body.clientHeight) - (parseInt(document.body.currentStyle.marginTop) + parseInt(document.body.currentStyle.marginBottom));

// Get width - take margins into consideration
var width = parseInt(document.body.clientWidth) - (parseInt(document.body.currentStyle.marginLeft) + parseInt(document.body.currentStyle.marginRight));

// Set the textbox height and width

if (textBox != null) {
document.getElementById(textBox).height = height;
document.getElementById(textBox).width = width;
}
}

***************************************************************************************


Anyone who can provide me with a little direction would be greatly appreciated!!!

Thanks

Ryan
AnswerRe: ASP.Net Multiline Text Box Pin
Rutvik Dave23-Mar-09 9:57
professionalRutvik Dave23-Mar-09 9:57 
GeneralRe: ASP.Net Multiline Text Box [modified] Pin
Ryan Fleming23-Mar-09 16:44
Ryan Fleming23-Mar-09 16:44 
GeneralRe: ASP.Net Multiline Text Box Pin
Rutvik Dave24-Mar-09 4:24
professionalRutvik Dave24-Mar-09 4:24 
GeneralRe: ASP.Net Multiline Text Box Pin
Ryan Fleming24-Mar-09 8:05
Ryan Fleming24-Mar-09 8:05 
GeneralRe: ASP.Net Multiline Text Box Pin
Rutvik Dave25-Mar-09 4:10
professionalRutvik Dave25-Mar-09 4:10 
QuestionProblem with Remote Debugging Pin
dlarkin7723-Mar-09 4:38
dlarkin7723-Mar-09 4:38 
AnswerRe: Problem with Remote Debugging Pin
dlarkin7723-Mar-09 5:30
dlarkin7723-Mar-09 5:30 
QuestionSave As Dialog Box in Asp.Net Application Pin
pavanip23-Mar-09 4:03
pavanip23-Mar-09 4:03 
AnswerRe: Save As Dialog Box in Asp.Net Application Pin
Abhishek Sur23-Mar-09 5:47
professionalAbhishek Sur23-Mar-09 5:47 
AnswerRe: Save As Dialog Box in Asp.Net Application Pin
Abhijit Jana23-Mar-09 18:26
professionalAbhijit Jana23-Mar-09 18:26 
GeneralRe: Save As Dialog Box in Asp.Net Application Pin
codekhan111-Jun-11 20:39
codekhan111-Jun-11 20:39 
Questionhow i write a function or method which return table row with 32 cells any help. Pin
Rameez Raja23-Mar-09 2:11
Rameez Raja23-Mar-09 2:11 
AnswerRe: how i write a function or method which return table row with 32 cells any help. Pin
SeMartens23-Mar-09 2:55
SeMartens23-Mar-09 2:55 
AnswerRe: how i write a function or method which return table row with 32 cells any help. Pin
Abhishek Sur23-Mar-09 3:59
professionalAbhishek Sur23-Mar-09 3:59 
GeneralRe: how i write a function or method which return table row with 32 cells any help. Pin
Rameez Raja23-Mar-09 18:23
Rameez Raja23-Mar-09 18:23 
GeneralRe: how i write a function or method which return table row with 32 cells any help. Pin
Spunky Coder23-Mar-09 19:23
Spunky Coder23-Mar-09 19:23 
GeneralRe: how i write a function or method which return table row with 32 cells any help. Pin
Rameez Raja23-Mar-09 21:59
Rameez Raja23-Mar-09 21:59 

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.