hi sudhanva
I got a prob in my project. wen i login to web site, the default.aspx wil be displayed. In this page a Link Button is there(in which confidential documents are there), wen i click this button it should show login page again, so dat authorized person should open it. The username is in session. I redirected it then same cyclic process is going on ( again i login if click link button again login) wat to do??
protected void LinkButton3_Cli ck(object sender, EventArgs e)
{
FillRepeater();
}
public void FillRepeater()
{
//int startRecord = (int.Parse(Curr entPage.Value) - 1) * int.Parse(PageS ize.Value);
mvUser.SetActiv eView(viewProdu cts);
//DataSet ds = ConDB.GetProduc ts(startRecord, int.Parse(PageS ize.Value));
DataSet ds = ConDB.GetProduc ts();
rptProducts.Dat aSource = ds;
rptProducts.Dat aBind();
//foreach(Repeate rItem i in rptProducts.Ite ms)
//{
// ImageMap m = (ImageMap)i.Fin dControl("img1" );
// DateTime dt=DateTime.Now .AddDays(-1);
// TimeSpan ts=DateTime.Now-dt;
// Page.Cache.Add( "i1", m,null, dt,TimeSpan.Zer o,CacheItemPrio rity.High, null);
// }
}
I got a prob in my project. wen i login to web site, the default.aspx wil be displayed. In this page a Link Button is there(in which confidential documents are there), wen i click this button it should show login page again, so dat authorized person should open it. The username is in session. I redirected it then same cyclic process is going on ( again i login if click link button again login) wat to do??
protected void LinkButton3_Cli ck(object sender, EventArgs e)
{
FillRepeater();
}
public void FillRepeater()
{
//int startRecord = (int.Parse(Curr entPage.Value) - 1) * int.Parse(PageS ize.Value);
mvUser.SetActiv eView(viewProdu cts);
//DataSet ds = ConDB.GetProduc ts(startRecord, int.Parse(PageS ize.Value));
DataSet ds = ConDB.GetProduc ts();
rptProducts.Dat aSource = ds;
rptProducts.Dat aBind();
//foreach(Repeate rItem i in rptProducts.Ite ms)
//{
// ImageMap m = (ImageMap)i.Fin dControl("img1" );
// DateTime dt=DateTime.Now .AddDays(-1);
// TimeSpan ts=DateTime.Now-dt;
// Page.Cache.Add( "i1", m,null, dt,TimeSpan.Zer o,CacheItemPrio rity.High, null);
// }
}
Comment