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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Nov 17, 2009, 1:54 AM EST
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;
}
}
Gautam Baruah16 reputationPosted Nov 16, 2009, 11:50 PM EST
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.
keshav singhRank #3,113 · 460 reputationPosted Nov 17, 2009, 12:29 AM EST
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
Dipa AhujaRank #1,168 · 1.5K reputationPosted Nov 17, 2009, 6:39 AM EST
I marked your answer