hello i have screen resolution of 1024x768 n when anyone open my website how i can dipsplay message like :
"Use resolution of 1024x768 for this website"
Thanx
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Nov 17, 2009, 6:54 AM
Just Warn User 1 time :) using below code
Code Will Give Message just One time Then it will not Irritate user again :)
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Resolution_Warn"] == null)
{
ClientScript.RegisterClientScriptBlock(this.GetType(),"","");
Session["Resolution_Warn"] = 1;
}
}
Dipa AhujaPosted Nov 17, 2009, 11:39 AM
I marked your answer
keshav singhPosted Nov 17, 2009, 5:29 AM
http://www.beansoftware.com/ASP.NET-FAQ/Status-Bar-ASP.NET.aspx
http://beta.codeproject.com/KB/scripting/jsstatus.aspx
if this Helps you ,please mark it as Accepted
Gautam BaruahPosted Nov 17, 2009, 4:50 AM
Write this javascript function in script block and then call this function in body onload like,
or you can perform this task on hyperlink also,like
Check your screen resolution
Plz let me know if I am able to give you the correct solution.