Transfer Login Value To Other Page But Want To Display The Employee Name?

Nov 23, 2011

I am creating login pages using asp.net with code behind in vb.net, I am newbie:D. My problem is how to pass the login name to another page. First, whenever I login it will identify if it is an administrator shown in a msgbox. The user requirement is that the employee name is displayed as login not the username. Here is my code..

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cmd1 As New SqlCommand

[code]......

View 1 Replies


ADVERTISEMENT

Asp.net - Transfer Login Value To Another Page?

Nov 14, 2011

I am a newbie in using asp.net with code behind of vb.net I just wanna know on how to see the name of the admin on the POS page. it seems that this code doesn't work?

Main.lbl_name.Text = CurName.ToUpper
POS.lbl_cashier.Text = CurName.ToUpper

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim cmd1 As New SqlCommand
Dim rdr As SqlDataReader
cmd1.Connection = cn
cmd1.Connection.Open()

[code]....

View 3 Replies

Forms :: Enter Login Details Login Page Just Refreshes Itself And Login Wasn't Proceed?

Dec 13, 2010

I had a problem with WebBrowser component. Basically, it works improperly when try to log in on one web-site (Forex Trading Social Network | Online Forex Trading Forum and Social Networking Site). I am working with Visual Studio 2010 Professional. I created a simple WebBrowser trying to access the indicated web-site. The problem begins. Well, the website loads, but when you go to the login page (Forex Trading Social Network | Online Forex Trading Forum and Social Networking Site) and try to log in, it doesn't work. I mean, when I enter the login details the login page just refreshes itself and the login wasn't proceed. The same login page appear with every login attempt. The is the current problem!I check with Google, it works. But, it doesn't work with Forex Trading Social Network | Online Forex Trading Forum and Social Networking Site! Why?

View 14 Replies

DataGridView Saving - Set Employee ID In The Related Table In The Grid to The Value From The Employee Record?

Sep 15, 2009

I have a VB project with a form where user adds/modifies the data, data are stored in SQL. On the form there are 2 tables that are linked by employee ID. When I test the process and insert a new employee record and add new comment for this new employee in DataGridView - when I save it I get an error that "Object reference is not set to an instance of an object". During more detailed debug it says that CurrentCell is set to Nothing - even that I do have values in all fields.I do set employee ID in the related table in the Grid to the value from the employee record - so all primary keys do have value and the comment is saved after all but I get an error and saved comment dissapears from the screen right after saving. When I pull the same new record again - everything is saved. What am I missing and how to avoid the error and dissapearing of the saved comment?

Also - I tried to save the new employee data in the first table first and then add comments - it didn't solve the problem. But if I add first part of information in the main table, save and close the form, then go back and add comment - it works fine. The problem is - it's not convenient for the user - they'd like to enter everything at once.

Private Sub TblCommentsBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblCommentsBindingNavigatorSaveItem.Click
Me.Validate()[code]....

View 6 Replies

PayRoll Calculator On Vb - Program That Accepts Input Of Employee Name, Employee Type, And Number Of Hours Worked

Sep 30, 2009

You need to design and create a program that accepts input of employee name, employee type, and the number of hours worked each week for two weeks.

You must be able to select an employee type. An employee of type Trainee makes $10 per hour. An employee of type Regular makes $15 per hour. An employee of type Manager makes $20 per hour.

The program should calculate the employee pay for the week. The employee should receive 1 times the regular pay for any hours worked over the prescribed 40 hours in a week. The program should output the following information:

-The employees name without trailing or leading spaces

-Regular hours worked

-Regular pay

-Overtime hours worked

-Overtime pay

-Total pay

