A
Ashish Kanoongo
I am getting error at the time of compilation, However application runs successfully
'System.Web.UI.WebControls.DropDownList' does not contain a definition for 'SelectedValue'.
It is giving error in following line.
ddl.SelectedValue=ddlSelectedValue
If I change this to
ddl.SelectedItem.Value=ddlSelectedValue or
ddl.SelectedItem.Value.ToString=ddlSelectedValue
Both are run succewssfully and not giving any compilation error.
I am newbie in DOTNET, so please guide me whats wrong I am doing. I am using Framework v1.0.3705.
Ashish
'System.Web.UI.WebControls.DropDownList' does not contain a definition for 'SelectedValue'.
It is giving error in following line.
ddl.SelectedValue=ddlSelectedValue
If I change this to
ddl.SelectedItem.Value=ddlSelectedValue or
ddl.SelectedItem.Value.ToString=ddlSelectedValue
Both are run succewssfully and not giving any compilation error.
I am newbie in DOTNET, so please guide me whats wrong I am doing. I am using Framework v1.0.3705.
Ashish