|
Hi all,
I am novice to ASP.NET. I am studying ASP.NET(coding in VB.NET) using .NET 2003 version with SQL SERVER 2000
I am working on Login Authentication. I am supposed to maintain Users account with login session for every user, i.e. I need to take care of session started after logging in till the user logout from his account.
How to create and maintain session in ASP.NET ?
I would appreciate if anyone could sort out this difficulty.
Thank you.
Prodigy.
P.S - I am aorking on ASP.NET 2003 using VB.Net and SQL Server 2000
|
|
|
|
|
Session("userName") = assign your user name
by this way you can maintain the username untill your session get expire.
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
In Login page Assign values to Session Varaible such as Seesion["UserName"]="Some Value" ok now check this session in every page load
if it is null then redirect it to login page
so that if user log out and click back button he should able to access anything
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
HI all,
I am using password recovery control of ASP.Net 2.0 and i want to customize the email received from the control, Can came body suggest me how to do that..
Thanks
Regards
|
|
|
|
|
how can i connect database using web.config in .net 2005
|
|
|
|
|
Inside the <Configuration> tag, make a new tag called <ConnectionStrings>.
Within that, make one like this:
<add name="(name)" connectionString="(connectionString)" providerName="(providerName)" />
Of course, you'd want to put in your actual name, connectionString, and providerName, rather than the parenthesized example above.
For example:
<configuration>
<appSettings/>
<connectionStrings>
<add name="DatabaseConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
|
|
|
|
|
please make clear the data source.. i am using sql server 2000..
thks
|
|
|
|
|
These things you can easily find on GOOGLE Remember If you want to absorb new concept you should explore it on GOOGLE first then if found any issue or didn't understand then you can ask those things in such forums. That its mean.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Might there by chance be a method to detect the width of the browser (or even the screen resolution) with ASP.NET?
I tried HttpCapabilitiesBase.ScreenWidthPixels, but I get NullReferenceException when I run it.
I'll use javascript if I have to, but I'd prefer to stick with the ASP.NET.
Thanks ahead of time.
|
|
|
|
|
I found a way to detect screen resolution, but I'd still appreciate a method to detect browser width.
|
|
|
|
|
|
hello frnds,
i want to Upload a file to server, what i want to do is currently i am working on client port and i select a file by input file control and when clicking on Upload the file should be uploaded to the specified path but without the shareing the specified path folder
please..help
thankx a lot in advance
-koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Try this may this help you......
Tell me if this is helpful to you or require somethind clarification......
-Rajesh Jain
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;
using System.IO;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected string UploadButton1_UploadClick(object sender, WebControls.UploadButtonEventArgs e)
{
return Path.GetFileName(e.FileUploadControl.PostedFile.FileName);
/*do database storage of file here...*/
}
}
Rajesh Jain
|
|
|
|
|
You have FileUpload control availabel in ASP.NET 2.0
Use that control for storing the file at the server side
How to use that control get help from GOOGLE
i don't think the post is usefull for to rate it
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi, i have a table in access databse call "code Table" in this table there is only 2 columns, 1 is code number the name. Eg C1 is the code cumber, Horror is the name. other than C1 still have R1, M1. How am i goin to put the different C1, R1 and M1's name in the dropdownlist. am i suppose to select all C1 from code number column? How am i goin to select all code number starting with "C"? N when the user select the name i need to add the code number into the movie table. Please Advice. thanks
-- modified at 4:24 Friday 22nd June, 2007
|
|
|
|
|
user 'like' statement in your qurey. It will select all the value matching specified in like statement "select * from codetable where codenumber like "c%"
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Thanks a lot. I manage to get it.
|
|
|
|
|
hi. Now i manage to put the codename into the dropdown list. Eg when the user select "VHS" from the dropdown list n when the user press the submit button i only want to add the codenumber which is "M3" into the access database. How am i goin to do that? Do i have to use sql statment or others? Please advice. thanks
|
|
|
|
|
I want to read GPRS data through http in ASP.Net, how can I read these GPRS data comming to my IP let say http://202.67.54.228/readdata.aspx...
I have to read it in readdata.aspx page...
|
|
|
|
|
i am storing cookie object in my project. it is stored in cookies folder in system. it is stored with nam "test@localhost[1].txt". this is not understandable. actually i want to give some meaningful name to it. what to do for that?
|
|
|
|
|
Add the cookie manually
HttpCookie cookie = new HttpCookie("cookie1");//Sets the name of the cookie as "cookie1"
Page.Response.Cookies.Add(cookie);
Hope itll work fine for you...
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
i have an excel file at the server, if i press save button i need to save that file in my local system. how to do it? plz help me...
Pradeep Reddy
|
|
|
|
|
Give a url that will take to the Excel sheet open the Excel sheet in the IE When
a Pop up window will come if you save it will ask you path which is local save it there
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hello to Every one,
There are two panel each containing a text box and and a button.
Panel1 including textbox1 and button1 & Panel2 including textbox2 and button2.
Now i want that after page_load if i select the textbox1 then entire panel2 should not be visible or vice-versa...
Can this is possible without using javascript as i donn't know it...
If not,could you give me The entire code in javascript for doing the above..
Suggest me....
Thank you.
|
|
|
|
|
Don't Repost.
Regards,
Satips.
|
|
|
|