That is the right approach, but this will only change the
disabled status of the button on postback.

        If you need to do it without a postback, you'll need to use
client-side Javascript, like this:

document.formName.imageButtonName.disabled = false;

        Of course it sounds like you found what you needed, but I wanted
to make sure you had enough information.

Cheers,

Peter

-----Original Message-----
From: sonali shukla [mailto:[EMAIL PROTECTED] 

Thanks Peter,
I am using an image button as prev - next buttons for paging.
I used the pice of code you sent. to enable the nutton I am 
doing this
 
myImageButton.Attributes.Remove("disabled")
 
I just want to make sure if this is the right approach .
 
Thanks
Sonali
 


Peter Brunone <[EMAIL PROTECTED]> wrote:
Hi Sonali,

      You should be able to do this in your server script (Page_Load or
wherever it works best):

myImageButton.Attributes.Add("disabled", "true")

(if you're using C#, just add a semicolon at the end)

Cheers,

Peter

-----Original Message-----
From: sonali shukla [mailto:[EMAIL PROTECTED] 

Hi Friends,

How do I disable an ImageButton. It doesnot have the enabled property.

Thanks
sonali




Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


                
---------------------------------
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.

[Non-text portions of this message have been removed]




 
Yahoo! Groups Links



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to