.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid
Post New Web Links

How to Restrict a user after perticular visits.

Posted By:      Posted Date: November 29, 2010    Points: 0   Category :ASP.Net
 

Hello,

i am a beginner, i need a code for my web app where i want to restrict a user after...let say 10 visits....on the 11 th time when the user tries to login he/she gets a error messege denying login.maybe we can use session or cookies...but i dont want to limit..it with cookies i.e if he tries  to enter after 30 days or so he is allow to login. what i raelly  want is, a user has only 10 views after that he is unauthorized to login.Hope you guys got my point.

 

Regards....

Circuit....009

 

 

 




View Complete Post


More Related Resource Links

How Restrict and Allow user to Pages of Website.

  

i have 4 pages of website

2 pages are authorized to used by USER and 2 pages are restricted for user

admin can authorized to go all 4 pages

 

i need coding for Login window from which Admin/User Login

 

 


How to log user visits

  

I wish to log the user name and which page they visited.

Is there a quick way to do that in ASP.Net ??

Thanks 


How can i restrict the user to login only from the system which he registered from the Computer.

  
Hi,I am Kartheek. ASP.Net Web developer. I got one requirement regarding security.In my website, if one user registered from a computer, we have to allow  that user to be able to access the site from that computer only. If he try to login from another system even in LAN, we have to deny the access.Please help me with this. Thanks in advance,Kartheek Challagundla.kartheekchk86@gmail.com

My Site to be mandatory when the user visits his intranet portal in SharePoint 2010

  

I have always had this in my mind,

its like i am creating an Intranet portal so i want my users who has access to intranet portal, when logs on to the site should prompt the user to mandatory complete his profile and like every 6 months should alert the user to update his profile.

this should be tricky,

looking forward for your replies

Regards,

Sanny Boy!!


Restrict user with sys admin role to execute a query

  

Hi All

 

I want to restrict  a user with sys admin server role to execute a query. or is there any possibility to drop the query before it get executed (after parsing). I know i can do this using SSMS SET NOEXEC ON | OFF in Query Analyzer.

But how can i implement this when ever sysadmin user executes a particular query.

 


Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped.

Restrict user from using right click menu on chart

  

I want to restrict certain users from using right click menu to change report type, apply filter and change measure on chart.

Is this possible?


how to restrict the user to towards forms?

  

hi,

I have created five web application forms and created users and roles(admin,user, end users) by using asp.net configuration file in the project. I applied  three different master pages to each role. Now, my dought is how can I give the permisions to user role members to access first three forms and remaining forms for end users members?


Restrict remote connection per IP/user

  

If I have a database called foo - I'd like to allow userA to connect only from the web server, but user B from anywhere (userA has read/write, userB has only read).  Other DBMS allow me to say 'UserA can connect from 192.168.1.1 only, UserB can connect from anywhere'

I am unable to find this kind of ability in SQL.  Is there any kind of clever implementation to accomplish this?

 

Thanks


restrict authenticated user is sharepoint 2010

  

Is there a way to remove 'authenticated users' from accessing the sharepoint site (period top level and subsites). I have read about modifying the web application. My understanding is that permissions is removed explicitly as opposed to dent which in turn would effect all user in AD. Is this the only way to remove access?

As a follow-up is there a way to restrict this group from being selected from people-picker by site/sub-site owners in the org to prevent accidental inclusion. I know about filtering the scope but I don't see a way to do this by groups unless filtering by OU. 

TIA


how to restrict user from droping and truncating table in sql server 2005

  

Hi

 

I have to restrict users from  droping & truncting on table's

so how i will achive it,

 

Thanks

Digambar


Help building a user control to track page visits

  

Greetings,

My intention is to give the user a flexible user control on a master page that does the following:

  1. When navigating, a child page will pass the URL (with querystring) and PageTitle to the user control
  2. The user control will take those two parameters and insert them as a "breadcrumb" object at first index of a List<breadcrumb> collection

This part works fine through the use of a Repeater with a LinkButton contained in an ItemTemplate. The user sees each of the pages he has been visiting in descending order, the provided benefit is a quick way to re-open records they have recently modified or created.

The part I'm having trouble handling is what happens when the user clicks the LinkButton, which is that the child page adds a new reference to the URL at the beginning of the List<> collection and I cannot seem to control the behavior of removing the LinkButton before it gets re-created. What I've tried doing is:

List<>.RemoveAt(RepeaterCommandEventArgs.Item.ItemIndex);
Repeater1.Controls.Clear();
Repeater1.DataSource = List<>;
Repeater1.DataBind();

While that should work, my CreateBreadCrumb(string url, string title) function gets called by the child page before the UserControl detects the Repeater1_Ite

how to restrict different user see different view of infopath (sharepoint list)

  
anyone can adivce how to set different default view for different user? it is infopath form 2010 and sp2010
I have 2 views, and when opened in sharepoint, it only shows the default view, unless click the "EDIT" button then show my buttons which has rule to switch view, I refered the following page:
http://office.microsoft.com/en-us/infopath-help/add-delete-and-switch-views-pages-in-a-form-HA101732801.aspx

MS SQL Server: Disconnect Users From Database - Kill User Session

  
If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

Choosing Between a User Control or Web Part for SharePoint

  
SharePoint will only display Web Parts on a page. However, there are publicly available shims that allow you to write user controls and have them be displayed as a Web Part. From SharePoint's point of view, the shim is a Web Part. From the point of view of the user control, the shim is simply a control in .NET that is including the user control

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

  
Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

How to track the changes of user contacts(colleagues) by using SharePoint API

  
We might have seen colleague tracker web part which keep tracks the changes made in our contacts/colleagues details like profile/lists/sites. The same tracking mechanism can be implemented by using MOSS API in any custom web part/ web control/ feature/web service...

UserProfile.GetColleagueChanges is the method which returns all changes happened with the contacts, this method also accepts a Query (UserProfileChangeQuery) where we can specify different parameters to filter the changes

Configuring User Profiles in SharePoint Server 2010

  
Note: I've added the necessary links relating to SharePoint Server 2010 prerequisites, along with instructions for configuring the user profile synchronization service, at the end of this
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend