Nope but i think i need explanation on this code that i have...may be its because of this....
protected virtual void RenderAttributes(HtmlTextWriter writer)
{
if (base.ID != null)
{
writer.WriteAttribute("id", base.ClientID);
writer.WriteAttribute("name", this.UniqueID);
}
if (!this.Enabled)
writer.WriteAttribute("Enabled","false");
writer.WriteAttribute("ParentFormID", this.ClientID);
if (this.AutoPostBack)
{
string sOnChangeCmd = this.Attributes["onchange"];
if (sOnChangeCmd != null)
{
this.Attributes["onchange"] = (sOnChangeCmd.EndsWith(";")) ? sOnChangeCmd + Page.GetPostBackEventReference(this, String.Empty)+ ";" : sOnChangeCmd + ";" + Page.GetPostBackEventReference(this, String.Empty);
}
else
{
this.Attributes.Add("onchange", Page.GetPostBackEventReference(this, String.Empty));
}
}
this.Attributes.Render(writer);
}
if you look at the GetPostBackEventReference it is returning empty strings.I wonder why?
|