0

hi i made a login page and created some user. now i like to make a sql queries with that user name. suppose username joe so he enter joe as a user name then login page sent to another page where sql qeries will be execute for that user: joe

so just wondeing how do i pass that username and make query with that. thanks


here is my login page :

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:Login ID="Login1" runat="server" DestinationPageUrl="~/test.aspx"
Height="132px" Width="227px" >
</asp:Login>

</div>
</form>
</body>
</html>

3
Contributors
3
Replies
6
Views
8 Years
Discussion Span
Last Post by lucyoop
0

you can send one page information to another page
use this
(property )(DestinationPageUrl)nevigateurl?name=value & name1=value1.......
and extract that information on that page by saying


request.queryString("name/name1(or whatever name you have given)")

this is possible with control for which we can set nevigateurl property
ex.hyperlink control,response.redirect (used to send control from one page to another)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.