Jump to content
Xtreme .Net Talk

justin

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by justin

  1. Try with this: <asp:button id=Cancel runat="server" Text="Cancel" ></asp:button> ___________________________________________________ /* Sorry, but I am not familiar with VB */ if (IsPostBack) { &nbsp&nbspbool clicked = false; &nbsp&nbspstring BtnValue = Request.QueryString["Cancel"]; &nbsp&nbspif (BtnValue != null) &nbsp&nbsp{ &nbsp&nbsp&nbsp&nbspif (BtnValue == "Cancel") &nbsp&nbsp&nbsp&nbsp&nbsp&nbspclicked = true; &nbsp&nbsp} &nbsp&nbspif (clicked == false) /* not clicked */ &nbsp&nbsp&nbsp&nbspResponse.Redirect("Login.aspx"); } ___________________________________________________
  2. Please send me a code sample.
  3. You have to write an onclick event handler for every button you have. In design mode, just right click on the buton and choose properties, events, onclick. Be sure your button is an web control.
  4. Time to time, my site becomes enable to access SQL Server.Anyway, SQL server runs properly, the aplication is shown to be running by IS, and just restarting the IS seems to be the only way to bring my site up again. I reinstaled .NET Framework 1.1, but no results.
×
×
  • Create New...