|
More site info...
|
|
Forum profile page for Security on http://www.asp.net.
This report page is the aggregated overview from a single forum: Security, located on the Message Board at http://www.asp.net.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "Security" on the Message Board at http://www.asp.net is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on Security:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
178
|
457
|
1,243
|
|
Post:
|
380
|
999
|
2,817
|
|
|
Security Posting activity graph:
|
Top authors during last week:
user's latest post:
membership roles
Published (2009-11-30 13:03:24)
we need more info on exactly what is happening. Also, your login code and web.config details will be helpful.
user's latest post:
Reading .csv files in a network...
Published (2009-11-30 14:13:02)
To be honest I don't know without testing some code out. Different browsers handle the upload control differently and you can get different levels of information out of them. Some browsers you can get the full client path and others you can't. If you could rely on the client path being populated you could figure out what they had selected on your file server. To be honest if there is a central file server then you should forget...
user's latest post:
Creating new users - failing...
Published (2009-11-30 03:16:18)
Hi grunners, If we want to avoid collecting some values to our membership, we can create a custom membership provider. We can learn about it from the link below. Building Custom Providers for ASP.NET 2.0 Membership http://msdn.microsoft.com/en-us/library/aa479048.aspx Membership . CreateUser Method (String, String) http://msdn.microsoft.com/en-us/library/d8t4h2es.aspx
user's latest post:
Windows Authentication with...
Published (2009-11-24 09:43:00)
<?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration>...
user's latest post:
ASP.NET web application setting...
Published (2009-11-30 07:10:23)
Hi, I think you're referring to Roles . To learn more about that take a look at these tutorials: http://www.google.nl/search?hl=nl&source=hp&q=site%3Awww.asp.net%2Flearn+roles&meta=&aq=f&oq =. Grz, Kris.
user's latest post:
error "The RSA key...
Published (2009-11-25 16:57:00)
Unbelievable!! I have figured out the solution and I'm wondering if a bunch of the people experiencing this are actually having the same problem. I was copying and pasting the command in from a website/Word doc and dangit if the same exact command doesn't work just fine when typed out by hand.... It's nuts because I made sure that there wasn't any line feeds or anything, I even retyped the container...
user's latest post:
LoginView never displays the...
Published (2009-11-28 13:25:20)
Ehh, that I don't know how to do :o Lemme upload the full source to sendspace: http://www.sendspace.com/file/9swqdt
user's latest post:
Logging user depending upon rights
Published (2009-11-30 07:41:46)
use this code like this.. protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { Boolean blnAuthenticate; LabelMsg.Text = ""; blnAuthenticate = Membership.ValidateUser(Login1.UserName, Login1.Password); if (blnAuthenticate) { string[] role = Roles.GetRolesForUser(Login1.UserName); string getRole = role[0].ToString(); Session["role"] = getRole.ToString(); if (getRole ==...
user's latest post:
Logging user depending upon rights
Published (2009-11-30 05:08:46)
hi, i dont understand this part where to add this.. string [] role = Roles.GetRolesForUser(Login1.UserName); string getRole = role[0].ToString(); Session[...
|
|
|
|
Latest active threads on Security::
Started 4 days, 20 hours ago (2009-11-29 12:54:00)
by guru_sarkar
Where are you storing your FirstName ? Is it in the same table shown in the link your provided?
Here is sample how you can do it:
On masterpage Load : //Check if user is logged in
if(!String.IsNullOrEmpty(HttpContext.Current .User.Identity.Name))
{
//Get current membership user object
MembershipUser usr = Membership.GetUser();
if(usr!=null)
{
//Get the Userid
...
Started 4 days, 2 hours ago (2009-11-30 07:10:23)
by XIII
Hi,
I think you're referring to Roles . To learn more about that take a look at these tutorials: http://www.google.nl/search?hl=nl&source=hp&q=site %3Awww.asp.net%2Flearn+roles&meta=&aq=f&oq =.
Grz, Kris.
Started 3 days, 20 hours ago (2009-11-30 13:03:24)
by guru_sarkar
we need more info on exactly what is happening. Also, your login code and web.config details will be helpful.
Started 2 weeks ago (2009-11-19 17:34:26)
by SureshMali
Hi Hawkhill,
The logic to get this done is, when the user submits the form insert the data in the database, also modify the table which stores user details such that you have an additional field and name it for eg: AccountStatus, data type boolean.
Now when the data is updated by default the value of AccountStatus would be False. Now after the data is inserted into the table send an email...
Started 8 months, 1 week ago (2009-03-27 15:19:00)
by rtpHarry
Hi it sounds like it might not be the second page having problems. It could be the login control attempting to connect to the database and failing. Do you have a section like this in your web.config that tells the SqlMembership provider which connectionstring to use? <membership defaultProvider="SQLProvider">
< providers >
< add connectionStringName= "SQLConnection" applicationName=...
Started 1 month, 2 weeks ago (2009-10-15 11:35:56)
by DeadBurger
User.Identity.Name gets the name. Getting other information from a windows user is a bit more complicated, here is an article about that: http://www.wwwcoder.com/main/parentid/272/site/169 4/68/default.aspx
Started 3 days, 16 hours ago (2009-11-30 17:21:30)
by kwanann
nope, the certificate error just tells you that the cert and the url does not match, everything else works as per normal.
Started 3 days, 16 hours ago (2009-11-30 16:37:00)
by hans_v
You'll need to set the correct properties in web.config.
Generate a machine key using this online tool and place it in your web.config (if you don't, users are logged out when the application recycles, especially in a shared hosting environment). And then set the properties as below:
< forms loginUrl = " Login.aspx " protection = " All " timeout = " 60000 " ...
Started 1 week, 3 days ago (2009-11-23 13:39:00)
by rtpHarry
If you use the WAT does it let you create new users? WAT = Website Administration Tool http://www. google.co.uk/search?q=asp.net+using+WAT
|
|
Hot threads for last week on Security::
Started 6 days ago (2009-11-28 09:14:20)
by XIII
Hi, can you give the markup of your loginview control? Does the loginname control provide you with the logged in person id? What's the value of User.Identity.Name in your page? (try debugging your page_Load event and type it in in the Immediate window prefixed with a ? character. Grz, Kris.
Started 1 week, 1 day ago (2009-11-25 10:27:00)
by masoomnazir
Surely you should be able to use .mdf file as by default Asp.net authentication uses sqlexpress database.At the same time you can also use sql server for your authentication.You can go through the following article to know how to do it. http://msdn.microsoft.com/en-us/library/ms998317.a spx Answer would have been more helpful had you posted the error message you get with your login....
Started 1 week ago (2009-11-26 09:56:00)
by linick
Yes. You can disable role manager from web.config. <roleManager enabled="false"> </roleManager>
Started 4 days, 20 hours ago (2009-11-29 12:54:00)
by guru_sarkar
Where are you storing your FirstName ? Is it in the same table shown in the link your provided?
Here is sample how you can do it:
On masterpage Load : //Check if user is logged in
if(!String.IsNullOrEmpty(HttpContext.Current .User.Identity.Name))
{
//Get current membership user object
MembershipUser usr = Membership.GetUser();
if(usr!=null)
{
//Get the Userid
...
Started 1 week, 1 day ago (2009-11-26 00:03:46)
by qwe123kids
Hi, if ur talking about disabling useraccount... try { DirectoryEntry user = new DirectoryEntry(userDn); int val = (int)user.Properties["userAccountControl"].Value; user.Properties["userAccountControl"].Value = val | 0x2; //ADS_UF_ACCOUNTDISABLE; user.CommitChanges(); user.Close(); } catch (System.DirectoryServices....
Started 1 week, 1 day ago (2009-11-25 11:10:00)
by dangerouschotu
when you are logging the user add the user id in session like Session["uid"]=uid; and when you want to load user data in the sql query you must pass UID in where clause. if you want to see other details just like create hyperlink and redirect to some page like userprofile.aspx?uid=user1 user1 is the id of the user that you want to see. if an helps tell me
Started 6 days, 3 hours ago (2009-11-28 05:25:29)
by sukumarraju
suj69: at2 LinqDataContext db = new at2LINQDataContext();
Hello
Are you using Linq to SQL?
Note that when you configure Membership provider, your web.config contains Membership section and reads connectionstring from connectionStrings section. It requires that connectionString name is specified in Membership section.
The methods you are using Membership.GetUser(...
Started 4 days, 9 hours ago (2009-11-29 23:54:00)
by bloggernext
use this in web.config to set the regular expression for password restrictions: <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow = "20> <providers> <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SqlServices" requiresQuestionAndAnswer="true" passwordStrengthRegularExpression=" @\"(?=.{6...
Started 1 week, 2 days ago (2009-11-24 22:18:00)
by shanmugamm
What do u want to do this code?
Started 1 week, 1 day ago (2009-11-26 02:13:15)
by qwe123kids
Hi, U may Try To create Httphanlder and proces the request based on the extesnsion offile.. http://www.c-sharpcorner.com/UploadFile/shivprasad k/1234612222008053711AM/12346.aspx and then cross check from your database is user have rights to the images
|
|