CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Location
    India
    Posts
    30

    Thumbs up Applying style to image control from the server side

    hi guys,

    Can u guys pls tell how to apply style to an image control in the server side.
    I want to make it visible and invisible .. i hav tried it with imgControl.Visible.. but, that doesn't serve my needs..
    I'm also using some client script to do some validations on button clicks.. so setting imgControl.visible = false, generates error .. saying that ' object required'..



    thanx ..:-)

  2. #2
    Join Date
    Oct 2008
    Posts
    3

    Re: Applying style to image control from the server side

    Dear Dineshgirij,

    apply this code see if it works,

    imgControl.style.add(HtmlTextWriterStyle.Display, "block");

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured