Author: iramee | Posted on: 4/21/2010 3:10:26 AM | Views : 294

Hi,
I have created a dynamic drop down list and attached an event SelectedIndexChanged dynamically, and this event calls sub program "protected void abc(object sender, EventArgs e)".
This sub program assigns the selected value of drop down list to a dynamic label control. This label displays same value as was selected in the drop down list but when i assing value of drop down list to a variable then it assigns its  previous value. but i want its current selected value .Please help me to solve this issue. The code is given below:


using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;


public class Page_Items
{
     ...

Go to the complete details ...