How to maintain Scroll Position in any Page Element
Check out Jim Ross’s article Maintain Scroll Position in any Page Element The article describes, when using a scrollable Datagrid–one inside an overflow-auto DIV control–how to maintain the user’s scroll position inside the DIV across postbacks. It does this using IE behaviors, HTC files.
How to create server controls at runtime
Here is an example of creating a HyperLink control in code. VB.NET Dim hpl As New HyperLink() hpl.Text='Text' hpl.NavigateUrl='http://www.syncfusion.com'’ hpl.ID='theID' Page.Controls(1).Controls.Add(hpl) C# HyperLink hpl = new HyperLink(); hpl.Text='Text'; hpl.NavigateUrl='http://www.syncfusion.com'; hpl.ID='theID'; Page.Controls[1].Controls.Add(hpl);
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.