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

ASP.NET

 
Generalproblem in login page Pin
preeti12318-Apr-08 18:49
preeti12318-Apr-08 18:49 
GeneralRe: problem in login page Pin
SekharOne18-Apr-08 23:07
SekharOne18-Apr-08 23:07 
GeneralMS Web Application Stress Test on Windows XP Pin
AlexeiXX318-Apr-08 17:29
AlexeiXX318-Apr-08 17:29 
GeneralIE 7- Popup timer does not start until session tab is clicked on Pin
Suresh Reddy B.V18-Apr-08 12:03
Suresh Reddy B.V18-Apr-08 12:03 
GeneralRe: IE 7- Popup timer does not start until session tab is clicked on Pin
Suresh Reddy B.V22-Apr-08 4:32
Suresh Reddy B.V22-Apr-08 4:32 
GeneralStuck with Datagrid and its HTML output formatting...... Pin
Infernojericho18-Apr-08 10:28
Infernojericho18-Apr-08 10:28 
GeneralRe: Stuck with Datagrid and its HTML output formatting...... Pin
Ashish Sehajpal18-Apr-08 11:18
Ashish Sehajpal18-Apr-08 11:18 
GeneralRe: Another question.....Labels and Textbox... Pin
Infernojericho18-Apr-08 13:09
Infernojericho18-Apr-08 13:09 
Thank you thank you thank you thank you!!!!

I just can't believe it is that simple, I never quite figured out the difference between Datagrid and Datalist. Now I guess I do.

I hope you wouldn't mind me asking another question. It's on textbox and labels.

How do you create a "multiline" label? I tried using a textbox, and disabling the borders to make it look like a label, and to set it read only. However I've ran into several issues:

The scrollbar is a problem, as it gives others the impression its a textbox after all, I managed to hide the scrollbar with the help of CSS. But this brings another problem:

The number of rows in a textbox is fixed. So there is a problem with text longer than the textbox themselves, since I have disabled the scrollbar so users can't scroll, meaning they are unable to read the latter part of the text.

I eventually thought of setting the number of rows in the textbox dynamically by getting the length of the string, divide it by the number of characters in each row on the textbox. So if the string to be displayed is like 100 characters long, and my textbox displays 10 characters per line. I do something like: textbox.Rows = string.length / 10.

It's not perfect, though. BIG PROBLEM: There is a problem if there are carriage returns (Enters) in the text itself? Let's say if the user types "enter" twice at the 11th character, Basically there should be spaces from character 12 to 30. However when determining the string length does not see the 2 carriage returns as 18 spaces. Therefore it still sets the textbox as 10 rows, although the text takes up 12 rows. I am absolutely stuck in how I should solve this.

Can anyone help?
GeneralRe: Another question.....Labels and Textbox... Pin
Ashish Sehajpal21-Apr-08 5:00
Ashish Sehajpal21-Apr-08 5:00 
QuestionHow to display multiple spaces in a DropDownList? Pin
Nancy K18-Apr-08 10:12
Nancy K18-Apr-08 10:12 
AnswerRe: How to display multiple spaces in a DropDownList? Pin
Ashish Sehajpal18-Apr-08 11:21
Ashish Sehajpal18-Apr-08 11:21 
GeneralRe: How to display multiple spaces in a DropDownList? Pin
Nancy K18-Apr-08 12:05
Nancy K18-Apr-08 12:05 
GeneralRe: How to display multiple spaces in a DropDownList? Pin
AlexeiXX318-Apr-08 17:33
AlexeiXX318-Apr-08 17:33 
Questioni need your help in asp.net ajax Pin
Member 381775518-Apr-08 7:29
Member 381775518-Apr-08 7:29 
GeneralRe: i need your help in asp.net ajax Pin
Not Active18-Apr-08 7:37
mentorNot Active18-Apr-08 7:37 
GeneralRe: i need your help in asp.net ajax Pin
leckey18-Apr-08 8:49
leckey18-Apr-08 8:49 
GeneralRe: i need your help in asp.net ajax Pin
Ashish Sehajpal18-Apr-08 11:23
Ashish Sehajpal18-Apr-08 11:23 
QuestionNeed recommendation for third party ASP Menus with VB.NET Pin
ktomecek18-Apr-08 5:45
professionalktomecek18-Apr-08 5:45 
AnswerRe: Need recommendation for third party ASP Menus with VB.NET Pin
led mike18-Apr-08 6:58
led mike18-Apr-08 6:58 
GeneralRe: Need recommendation for third party ASP Menus with VB.NET Pin
Ashish Sehajpal18-Apr-08 11:26
Ashish Sehajpal18-Apr-08 11:26 
GeneralRe: Need recommendation for third party ASP Menus with VB.NET Pin
cmk18-Apr-08 13:11
cmk18-Apr-08 13:11 
GeneralRe: Need recommendation for third party ASP Menus with VB.NET Pin
ktomecek23-Apr-08 10:12
professionalktomecek23-Apr-08 10:12 
GeneralUnable to get selected option from <select></select> [modified] Pin
Sunset Towers18-Apr-08 5:25
Sunset Towers18-Apr-08 5:25 
GeneralRe: Unable to get selected option from Pin
Sunset Towers18-Apr-08 5:47
Sunset Towers18-Apr-08 5:47 
GeneralRe: Unable to get selected option from Pin
led mike18-Apr-08 7:00
led mike18-Apr-08 7:00 

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.