.NET datagrid textbox backcolor using VB.NET

Discussion in 'Software' started by arecev, Apr 5, 2009.

  1. arecev

    arecev

    Joined:
    Apr 5, 2009
    Messages:
    1
    Any ideas why this would have happened on one machine?

    Issue
    In an ASP.NET 1.1 datagrid, changing a single textbox backcolor from white to yellow, using this code, worked on all but one machine:

    tbTextbox.Backcolor = System.Drawing.Color.Yellow
    (by the way, the datagrid remains in edit mode)​

    All users are on IE 6 or 7. The page has a CSS, but that CSS does not set textbox style, and even when the CSS was removed, the code above did not work on the one machine, even after upgrading it from IE 6 to IE 7.

    Resolution
    This works on all machines: tbTextbox.Style.Add("background-color", "yellow")

    Thanks

    BTW, client-side scripting and upgrading to a newer framework were not options in this environment.
     
    Last edited: Apr 6, 2009
    arecev, Apr 5, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. smi59550
    Replies:
    0
    Views:
    1,579
    smi59550
    Jan 18, 2008
  2. smi59550
    Replies:
    0
    Views:
    6,156
    smi59550
    Jan 18, 2008
  3. tmpm7
    Replies:
    0
    Views:
    1,162
    tmpm7
    Feb 18, 2008
  4. susan_1516

    validating textbox inside datagrid

    susan_1516, Nov 9, 2008, in forum: Software
    Replies:
    0
    Views:
    1,224
    susan_1516
    Nov 9, 2008
  5. kanchangorak

    Get datagrid textbox value

    kanchangorak, Mar 11, 2009, in forum: Software
    Replies:
    0
    Views:
    2,825
    kanchangorak
    Mar 11, 2009
Loading...

Share This Page