How to dispay message in asp.net with C#.net without usuing java script ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kunal30doshi
    New Member
    • Nov 2006
    • 5

    How to dispay message in asp.net with C#.net without usuing java script ?

    hi,

    i want to display error message in asp.net + C# application without using java script.
  • aswa_thaman
    New Member
    • Aug 2006
    • 1

    #2
    Originally posted by kunal30doshi
    hi,

    i want to display error message in asp.net + C# application without using java script.

    if ((drawinginfolo gin_username_tx t.Text==uid1) && (drawinginfolog in_password_txt .Text==pwd1) && drawinginfosoft ware_privilegen ame_ddl.Selecte dItem.Text==pri 1)
    {
    Session["privname"] = pri1;
    Response.Redire ct("privilege.a spx");
    //Server.Transfer (pri1);
    }

    dr.Close();
    con.Close();
    }


    catch(Exception e1)
    {
    //Response.Write( "err");
    string s1="<Script language=javasc ript>alert('Log in Failed Please Try Again');</Script>";
    Page.RegisterCl ientScriptBlock ("s",s1);
    }

    Comment

    Working...