Thursday, December 17, 2009

Can't set the selected item of the dropdownlist in sharepoint

Question: Can't set the selected item of the dropdownlist in sharepoint


Answer::


Mark EnableViewState property of page directive to true in .aspx page



<%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" Inherits="CodeBehindAmit.ShowList" EnableViewState="true" EnableViewStateMac="true" AutoEventWireup="true" %>




No comments:

Post a Comment