|
Here are some ASP .NET 2.0 video tutorials--one of which shows how to create a membership (login) application: http://weblogs.asp.net/scottgu/archive/2006/02/26/439088.aspx[^]
Look for the "Membership and Roles" link.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
hi
i have problem for which i have been struggling fro last two days
i hope u can slove this
consider a scenario
1> user login using his userid and password
2> he get his required page
3> user copy the url
4> user logout
5> he paste the url
6> he is getting page without any validations
i am using formsauthetication.signout
session.abdoan
session.clear
i have written validation code on page_init event
which does not fire
when u copy and paste url
i think i am able to explain my problem
please help me its urgent
thanks
|
|
|
|
|
a very simple solution may be
1. create a session let say, user
2. when you are checking the username and password from database and if you find the record,
Assign value of userid to the session
3. On each restricted page or on the master page place this code:
if(Session["user"].ToString() == "")
{
Response.Redirect("default.aspx");
}
4. On logout assign blank to this session and remove it...
Hopefully it will solve your problem.
Suman Singh
|
|
|
|
|
I think it may help u.
write the below code in default page in pageload
Session.Remove(Session.SessionID);
FormsAuthentication.SignOut();
Context.User = null;
Response.Redirect("./.../Login.aspx");
definitely it will help u...already i checked this...
rgds,
cnr369.
|
|
|
|
|
hi
thanks for replying
i already done validation on page-init event
using session and userid
my problem is in given scenario
form_init event doesn't fire
thanks
|
|
|
|
|
Hi there
I am ready to throw my inhibitions overboard and dive into the 2.0 version of Asp.Net.
I've got VS2005 installed, along with MSSQL2005 but I keep bumping into things that are done in another way or just isn't working like it used to.
Can anyone point me to books or online tutorials that are especially built for someone like me, who is intimate with the workings of ASP.NET 1.1 - but not with 2.0...?
MODIFIED:: Hm... found this http://www.codeproject.com/aspnet/ComparisonASP1xASP20.asp[^] And that's very much what I'd like, just with more details
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
|
Hi Mike
Thanks a lot - that's a great start!
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
Hi,
I have a datalist & in that i have created a LinkButton & named its Command Name to "Modify". Its working perfect with the databinding but as i click this linkbutton ( or Bubble Event) it does nothing.
This Datalist is placed in Web User Control File(.ascx) ..
Does any one know this problem..Pls Help me
KHATRI
|
|
|
|
|
Hi dears,
I want to use Atlas Controls in my web project . but my project is an ASP.NET web site project ,not an Atlas WebSite Project. Now,when I add atlas tool kit refrences to my project an error accures means compiler can not recegnize the '< atlas:ScriptManager> ' tag! how can I fix it ?
Regards,
|
|
|
|
|
Hi All !!!
I've one image control which displays banner for a shop.
On ImageButton- 'Remove Banner', I want to remove that banner image from that image control and from server.
Waiting for answer.
Thanking You.
|
|
|
|
|
OnClick event write below code,
set ImageButton.imageUrl path either nothing or defaultimage url it's simple
Parwej Ahamad
|
|
|
|
|
Thanks for replying.
But I think you've not understood my question.
I want to delete image file which I've uploaded on server.
Just I'm using imageButton. I don't want to remove image of imageButton.
If u know pls do tell.
|
|
|
|
|
string delpath = "C:\Inetpub\wwwroot\projects\images\image1.gif"//complete physicalpath of your image
if (File.Exists(delpath))
{
File.Delete(delpath);
}
This will delete the file physically from the server...
Suman Singh
|
|
|
|
|
One more thing..
you need to use namespace System.IO;
using System.IO;
|
|
|
|
|
ok, when you are upload file to the server your should define the any specific map path and then check if exist then delete otherwise leave it.
Parwej Ahamad
|
|
|
|
|
Thank You to both of you - Suman and Parwej
|
|
|
|
|
Hello,
I would like to show a gif image like a progree bar when uploading a image,
can any one help me?
thanks in advance
Regards,
sundar
|
|
|
|
|
|
can anybody tell me what does .sln file do exactly and wht it contains ? and what is the diffrence between .csproj and .sln file ?
|
|
|
|
|
anything in .NET is a solution! a solution contains one or more projects such as web project,win project, class library project etc. if you lose .sln file you can easily make a blank solution and add your existing projects to it !
|
|
|
|
|
hello,
can anybody explain what visual studio.net actually doing while loading a solution and displaying message "Merging web server state..." in status bar ?
and exactly wht happens when vs.net opens any solution also when visual source safe is used.
regards.
max
|
|
|
|
|
hi
I want to open Excel file on my local computer .
File is located on server's drive for eg.D\Project\Test.xls
How can i open this file on clients computer in Asp.Net.
I try this Code
public Excel.Application ExcelObj = null;
string filepath = AppDomain.CurrentDomain.BaseDirectory + @"PO_Attachment/"+lstattach.SelectedValue.ToString() ;
theWorkbook= ExcelObj.Workbooks.Open(
filepath, 0, true, 5,
"", "", true, Excel.XlPlatform.xlWindows, "\t", false, false,
0, true);
Excel.Sheets sheets = theWorkbook.Worksheets;
Excel.Worksheet worksheet = (Excel.Worksheet)sheets.get_Item(1);
ExcelObj.Visible = true;
But file can't open
So plz give solution or Code for opening this file
Its Very Very Argent
So plz Help me
thanks
Vivek Deshpande
|
|
|
|
|
|
Hello...
Can someone tell me how to save and retrieve a gif/doc file to a my sql server. i need to upload resume and photograph through my form.
Nizha
|
|
|
|