Click here to Skip to main content
15,886,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCustom validator Pin
diacoboss28-Aug-09 3:50
diacoboss28-Aug-09 3:50 
AnswerRe: Custom validator Pin
Manas Bhardwaj28-Aug-09 3:59
professionalManas Bhardwaj28-Aug-09 3:59 
GeneralRe: Custom validator Pin
diacoboss28-Aug-09 4:33
diacoboss28-Aug-09 4:33 
GeneralRe: Custom validator Pin
Coding C#28-Aug-09 4:54
Coding C#28-Aug-09 4:54 
AnswerRe: Custom validator Pin
compninja2528-Aug-09 8:26
compninja2528-Aug-09 8:26 
GeneralRe: Custom validator Pin
diacoboss31-Aug-09 0:28
diacoboss31-Aug-09 0:28 
GeneralRe: Custom validator Pin
compninja2531-Aug-09 2:00
compninja2531-Aug-09 2:00 
QuestionFormatting of textbox within listview in webform [modified] (Problem solved) Pin
Patrick Garrity28-Aug-09 3:47
Patrick Garrity28-Aug-09 3:47 
I have a listview that works fine but I would like to improve the appearance. Using codebehind, I insert textboxes into each listview cell. The cells are different colors. The space between the cells has gaps in the colors. Although the cells are grey, the space between two cells is white. I have tried tweaking borderstyle and bordercolor of the textbox but nothing changes.


I believe that my problem is caused by css. I took my html and browsed without the css file and things look different, so I will try to figure out what puts the gaps in.


But I would still like an answer for my amount fields.

I would also like a way to right align the currency fields within these textboxes. I can't get this to work well either.


Here is a portion of my code. I have bitmap image of the app but I can't insert this into my post.


Dim txtBox As New System.Web.UI.WebControls.TextBox
        With txtBox
            .BorderStyle = BorderStyle.None
            .ReadOnly = True
            .Text = " "
            .BackColor = Drawing.Color.LightGray
            .BorderColor = Drawing.Color.LightGray
        End With
        oRow.Cells(iCol).Control = txtBox
        oRow.Cells(iCol).Control.Width = Unit.Percentage(100)
        oRow.Cells(0).Control.BorderStyle = BorderStyle.None




The answer was found in this site.

.Style("TEXT-ALIGN") = TextAlign.Right.ToString()

I am not sure why there is a need for TEXT-ALIGN as well as ALIGN but my pages look much better now. The thing that I forgot is that webform controls are merely an aid to creating HTML. I need to understand the underlying HTML to make my site pleasing to the eye.
I appreciate any help on these issues.

modified on Monday, August 31, 2009 11:35 AM

Questionedit property of data gridview control Pin
myinstincts28-Aug-09 2:33
myinstincts28-Aug-09 2:33 
AnswerRe: edit property of data gridview control Pin
janani1328-Aug-09 2:46
janani1328-Aug-09 2:46 
GeneralRe: edit property of data gridview control Pin
myinstincts28-Aug-09 2:52
myinstincts28-Aug-09 2:52 
GeneralRe: edit property of data gridview control Pin
sashidhar30-Aug-09 21:07
sashidhar30-Aug-09 21:07 
QuestionLinking ASP.NET web controls with CSS styles [modified] Pin
Chesnokov Yuriy28-Aug-09 2:21
professionalChesnokov Yuriy28-Aug-09 2:21 
AnswerRe: Linking ASP.NET web controls with CSS styles Pin
janani1328-Aug-09 2:53
janani1328-Aug-09 2:53 
AnswerRe: Linking ASP.NET web controls with CSS styles Pin
Chesnokov Yuriy28-Aug-09 3:12
professionalChesnokov Yuriy28-Aug-09 3:12 
GeneralRe: Linking ASP.NET web controls with CSS styles Pin
DoctorMick28-Aug-09 5:24
DoctorMick28-Aug-09 5:24 
QuestionRe: Linking ASP.NET web controls with CSS styles Pin
Chesnokov Yuriy28-Aug-09 7:50
professionalChesnokov Yuriy28-Aug-09 7:50 
QuestionAdd Hashtable into the arraylist in javascript Pin
zeeShan anSari28-Aug-09 2:09
zeeShan anSari28-Aug-09 2:09 
Questionstore image in databse Pin
rinku soni 2328-Aug-09 1:50
rinku soni 2328-Aug-09 1:50 
AnswerRe: store image in databse Pin
Coding C#28-Aug-09 2:02
Coding C#28-Aug-09 2:02 
AnswerRe: store image in databse Pin
Arun Jacob28-Aug-09 2:22
Arun Jacob28-Aug-09 2:22 
Questionwhen set property enable = false for checkbox control in design time then after how to enable = true in javascript Pin
anish27patel28-Aug-09 1:32
anish27patel28-Aug-09 1:32 
AnswerRe: when set property enable = false for checkbox control in design time then after how to enable = true in javascript Pin
Arun Jacob28-Aug-09 1:54
Arun Jacob28-Aug-09 1:54 
GeneralRe: when set property enable = false for checkbox control in design time then after how to enable = true in javascript Pin
anish27patel30-Aug-09 18:19
anish27patel30-Aug-09 18:19 
AnswerRe: when set property enable = false for checkbox control in design time then after how to enable = true in javascript Pin
Coding C#28-Aug-09 2:06
Coding C#28-Aug-09 2:06 

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.