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>

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)

hi i solved it its easy
label then user.identity.name

Would you please post your solution code here? I am having the same problem right now.

Thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.