Click here to Skip to main content
15,914,594 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Session data lost Pin
Guffa23-Sep-06 5:38
Guffa23-Sep-06 5:38 
Questionclient side printing in asp.net Pin
Senthil_M23-Sep-06 3:33
Senthil_M23-Sep-06 3:33 
AnswerRe: client side printing in asp.net Pin
CWIZO24-Sep-06 3:06
CWIZO24-Sep-06 3:06 
QuestionWhy TableAdapter rather than DataAdapter Pin
Mohammed Amine23-Sep-06 3:14
Mohammed Amine23-Sep-06 3:14 
QuestionDataList check boxes problem ... Pin
devboycpp23-Sep-06 3:01
devboycpp23-Sep-06 3:01 
QuestionRe: DataList check boxes problem ... Pin
amaneet23-Sep-06 10:00
amaneet23-Sep-06 10:00 
QuestionASP.NET 2.0 Crystal Reports Issue with MySQL DB Pin
DigiOz Multimedia23-Sep-06 1:52
DigiOz Multimedia23-Sep-06 1:52 
QuestionBeginer problem with ImageButton even Pin
papa8023-Sep-06 1:48
papa8023-Sep-06 1:48 
Hi Every body i need help.My question is conected with even OnClick on server side.So i get some PostBackUrl from Db who is change for every postback randomly.When is a clicked botton i go to Redirected page unfortunatly when i click back on web browser my pictures is same but my redirection is diffrent.I put that in if(!PostBack) but now how to store the url for last click and if i have same page in different window??Please help.

her is a code
//Url who is appear when button is pressed
private String sLinkUrl;
protected void imgBut_Click(object sender, ImageClickEventArgs e)
{
if (sLinkUrl == null)
{
sLinkUrl = Session["Url"].ToString();
}


Response.Redirect(@"http://"+sLinkUrl);
}

protected void Page_Load(object sender, EventArgs e)
{

if (!IsPostBack)
{
//idBanner
int nId;
///Title of banner
String sTitle;
///Imagine Url
String sImgUrl;
//check if GetRandomBanner function have online banner
if (ControlAccess.GetRandomBanner(out nId, out sTitle, out sImgUrl, out sLinkUrl) > 0)
{
//set title
imgBtn.ToolTip = sTitle;
///set imagine url
imgBtn.ImageUrl = sImgUrl;
//Add object to the sesion state
Session["Url"] = sLinkUrl;



}


HttpContext.Current.Trace.Write(ControlAccess.SumBannerImpression(nId).ToString());
}


}



<asp:imagebutton
id="imgBtn"
="" runat="server" cssclass="ImgBanner" onclick="imgBut_Click">
Best regard
N.Nikolov


when i want to read something good just seat and type it

Questiondate problem Pin
dany.s23-Sep-06 0:58
dany.s23-Sep-06 0:58 
AnswerRe: date problem Pin
Guffa23-Sep-06 1:09
Guffa23-Sep-06 1:09 
QuestionGetting Site Root Address ... Pin
devboycpp23-Sep-06 0:25
devboycpp23-Sep-06 0:25 
QuestionHow To Create Events Dynamically Pin
ABHIJEET BASU23-Sep-06 0:22
ABHIJEET BASU23-Sep-06 0:22 
Questiondata type conversion Pin
senthilmca22-Sep-06 23:32
senthilmca22-Sep-06 23:32 
AnswerRe: data type conversion Pin
Guffa23-Sep-06 0:12
Guffa23-Sep-06 0:12 
QuestionHOW TO HIDE THE COLUMNS OF A DATA TABLE Pin
raja_komatla22-Sep-06 23:24
raja_komatla22-Sep-06 23:24 
AnswerRe: HOW TO HIDE THE COLUMNS OF A DATA TABLE Pin
eggsovereasy25-Sep-06 3:38
eggsovereasy25-Sep-06 3:38 
Questionsession problem Pin
S.Bhushan22-Sep-06 21:21
S.Bhushan22-Sep-06 21:21 
AnswerRe: session problem Pin
Guffa22-Sep-06 22:48
Guffa22-Sep-06 22:48 
GeneralRe: session problem Pin
S.Bhushan22-Sep-06 23:00
S.Bhushan22-Sep-06 23:00 
QuestionDataset Problem Pin
monika_vasvani22-Sep-06 20:22
monika_vasvani22-Sep-06 20:22 
AnswerRe: Dataset Problem [modified] Pin
amaneet22-Sep-06 21:04
amaneet22-Sep-06 21:04 
AnswerRe: Dataset Problem Pin
Jay_se22-Sep-06 21:56
Jay_se22-Sep-06 21:56 
AnswerRe: Dataset Problem for Visual Studio 2005 Pin
Jay_se24-Sep-06 19:15
Jay_se24-Sep-06 19:15 
QuestionTextBox datatypr probelm Pin
dany.s22-Sep-06 20:16
dany.s22-Sep-06 20:16 
AnswerRe: TextBox datatypr probelm Pin
amaneet22-Sep-06 20:34
amaneet22-Sep-06 20:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.