Archives
-
Programmatically Modifying the HyperLinks in the DataPager control
Hi,
-
Request.Browser.Version is returning 7 when browsing with IE8
Hi,
-
Adding custom properties to the Membership user , what are the options?
One of a frequently asked questions is “how to add a custom columns/properties to the MembershipUser class?”.
-
Getting the user Login date and time when using FormsAuthentication
Hi,
-
Do you have to migrate from .NET 2.0 Ajax extensions to .NET 3.5 Ajax ?
While i was reading the unanswered posts on the forms.asp.net, i came across a post that asks about whether we should migrate to .NET 3.5 Ajax or just stay using the .NET 2.0 Ajax extensions?
-
Applying custom styles for the GridView sorted Columns in .NET 4 beta1
Hi,
-
'System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider' cannot be instantiated under a partially trusted security policy
Hi,
-
Entity Framework:What’s new in .NET 4 and VS 2010
For the list of updates and enhancements , checkout this post from ADO.NET team.
-
Displaying the text that was originally stored using multi line TextBox
One common problem that face the developers is that when they store a text using Multiline text box ,and try to dispaly that text using the label ( or any other control) on the form, they will find that the line breaks and spaces is not being rendered with in the text.
-
Microsoft Free Web Platform Installer (WEB PI)
Web platform installer is a small application that allow you to stay update to date with the latest .NET tools,updates and additions that is being added to the framework.Developers may not have enough time to search and read the latest releases and updates.And so the purpose of this tool is to server as a “single-place” for the developers to check the last updates and new releases that is related to .NET and Microsoft tools in generals.
-
Did you know that there is a VS 2008 sp1 Offline installer
Hi,
-
Birzeit university - Practical ASP.Net development session
Hi everyone.
-
Using CustomValidator to enforce the user to fill at least one textbox control.
If you have a requirement in which you have many textbox controls and you want to enforce the user to fill at least one of them, then you can simply use a custom validator control with a client side function like this :
-
ASP.NET MVC training kit is now available
Hi All,
-
Sharing FormView Edit and insert templates to avoid duplicate markup
If you used the FormView control ,I’m sure that you had modified it’s generated Edit and Insert templates(like adding calendar for the date fields , changing the textboxes that are bound to the foreign key columns with a dropdown list,adding validation controls to some of the fields , apply some masks … etc .
-
Login control FAQ :
I have posted a thread on the forums which list all the FAQ about the Login control.
-
MIX09 Keynote and Session Videos
Mike Swanson summarized the various options to download the Mix 09 videos and keynotes , Read his post [here].
-
Caching techniques for paged GridView
Implementing output cache for the GridView is straight forward if the GridView doesn't require to provide paging functionality.
-
Presentation: Introduction to .NET and VS 2008 (Birzeit University)
Hi everyone.
-
Solving "A generic error occurred in GDI+" exception.
Hi,
-
Modifying Profile of a specific user(not logged in user)
I noticed that the developers face problem when they want to update a profile of a user that is not currently logged in.
-
Displaying Online users using Linq-to-entities.
A frequently asked question on the forums is "how to display the Online users when using Membership ?
-
Modifying the blogengine.net countries dropdownlist to inlclude Palestine
After I started to use Blogengine , i noticed that Palestine is not in the countries list that disaplyed in the comments box.I found the the blogenigne use the CultureInfo to get the countries based on the languages of each region.Since there is no Palestine langauge for arabic culture , the Palestine wasn't inlcluded.
-
Nod32 antivirus is blocking Visual studio Built in development server
Recently I started to face the following problem:
-
mailto: from GridView row to allow the user to send emails
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 ?
-
Hiding some page controls from the Unauthenticated users
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 authentication). For example, If you want to hide a button from the anonymous users , you can write : Button1.Visible=Request.IsAuthenticated; If you have many controls that you want to hide , you can group them inside a Panel : Panel1.Visible=Request.IsAuthenticated; This will hide the Panel including the controls inside it.
-
The 'SkinId' property can only be set in or before the Page_PreInit event for static controls
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 the developers trying to set the skinId for the controls that are inside another controls like GridView,Datalist,Repeater,ListView ....
-
How to select an item in Listview based on the DataKey
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 == ListViewItemType.DataItem)
{
ListViewDataItem di =(ListViewDataItem) e.Item;
int CurrentItemValue = int.Parse(ListView1.DataKeys[di.DataItemIndex].Value.ToString());
if (CurrentItemValue == YourKeyValue)
ListView1.SelectedIndex = di.DataItemIndex;
}
}
-
Resetting scroll position after completion of the partial update
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).