The Problem that i am having right now is "Displaying " the overtime hours on my "FORM VIEW" i mean i did the math right its just when i type (lblOverHrs.Text = CDec(CDec(OvrHrsWrkWeek1.Text) + CDec(txtOvrHrsWrkWeek2.Text))

Its says the "OvrHrsWrkWeek1 and 2" are not Declared which are..im not really sure where i went wrong..

Heres my code

CODE:

View 4 Replies

Display Data Fro Employee Table To DataGridView?

Jan 6, 2010

I'm want to display data fro employee table to DataGridView and i intiate DataGridView and make column BloodType as code bellow

[Code]...

View 3 Replies

Login Landing Page That Subsequently Passes Username/pw To Other Login Pages?

Dec 28, 2011

It is simply a "Y" in the road. If they are Company A, then I want to send the username and password over to that website and log them in as if they typed it in there. If they are Company B, then the same thing but with a different website. I do not know the term for this, so the google results are not very pretty.I can not do this with a query string (not that I'd want to anyway) as I do not want the username/pw to be visible.Here is the other weird thing. This can be done via a simple HTML <FORM> and Submit button as I have tested it. But I want to do it all in VB.NET code. How is it that it is possible with some simple HTML but not possible in VB.NET? I guess it could be a security thing, right? What do the good guys like us do when we legitimately just want our employees to go to one login page, enter their username/pw, and then (based on their username) send them to either pageA.aspx or PageB.aspx which receives their username/pw that they only entered once before on the first page?

View 1 Replies

VB Login Page - Allows Individual To View The Next Page And Doesn't Throw The Error

May 17, 2012

So i've been working on a page for a project where the person logs into a login page and then can see a list from the database of employees. everything is working except for one problem. If someone puts in a username and password, username= a and password=b, for example it still allows that individual to view the next page and doesn't throw the error that i have enbedded on the login page to say sorry you have the incorrect password/username. The working code that i have so far is below:

[Code]...

View 3 Replies

Asp.net - Transfer Between Page And Web Control?

Aug 3, 2011

There are test.aspx page and test.ascx web user control.

I have a button in test.aspx = btn_test and above code in my button is :

Dim ct As Control = Page.LoadControl("test.ascx")
Panel1.Controls.Add(ct)

There is a dropdownlist with value 1 to 10 in test.aspx and there is label_test in test.ascx

I need some code when test.ascx loading, get dropdownlist.selectedvalue and show it in label_test.

View 1 Replies

Asp.net - Transfer A Value From One Page To Another In Hidden Parameters Instead Of A Querystring?

Mar 2, 2011

What's wrong with this code?

Source page : Default.aspx

<form id="form1" action ="Default2.aspx" method="post" runat="server">
<table>
<tr>

[Code].....

View 3 Replies

Take The Data Of A Vb.form And Transfer It To A Html Page?

Dec 3, 2010

I have a questions I want to take the data of a vb.form, and transfer it to an html page with the same layout and formatting is this possibile?

My thought of how to do it is; Take screen shot of the active window i.e. the vb.net form and have it save the image to the same name and have the html file have iframe that calls the image. However how do i make sure that it takes the screen shot of the vb.net form everytime and how do i do that lol... are there any good reads on how to use an xml file as a database I work on a closed server that doesnt allow mssql or the installation of the required addon for mysql i think xml is the best and easiest way to go because I dont have access database either.

Dim btnDym As New Button
btnDym.Text = "Dynamic"
'set size
btnDym.Height = 25
btnDym.Width = 150
'set location
btnDym.Left = 100
btnDym.Top = 100
Me.Controls.Add(btnDym)

when creating dynamic controls how do I associate code with the control ie on button click do this etc, and does anyone have any good read's on dynamic control arrays

View 2 Replies

Display In A Form The File Transfer - The Icon The Name And Size

Aug 15, 2009

i posted about how to transfer file and i found a thread explains it with sample. Now how am i able to display it in a form the file transfer, the icon the name and size. And the user can click it .

View 4 Replies

Add A Login Page To A Program?

Jul 12, 2010

I was wondering if it would be possible for me to add a login page to a program that I have made that connects to an online database that my website has (mysql) that stores user names and passwords for the members of my website, so that members of my site could login with their username and passwords to my program, if so, how would I go about doing this?

View 1 Replies

C# - Regex For Login Page URL?

Sep 28, 2011

Right now, I have this code:

string strURL = "aLogin.aspx?test=hello";
string strPattern = "(.*/)?Login.aspx(?.*)?";
bool bIsLoginPage = System.Text.RegularExpressions.Regex.IsMatch(strURL , strPattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase);

I'm searching for the proper regexp pattern, and I am at a loss.The pattern must fulfill these criteria

Login.aspx ==> True
lOgIn.AsPx ==> True
/Login.aspx ==> True

[code]....

View 3 Replies

Best Pratice In Inheritance - Three Classes Employee, Manager And Salesman. Manager And Salesman Classes Inherits Employee Class

Jul 27, 2010

I have three classes Employee, Manager and Salesman. Manager and Salesman classes inherits Employee class.

Employee :

Public MustInherit Class Employee
' Field data.
Protected empName As String
Protected empID As Integer
Protected currPay As Single

[CODE]...

Manager :

Public Class Manager
Inherits Employee

[CODE]...

Salesman :

Public Class Salesman
Inherits Employee

[CODE]...

Now I have created a object of salesman and manager using the following code:

Dim objSalesMan as Employee=new Salesman("xyz",1,2000,5000)
Dim objManager as Employee=new Manager("abx",2,5000,"production")

Is this a good programming pratice or should I use:

Dim objSalesMan as new Salesman("xyz",1,2000,5000)
Dim objManager as new Manager("abx",2,5000,"production")

View 6 Replies

C# - Secure Login From ASP.NET 3.5/4.0 Page To SQL Database?

Nov 3, 2011

What is the most secure way to create an ASP.NET 3.5/4.0 login page connection to an SQL database.

View 2 Replies

Coding Default Login Page?

Jan 21, 2011

I created a website in VWDE 2010, and I was trying to code the login page that gets automatically created with a new web site in vb. owever, the vb file doesnt recognize some of the items on the aspx page, for instance: the username textbox is called "username". in the vb file, when I wrote username.text etc etc, and then I debugged it, it gave me error " 'username' is not declared. It may be inaccessible due to its protection level. Why is it doing that? It's under a Protected Sub, but why should tht interfere?

View 3 Replies

Fill The Value For The Login Page Of Site?

Dec 7, 2011

im trying to to fill the value for the login page of site here the html code

<input type="text" placeholder="Email" class="login_textbox" name="username" id="username" tabindex="1"> i tried this but doesnt work WebBrowser1.Document.GetElementById("username").Se tAttribute("value", "elvin")

View 1 Replies

Filling Facebook Login Page?

Sep 24, 2010

I'm trying to make a software for myself that helps me login to my facebook automatically using a button and a webbrowser.

I tried to use the method in this thread:

[URL]

Has anyone done this/knows what should i do? facebook page source is way too complicated for me

View 10 Replies

Login Page Script Required?

Feb 2, 2009

I am using Visual basic 2008 express edition with ms access 2003 as database.I have created the login form in Vb.

View 4 Replies

Login Page With Database Connection?

Aug 20, 2011

i am tried to develpod login page for System staff Library.I want to modified my login page which only allow user which has register in the system able to access.If the user want to login but dont have any username and password yet user will got message error. All the username and password are store in table staff .For your info i am creating using Visual studio 2005 using application forms and all the data was save in sql 2005.My server name is Danawa, i created my database name Login and table name Staff.In inside table staff 1 created 7 column such staffid, Name, telno, department, username, password, address. Here i my example code for login page and database preview code which i want to modified and also i attached picture of table staff.

[Code]...

View 1 Replies

OleDb - How To Make Login Page

Sep 7, 2011

I'm making a window's application project, and I'm trying to make a login page. First time trying, and I think I'm getting somewhere. Just keep running into a few things. Here is my

Imports System.Data.OleDb
Public Class Form4
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim msg As String
Dim title As String
Dim style As MsgBoxStyle
[Code] .....

The problems I run into are: My textbox.clear isn't clearing. The text stays when I try debugging the program and enter my first name and password, it gives me the "error logging in, please try again" and I know that test/test is the first name and password.

View 4 Replies

Use A Stored Procedure With A Login Page?

May 4, 2009

I am using a Login page so the user can access the form. The thing is, I have a stored procedure that can get the user id and password, but I am not sure how to use it in VB. I know how to do it in ADO.Net, but I'm not sure if this would be similar. I want to make sure that a person doesn't use an SQL injection attack. Oh, and I am using SQL Server 2008, not Access. Here is my current code:

[Code]...

View 2 Replies

Asp.net - Handle Enter Key For Search And Login Page?

May 26, 2011

I have an ASP.Net 3.5 in VB.Net page that uses a master-page and has several pages it uses to display content. On the master-page their is a search text-box for the site so that shows up on all the pages. Their is also a login page screen to get to a members account.The issue is: When you are on a content page I would like when a user puts something in to search for and presses enter it will process the search request.But....If you are on the login page I would like to disable enter key for the search and if the user presses enter on the login page to process the login request.

View 1 Replies

C# - Make User Come Back To The Same Page After Login?

Oct 7, 2011

In asp.net 3.5, i am trying to send a user to a different https url to login, if the user is not logged in. I am kinda' restricting the user not to see the forum page in the current site (http://thisSite.com/forum.aspx), if the user is not logged in.I am not sure how to redirect the user back from the login page [url] back to the [url]

i tried placing response.redirect in my forum.aspx like this: response.redirect("https://somethirdpartysite.com"), but it's not behaving as expected.

View 1 Replies

C# - Redirect To Root Login Page From Web.config

Jun 3, 2011

I am redirect user to loging page when session expires. Login.aspx is in root. I declared path like this in web.config file.

[Code]...

It is working for all root .aspx pages. But it not working for sub folders pages like Reporting eport.aspx. So how to manage redirect page (Login.aspx) for root .aspx pages and sub folder .aspx pages?

View 4 Replies

Create A Secure Login Page Using VS 2010/ASP.Net?

Apr 5, 2011

I would like to create a secure login page for a pre-defined set of users (so no creating username/passwords by the users themselves). I've looked up a few sites and they all seem to suggest using Microsoft's Membership or something. I am not very sure as to why that's used, but all you need to know is that I will be creating the login details. I just need to make the login secure, ie, no duplicate logins, no logins from different browsers and cookies and sessions and encryption and all that. Any one have the code/links to where I can get all this?

View 1 Replies

Custom Login Page / Incorrect Syntax Near '.'.

May 14, 2012

I am creating a custom log in page using VB in Visual Studio. Every time I try logging in, however, I get the following error:"Incorrect syntax near '.'".When I put in the wrong username/password combo it recognizes this, but when it is right it will get this error and fail to log in.

View 1 Replies

Download File (from A SSL Web) That Requires Login Id To The Page

Jun 21, 2010

i want to download a file from a SSL web to my local(C:)

[URL]

Scenario: from the web browser(Internet Explorer), i required to login to the site in order to download the file.

in the vb program i pass in this url to download the file (include my password and username): [URL] but what has been downloaded to my C: is the login page(in myfile.txt) but when i use the url on the web browser[URL] i managed to get the file (the actual file).

Question: is there anyway that i can download the file from a login page?

View 4 Replies

Globalizing Connection String From Login Page?

Oct 23, 2009

I have a login page where I display all the sql servers available and when the user selects the server, all the databases are displayed in a different combo box. Then the user enters the userid/pwd and clicks logon button.Assume that the credentials are correct and sucessfully established.

Now what I want is to store that connection string into somewhere so that all the different operations can be carried out without referring to the config file.One option that I have is to declare a public variable in DAO class and assign the connection string to it.Is there any other better way to handle this situation.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved