|
one button may do a response.redirect("report1.aspx") and the return button does a response.redirec("reportsmenu.aspx")
Lonnie R Thomas
|
|
|
|
|
Maybe try setting SmartNavigation="true" in your page directive? Or check if your session is timing out...
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
I talked to my webmaster and in IIS the default is 20 minutes and that is what he has set. But the problem I am having is the page does not have to sit for that long to give me a blank page when hitting the return key. Never used smartnavigation but I will research. Thanks for the reply.
Lonnie R Thomas
|
|
|
|
|
checked on smartnavigation on msdn and they say it is obsolete,
Lonnie R Thomas
|
|
|
|
|
Have you checked the functionality of the page itself (the page you are re-directing to)? What is the page actually doing? Are you gathering data from a database? It could be that which is taking the time.
Adam
|
|
|
|
|
Yes. The pages being transferred to have a grid. But the data comes right up with no delay.
Lonnie R Thomas
|
|
|
|
|
What's the url of the blank page? Does it reload the same page, or does it redirect to a different page?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
it is going trying to load the same page. whereas the respons.redirect("reportsmenu.aspx") is the command.
Lonnie R Thomas
|
|
|
|
|
Try to add
form1.Attributes.Add("onkeydown", "return false;");
to the Page_Load()
This way any key pressed on that page will be ignored (as all you need is the mouse to press the buttons).
|
|
|
|
|
Hi all,
I am having problems with my visual studio project. i cant execute my project.It comes up with the above error every time i try and run the program.
I copied the Webdev file from a working PC however,with no success.
Please advice
Thank you
|
|
|
|
|
i want to disable imagebutton.
ImageButton1.Enabled = false; this is not working ?
any suggestions.....
|
|
|
|
|
in which part of the code you do this?
|
|
|
|
|
|
Well, duh. What method ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
iwant to disable image button.
if (this.PageNumber == 1 )
{
ImageButton1.Enabled = false;
}
else
{
ImageButton1.Enabled = true; ;
}
THIS IS NOT DISABLING THE IMAGEBUTTON.
|
|
|
|
|
God.
WHERE DO YOU CALL THIS CODE ? IN WHAT METHOD ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
iam having the 1 to 11 pages .
Previous and Next image buttons .
If iam in First Page PREVIOUS IMAGE BUTTON should be disable.
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
if (this.PageNumber == 1)
{
Response.Redirect("pge1.aspx");
ImageButton1.Enabled = false;
ImageButton2.Enabled = true;
}
else
{
this.PageNumber -= 1;
Response.Redirect("pge" + this.PageNumber.ToString() + ".aspx");
}
}
protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
{
if (this.PageNumber == 11)
{
//ImageButton1.Enabled = true;
//ImageButton2.Enabled = false;
//lnkNext.Enabled = false;
Response.Redirect("pge11.aspx");
}
else
{
ImageButton1.Enabled = true;
this.PageNumber += 1;
Response.Redirect("pge" + this.PageNumber.ToString() + ".aspx");
}
}
|
|
|
|
|
Oh, you're the guy from the other day. I see your code is still a disaster. You still have the same issue you had the other day. Refer to my answers from then, no point in repeating them if you're going to ignore me.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I don't know what's more depressing, that you'd sit on such a trivial problem for days ( and I assume you're just going to ask it again ), that you'd ignore the advice you're given and just stop posting when someone reminds you that you have a solution, or that someone is paying you to sit idly by because you can't work out how to solve a simple problem when you've been given a clear solution.
Do some research on what response.redirect does. Or, just think about it for a minute.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Please DON'T SHOUT!
however, how are you setting PageNumber? What is passing it around?
|
|
|
|
|
This guy has asked this and I have explained to him the many issues with his code. He's not changed any of it, I would say it's not worth talking to him, he obviously ignores people who try to help.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hi
I currently have a javascript function which is applied to a gridview:
GridView4.Attributes.Add("onkeydown", "return noCopyKey(event);");
how cann i apply this function to a whole page?
thanks
|
|
|
|
|
you can't magically do it, you need to add it to all the controls you want to use it.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I wasnt hoping for magic I was hoping there was a line of code which you could add it to page rather then just one control at a time.
|
|
|
|
|
Sure - I don't think so.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|