How to change the image button size during runtime
VB.NET Dim x As New Unit(’80px’) Dim y As New Unit(’20px’) Dim imagestate as string= ‘stand’ If imagestate = ‘stand’ then imagebutton1.height = x else imagebutton1.height = y end if C# Unit x = new Unit (’80px’); Unit y = new Unit(’20px’); string imagestate=’stand’; if( imagestate != ‘stand’) { ImageButton1.Height = x; } else { ImageButton1.Height = y; } For more details Setting Web Server Control Properties Programmatically
What is the difference between a series of RadioButton controls and a series of Checkbox controls
RadioButton control is designed to allow users to choose atleast one option from a list of available options. Checkbox is designed to allow users to choose from zero to all options.
Why do I get the error message ‘CS0122: ‘System.Drawing.Imaging.ImageFormat.jpeg’ is inaccessible due to its protection level ‘
Try giving the proper file path for the image. Also make sure you have proper permissions on that file.
Why do I get the error message ‘Sender address rejected: need fully-qualified address ‘
This is happening because your SmtpMail.SmtpServer is rejecting addresses. To resolve this make sure all email addresses specified at MailMessage.To, MailMessage.Cc, MailMessage.Bcc and MailMessage.From are valid email addresses you have permissions to relay through the server. MailMessage.From has permissions to relay through the server
How can I specify multiple recipients for a message?
Seperate each recipient with a semicolon (;) in the mailMessage.To property: VB.NET mailMessage.To = ‘[email protected];[email protected]’ C# mailMessage.To = ‘[email protected];[email protected]’;