i have 4 pages of website 2 pages are authorized to used by USER and 2 pages are restricted for useradmin can authorized to go all 4 pagesi need coding for Login window from which Admin/User Login
I need to restrict access to my website by physical PC. When a user signs up I want to be able to restrict access to one machine for that account so it cannot be shared round, if, for example, somebody else in the same office wanted to access the system on their PC they would need a seperate sign in.
I have done some investigation and I "think" the only way is installing an ActiveX component (which isn't an issue that is restricts to IE only) and then read the users MAC address. Am I trying to over complicate things or is that the only way? I realise that MACS can be spoofed but this is not much of an issue.
I have a default.aspx page, it contains a checkboxlist and button (Button1). There are other items too but not significant for this question.
The user selects an item in the checkbox list. Based on which item is selected, in my button click code, I take the user to another page (Page2, for example). In that page I have TextBoxes, where user fills some numeric values. On this page (Page2) I have another button (Button2). In the Button2 Click code, I want to use logic, where I need to know what was checked in my checkboxlist in previous page. How can I do that. I get the error
Error 17 The name 'CheckBoxList1' does not exist in the current context
On default page Button click I have like this..
[Code].....
1. How can I recall what was checked in default page checkboxlist?
2. Secondlay, the values user enters in this page (page2) in TextBoxs, I would need to use them in later pages, how can I use them in later pages. TextBoxs have unique IDs.
Dim sWindowUser As String = ""sWindowUser = ExtractPureUsername(WindowsIdentity.GetCurrent().Name) and sWindowUser = ExtractPureUsername(HttpContext.Current.Request.ServerVariables("AUTH_USER"))
It ran properly in my development environment and I deployed it onto my 2008 server. The web site keep promoting me for user windows username and password. I entered my username & password but the site keep prompting me over and over again.
developed an application in Asp.net. It is a receipting system. I have deployed the system in a company which runs with various networks. The company uses VPN, LAN and so many. When I deployed the system they complain the speed is very slow when accessing through network. Specially in the receipt page where i have used Update Panels and AJAX Comboboxes, they complain that it takes time to load the combo boxes. Also they say that when the selected index is changed in the combo box, it takes time to post the data in the other relevant controls.
How to get that how many pages accesses by a user in a website.
Actually, rather then putting code in each page I want some generalized method/technique that if user Logged to a website and during his Login period what was his activity and which page(s) he accesed.
Note:
1. My website pages are under MasterPage. 2. MasterPage has a MasterMenu. 3. For singlePage activity I used Page.GetType.Name
I have a security issue in my web application where user can enter malicious data/can change the page path directory. To avoid these i want to restrict the user by accessing/typing in the URL.
I want user to enter name in Arabic if the user enter in english it should give Message " Enter Message In Arabic " and same for English if user try to enter in arabic it should give a message "Enter Name in English" ...
how to restrict the other user if one works on the particular record.
i am having a table with the name tblProduct and i used to edit the records from the code behind using my website.
When one user login into the site and search for the particular products and edits the product and at the same time other user log in and try to edit the same product, i need to show the alert message, "the user (username) is already working on this. please wait for a while."
How can i prevent users from getting the list of files that exist in my website?
For example when users type on the address bar the WebsiteAddress+/DirectoryToSearch/ they get the list of files in that directory, without getting any permission denied error
Is there any setting in asp.net that am i missing?
in my asp.net+vb web page which is use din INTRANET web . In a page i want to restrict the browsing for four peoples only, so that i used a code like below.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ipaddress As String ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If ipaddress = "" OrElse ipaddress Is Nothing Then ipaddress = Request.ServerVariables("REMOTE_ADDR") End If iptxt.Text = (ipaddress) If iptxt.Text = ("192.168.0.3") Then Response.Redirect("err.aspx") End If end sub
in my asp.net+vb web page which is use din INTRANET web . In a page i want to restrict the browsing for four peoples only, so that i used a code like below.
ProtectedSubPage_Load(ByVal sender AsObject,ByVal e AsSystem.EventArgs)HandlesMe.LoadDim ipaddress AsString ipaddress =Request.ServerVariables("HTTP_X_FORWARDED_FOR")If ipaddress =""OrElse ipaddress IsNothingThen ipaddress =Request.ServerVariables("REMOTE_ADDR")EndIf iptxt.Text=(ipaddress) If iptxt.Text=("192.168.0.3")ThenResponse.Redirect("err.aspx")EndIf
I have read your article from aspsnippets.com about custom paging it really work, but there are a problem that if there are more record in database (2000 to 5000) than number of page index will be goes in large number. like 1 to 200, any way which can divide it like 12345678910...2000.
Just to avoid misuse of website i have to make it specific for certain region. Like people could view menu across the world and only the people of mumbai can order online. I want a submit button that would be visible to only mumbai people.
How to restrict user to select not more than 10 asp.net checkboxes on button click event , if user select more than 10 checkboxes then alert box will pop up that you can not select more than 10 checkboxes?
I'm displaying a set of school names in a datalist... A user logins and see the list of school names where he can give rating for each school....Now the question is how can restrict the user to give rating only once for each particular school...(i' hav used ajax rating control..)..
If a user use back button of a browser and make any change on that webform then how can i restrict him to do so.I my case its a quiz and i don't wanna allow user to change his answer