so i return a variable based on the admin account but what happens to this line to redirect it to another page.
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(usrtxt.Text, False)
not sure what you mean but i use the following method
Webconfig file:
<configuration>
<system.web>
<authentication mode="Forms">
<forms loginUrl="mylogin.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
stored proceedure:
ALTER...
I have an app that i need to secure but i want to be able to redirect the main users to one page and admin users to another using sql query does anyone have any suggestions?
I had a problem with my pc last week and had to reload the os i have restored the data i am working on but when i try to open in browser i get the following error.
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration...
Like I said I'm a complete beginner so when you say the page load is this in the vb code or in the html?
and at which point to i put the <script guage="javascript"> ?
on button click the program checks the password against the sql table and returns a result of 0,1,2 or 3
' test to see if password is filled in
Dim intresult As Integer
If Not pwd.Text = "" Then
'code here will try the password against the user id...
The page is a login page the user selects is code from a drop down list that is populated by sql, He then enters a password and click the submit button if he hits the entre key it removes the password from he password box.
there are three lables, a dropdown box and a submit button on the page.
I have had a look at the threads on this site but they don't make sense to me i am a complete beginner with html and java.
What i want is when the user hits the enter button it fires the submit button click event.
here is the html code can someone please show me what code to put and where to put...
I have noticed thet i can map a drive but only by typing the full path this seems to point towards the broadcast being stopped when its searching for the computers on the network.
I am getting nowhere with this and need some expert help.
I have a small network of three computers all running windows xp pro with service pack 2 I have just bought a new laptop and despite spending hours on it i can not access my network.
The laptop connects through a wireless card to a Belkin...
I have two programs running on the same web server the loggon screen on one will allow the user to hit the enter key when the password has been typed and tis executes the button command i did not write any code for this it just seems to work.
on the second program it does not work at all how can...
I am trying to get the data from a sql table in to an Excel template using the copyfromrecordset method.
The data goes into the Excel sheet but I want to display it vertically not horizontally, a friend has helped me so far but I can not make it work the data goes into the first range but does...
I do not know how to look at each cell as i have never done this before and cannot find any book examples, the datagrid is loaded with the page load event using the code below.
sqlconnection1.open()
sqldataadapter1.fill(ds1)
sqlconnection1.close()
DataGrid1.DataSource = ds1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.