Click here to Skip to main content
15,905,566 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to add node one to another tree view on click of bottom? Pin
Piyush Vardhan Singh16-Feb-09 1:10
Piyush Vardhan Singh16-Feb-09 1:10 
GeneralRe: How to add node one to another tree view on click of bottom? Pin
Gaurav K Singh16-Feb-09 1:45
Gaurav K Singh16-Feb-09 1:45 
QuestionHow no to direct to a page aftr logging out ? Pin
Subin Alex15-Feb-09 23:47
Subin Alex15-Feb-09 23:47 
AnswerRe: How no to direct to a page aftr logging out ? Pin
rakeshs31215-Feb-09 23:50
rakeshs31215-Feb-09 23:50 
GeneralRe: How no to direct to a page aftr logging out ? Pin
Karthick_gc16-Feb-09 0:36
Karthick_gc16-Feb-09 0:36 
GeneralRe: How no to direct to a page aftr logging out ? Pin
rakeshs31216-Feb-09 1:18
rakeshs31216-Feb-09 1:18 
GeneralRe: How no to direct to a page aftr logging out ? Pin
Karthick_gc16-Feb-09 1:23
Karthick_gc16-Feb-09 1:23 
GeneralRe: How no to direct to a page aftr logging out ? Pin
rakeshs31216-Feb-09 1:35
rakeshs31216-Feb-09 1:35 
try this eg:

username and password is admin

Default.aspx
]]>





<title>Untitled Page




<asp:textbox id="TextBox1" runat="server" style="z-index: 100; left: 453px; position: absolute;<br mode=" hold=" /> top: 93px" xmlns:asp="#unknown">
<asp:textbox id="TextBox2" runat="server" style="z-index: 101; left: 462px; position: absolute;<br mode=" hold=" /> top: 158px" textmode="Password" xmlns:asp="#unknown">
<asp:button id="Button1" runat="server" onclick="Button1_Click" style="z-index: 102;<br mode=" hold=" /> left: 514px; position: absolute; top: 250px" text="Button" xmlns:asp="#unknown">
<asp:label id="Label1" runat="server" style="z-index: 104; left: 323px; position: absolute;<br mode=" hold=" /> top: 97px" text="Enter the username" xmlns:asp="#unknown">
<asp:label id="Label2" runat="server" style="z-index: 104; left: 327px; position: absolute;<br mode=" hold=" /> top: 158px" text=" Enter the password" xmlns:asp="#unknown">








Default2.aspx


]]>





<title>Untitled Page




<asp:label id="Label1" runat="server" font-bold="True" font-size="XX-Large" forecolor="Red" xmlns:asp="#unknown">
Height="86px" Style="z-index: 100; left: 239px; position: absolute; top: 26px"
Text="Welcome" Width="295px">
<asp:linkbutton id="LinkButton1" runat="server" onclick="LinkButton1_Click" style="z-index: 102;<br mode=" hold=" /> left: 637px; position: absolute; top: 26px" xmlns:asp="#unknown">Logout






Default.aspx.cs

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
TextBox1.Focus();
}
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "admin" && TextBox2.Text == "admin")
{
Server.Transfer("Default2.aspx");
}
else
{
Response.Write("Wrong username or password");
}
}
}


Default2.aspx.cs

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();

}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Session.Abandon();
Server.Transfer("Default.aspx");
}
}
GeneralRe: How no to direct to a page aftr logging out ? Pin
Karthick_gc16-Feb-09 1:41
Karthick_gc16-Feb-09 1:41 
QuestionFrame? Pin
Karthick_gc15-Feb-09 23:28
Karthick_gc15-Feb-09 23:28 
AnswerRe: Frame? Pin
Gaurav K Singh16-Feb-09 0:48
Gaurav K Singh16-Feb-09 0:48 
QuestionXML navigation Pin
Member 398136615-Feb-09 23:15
Member 398136615-Feb-09 23:15 
AnswerRe: XML navigation Pin
SeMartens16-Feb-09 2:42
SeMartens16-Feb-09 2:42 
Questionscroll posititon for div but different problem (timer is there) Pin
rahul_miche15-Feb-09 23:01
rahul_miche15-Feb-09 23:01 
AnswerRe: scroll posititon for div but different problem (timer is there) Pin
Gaurav K Singh16-Feb-09 3:28
Gaurav K Singh16-Feb-09 3:28 
GeneralRe: scroll posititon for div but different problem (timer is there) Pin
rahul_miche16-Feb-09 23:18
rahul_miche16-Feb-09 23:18 
GeneralRe: scroll posititon for div but different problem (timer is there) Pin
Gaurav K Singh16-Feb-09 23:23
Gaurav K Singh16-Feb-09 23:23 
GeneralRe: scroll posititon for div but different problem (timer is there) Pin
rahul_miche16-Feb-09 23:42
rahul_miche16-Feb-09 23:42 
GeneralRe: scroll posititon for div but different problem (timer is there) Pin
rahul_miche17-Feb-09 0:10
rahul_miche17-Feb-09 0:10 
QuestionUpdate the table based on selected gridview row Pin
Shanthi Diana15-Feb-09 22:40
Shanthi Diana15-Feb-09 22:40 
AnswerRe: Update the table based on selected gridview row Pin
keyur satyadev15-Feb-09 23:16
keyur satyadev15-Feb-09 23:16 
QuestionHow to access the contain of master page in our cs file? Pin
keyur satyadev15-Feb-09 22:29
keyur satyadev15-Feb-09 22:29 
AnswerRe: How to access the contain of master page in our cs file? Pin
butchzn15-Feb-09 22:51
butchzn15-Feb-09 22:51 
GeneralRe: How to access the contain of master page in our cs file? Pin
keyur satyadev15-Feb-09 23:17
keyur satyadev15-Feb-09 23:17 
GeneralRe: How to access the contain of master page in our cs file? Pin
raju melveetilpurayil16-Feb-09 0:32
professionalraju melveetilpurayil16-Feb-09 0:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.