Hi
I have given the If statement under the save button click event as
If I put this into a function then what would be a return type. If the function I specified is correct
is this right
I have given the If statement under the save button click event as
Code:
if (ThemeDropDownList.SelectedValue == "Blue")
{
empty.Attributes.Add("BgColor", "blue");
Save.CssClass = "ButtonIE1";
ClearButton.CssClass = "ButtonIE1";
HtmlTableCell WebBody = (HtmlTableCell)Master.FindControl("row1");
WebBody.Attributes.Add("BgColor", "blue");
}
else
{
empty.Attributes.Add("BgColor", "#518643");
Save.CssClass = "ButtonIE";
ClearButton.CssClass = "ButtonIE";
HtmlTableCell WebBody = (HtmlTableCell)Master.FindControl("row1");
WebBody.Attributes.Add("BgColor", "#518643");
}
If I put this into a function then what would be a return type. If the function I specified is correct
Code:
protected void InsertDoctorSettingDetails()
{
if (ThemeDropDownList.SelectedValue == "Blue")
{
empty.Attributes.Add("BgColor", "blue");
Save.CssClass = "ButtonIE1";
ClearButton.CssClass = "ButtonIE1";
HtmlTableCell WebBody = (HtmlTableCell)Master.FindControl("row1");
WebBody.Attributes.Add("BgColor", "blue");
}
else
{
empty.Attributes.Add("BgColor", "#518643");
Save.CssClass = "ButtonIE";
ClearButton.CssClass = "ButtonIE";
HtmlTableCell WebBody = (HtmlTableCell)Master.FindControl("row1");
WebBody.Attributes.Add("BgColor", "#518643");
}
}
is this right
Comment