Live Chat Icon For mobile
Live Chat Icon

How to change the image button size during runtime

Platform: ASP.NET| Category: Controls


Dim x As New Unit('80px')
Dim y As New Unit('20px')
Dim imagestate as string= 'stand'
If imagestate = 'stand' then
	imagebutton1.height = x
	imagebutton1.height = y
end if


Unit x = new Unit ('80px');
Unit y = new Unit('20px');
string imagestate='stand';
if( imagestate != 'stand')
	ImageButton1.Height = x;
	ImageButton1.Height = y;

For more details Setting Web Server Control Properties Programmatically

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.