Click here to Skip to main content
15,914,902 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Please help with inserting GridView Values in oracle table Pin
Sneha Bisht28-Aug-09 20:45
Sneha Bisht28-Aug-09 20:45 
GeneralRe: Please help with inserting GridView Values in oracle table Pin
Hammad Mansoor28-Aug-09 22:13
Hammad Mansoor28-Aug-09 22:13 
AnswerRe: Please help with inserting GridView Values in oracle table Pin
Hammad Mansoor1-Sep-09 19:08
Hammad Mansoor1-Sep-09 19:08 
Questionsaving multiple data enteries Pin
swtlibra28-Aug-09 17:51
swtlibra28-Aug-09 17:51 
AnswerRe: saving multiple data enteries Pin
Parwej Ahamad28-Aug-09 19:25
professionalParwej Ahamad28-Aug-09 19:25 
QuestionHow to embedd webcam control in webpage ? Pin
Bhaumik DV28-Aug-09 5:35
Bhaumik DV28-Aug-09 5:35 
AnswerRe: How to embedd webcam control in webpage ? Pin
Manas Bhardwaj28-Aug-09 8:10
professionalManas Bhardwaj28-Aug-09 8:10 
GeneralRe: How to embedd webcam control in webpage ? Pin
Bhaumik DV28-Aug-09 23:36
Bhaumik DV28-Aug-09 23:36 
AnswerRe: How to embedd webcam control in webpage ? Pin
Blue_Boy28-Aug-09 9:40
Blue_Boy28-Aug-09 9:40 
QuestionImage loupe Pin
BoySetsFire28-Aug-09 4:41
BoySetsFire28-Aug-09 4:41 
AnswerRe: Image loupe Pin
Manas Bhardwaj28-Aug-09 5:18
professionalManas Bhardwaj28-Aug-09 5:18 
QuestionDynamically change color of xml sitemap titles Pin
compninja2528-Aug-09 3:59
compninja2528-Aug-09 3:59 
AnswerRe: Dynamically change color of xml sitemap titles Pin
compninja251-Sep-09 3:23
compninja251-Sep-09 3:23 
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 

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.