January 2009 - Posts

0
Comments

mailto: from GridView row to allow the user to send emails by anas

If you want to create a HyperLinks in the GridView , so that if the user click on one link the outlock (or email client) will be opened and carry the clicked email ? If we assumed that the User Email is stored in a column called "Email" , then...
Filed under:
0
Comments

Hiding some page controls from the Unauthenticated users by anas

If you want to hide controls in the page that is being displayed by the logged in and not logged in users , then you can check the Request.IsAuthenticated property which returns true if the user is logged in ( of course you must be using Windows or Forms...
Filed under: ,
0
Comments

The 'SkinId' property can only be set in or before the Page_PreInit event for static controls by anas

If you get that error , then you would probably is trying to set the SkingId programatically.Note that if you are adding your control dynamically, you should assing that proeprty before adding the control to it's parent.I noticed this issue also when...
Filed under:
0
Comments

How to select an item in Listview based on the DataKey by anas

If you want to Select a listView item based on a Key , you can handle it's ItemDatabound event like below:   private int YourKeyValue = 3;   protected void ListView1_ItemDataBound( object sender, ListViewItemEventArgs e) { if (e.Item.ItemType...
Filed under:
2
Comments

Resetting scroll position after completion of the partial update by anas

When you use the UpdatePanel to implement partial updates,the scroll position will be maintained between the asynchronous post-backs.However,you may need to reset the scroll position after the partial update completed ( after receiving the response)....
Filed under: ,
More Posts