Login    Forum    Search    FAQ   Blog

Board index » Server Side Development » Dotnet




 Page 1 of 1 [ 3 posts ] 



Author Message
 Post subject: Help need is unable 2 access a non- static mem d an out
 Post Posted: Tue Oct 20, 2009 12:02 pm 
Offline

Joined: Sat Feb 21, 2009 12:31 pm
Posts: 67
Hi I was building a multi user site 4 reportin the issues. I was usin the Session 2
givin da User Name 2 da page aftr da log n the however i keep gettin dis error,
hep is needed badly


Code:


<%
@ 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">




public partial class AddQuery : System.Web.UI.Page

{





{



username1 = UserNameLab.Text;

}



{

}

}
String username1; protected void Page_Load(object sender, EventArgs e)string username = Session["UserName"].ToString();protected void SubmitButton_Click(object sender, EventArgs e)

</

<

<
script>html xmlns="http://www.w3.org/1999/xhtml">head runat="server">



</

<
<title>Untitled Page</title>head>body>


<form id="form1" runat="server">


<div>



User Name:
<asp:Label ID="UserNameLab" runat="server" Text=""></asp:Label>




<br />



Subject:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;




<asp:TextBox ID="SubjectTextBox" runat="server" Width="300px"></asp:TextBox>




<br />



Description:




<asp:TextBox ID="DescriptionTextBox" runat="server" Height="400px" Width="300px"></asp:TextBox>




<br />



<%






--<asp:Button ID="SubmitButton" runat="server" Text="Submit" onclick="SubmitButton_Click" />--%></div>



</

</
</form>body>html>


Top 
 Post subject: Re: Help need is unable 2 access a non- static mem d an out
 Post Posted: Tue Oct 20, 2009 12:02 pm 
Offline

Joined: Sat Feb 21, 2009 11:06 am
Posts: 1794
Ur code was not readable. Use da code insert buttn (the {} icon) 2 paste ur
code. Also, wat line was da error occuring on, nd can u show da error?


Top 
 Post subject: Re: Help need is unable 2 access a non- static mem d an out
 Post Posted: Tue Oct 20, 2009 12:02 pm 
Offline

Joined: Sat Feb 21, 2009 12:31 pm
Posts: 67
thanks


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 3 posts ] 




Board index » Server Side Development » Dotnet


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron