thanks for response
dear sir
this is my code
protected void Page_Load(object sender, EventArgs e)
{
try
{
hdShowWeather.Value = "False";
_vpath = UtilityLibrary.Helper.GetVirtualPath();
lblNoOffer.Visible = false;
((HtmlAnchor)(Master.FindControl("aHome"))).Attributes.Add("class", "top_menu_active");
((HtmlAnchor)(Master.FindControl("aHome"))).HRef = "#";
((TextBox)Master.FindControl("txtUsrNm")).Focus();
m_UserDetails = m_CookieInfo.Split(';');
if (!string.IsNullOrEmpty(m_CookieInfo))
{
m_LoginUserID = Convert.ToInt32(m_UserDetails[1]);
m_QueryUserID = Convert.ToInt32(Request.QueryString.Get("ProfileID"));
ShowLinks();
AssignLinks();
SetControlAttrib_NetworkList();
}
if (!IsPostBack)
{
ImageGalleryHandler images = new ImageGalleryHandler();
dtlstImages.DataSource = images.LoadHomePageImagesList<IDataReader>();
dtlstImages.DataBind();
UserInfoHandler m_UserInfoHandler = new UserInfoHandler();
DlstLatestMember.DataSource = m_UserInfoHandler.FetchLatestMember<IDataReader>();
DlstLatestMember.DataBind();
}
if (string.IsNullOrEmpty(m_CookieInfo))
{
pnl_Home.Visible = true;
pnl_MyHome.Visible = false;
aWeatherLogo.HRef = "http://www.weather.com";
}
else
{
m_LoginUserID = Convert.ToInt32(HttpContext.Current.User.Identity.Name.Split(';')[1]);
pnl_MyHome.Visible = true;
pnl_Home.Visible = false;
AssignProfileValues(m_LoginUserID);
PersonalInfoHandler prsnl = new PersonalInfoHandler();
if (!String.IsNullOrEmpty(stationId))
{
weatherCode = prsnl.WeatherStationCode(stationId);
aWeatherLogo.HRef = "http://www.weather.com/weather/today/" + weatherCode;
}
if (!IsPostBack)
{
LoadAlertData();
GetAllCountries();
GetAllWeatherStationsByCountry(int.Parse(drpdwnlstcountry.SelectedValue));
if (!string.IsNullOrEmpty(m_LoginUserID.ToString()) && m_LoginUserID != 0)
{
fillNotificationData();
aImportContacts.HRef = String.Concat(_vpath, Helper.GetValue(Constants.APPKEYS.INVITEFRIENDS), "?ProfileID=", m_LoginUserID);
aImgImportContacts.HRef = String.Concat(_vpath, Helper.GetValue(Constants.APPKEYS.INVITEFRIENDS), "?ProfileID=", m_LoginUserID);
aInviteFriends.HRef = string.Concat(_vpath, "/Invite/Invite.aspx", "?ProfileID=", m_LoginUserID);
aImgInviteFriends.HRef = string.Concat(_vpath, "/Invite/Invite.aspx", "?ProfileID=", m_LoginUserID);
}
}
}
if (!string.IsNullOrEmpty(m_CookieInfo))
{
SetControlAttrib_ContactList();
}
}
catch (Exception ex)
{ ((HtmlTableCell)(Master.FindControl("tdError"))).InnerText = m_ExcHndlr.HandleException(ex); }
}
and now i have removed that commented line from my code but still getting post back