Monday, March 26, 2012
Please help
I have a login screen with a remember user checkbox. I am storing the Login
Information (UserName and Password) on the client machine using cookies. The
text boxes used to accept the username and password are both ASP server
controls. The TextMode property for the box accecpting password is set to
"password". I save the login information when the user checks the "remember
user" checkbox (using cookies) and retrieve this information every time he
tries to relogin(ie when the login page is requested ). The problem is that
the password cannot be displayed in the text box(TextMode set to "password")
as astrix and is seen as blank (Though it is correctly stored in the cookie
as seen using page level trace)
I am using Microsoft Development Environment 2002 version 7.0.9466 &
Microsoft.NET framework 1.0 version 1.0.3705
Any suggestions would be highly appreciated.
TIA,
GaryAn "input type=password" (which is NOT an "input type=text" textbox object)
HTML object can not have its' value persisted. This is a Security
consideration. What would be the point of requiring a password if ANY user
that opens that URL in the browser on the machine with the password stored
in a cookie doesn't have to type in the password?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.
"Gary" <msnews@.microsoft.com> wrote in message
news:eh94ffVZDHA.2344@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I have a login screen with a remember user checkbox. I am storing the
Login
> Information (UserName and Password) on the client machine using cookies.
The
> text boxes used to accept the username and password are both ASP server
> controls. The TextMode property for the box accecpting password is set to
> "password". I save the login information when the user checks the
"remember
> user" checkbox (using cookies) and retrieve this information every time he
> tries to relogin(ie when the login page is requested ). The problem is
that
> the password cannot be displayed in the text box(TextMode set to
"password")
> as astrix and is seen as blank (Though it is correctly stored in the
cookie
> as seen using page level trace)
> I am using Microsoft Development Environment 2002 version 7.0.9466 &
> Microsoft.NET framework 1.0 version 1.0.3705
> Any suggestions would be highly appreciated.
> TIA,
> Gary
Please help - Client/Server communication with VB.Net/ASP
another computer for testing.
On the "host" computer I have installed IIS and used VB.Net to create an
HTML member in the c:\ root directory called Index.htm. This module is a
simple "Hello World" HTML file. This machine is connected to the internet
and has a static IP address.
On the "Client" computer I enter the IP address of the host (with or without
"\Index.htm") on the Address line of IE6 and press enter.
I should then see my "Hello World" file, right? Well, I get "This page
cannot be displayed". What am I missing??
Thanks in advance,
JohnHi John,
I think you should put the Index.htm under wwwroot folder. By default, it is
the "c:\inetpub\wwwroot" folder.
--
Regards,
Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
"John Howard" <john_howard@.dcf.state.fl.us> wrote in message
news:3ffea1e2$1@.news.hcs.net...
> I am writing my first VB.Net ASP application and would like to set up
> another computer for testing.
> On the "host" computer I have installed IIS and used VB.Net to create an
> HTML member in the c:\ root directory called Index.htm. This module is a
> simple "Hello World" HTML file. This machine is connected to the internet
> and has a static IP address.
> On the "Client" computer I enter the IP address of the host (with or
without
> "\Index.htm") on the Address line of IE6 and press enter.
> I should then see my "Hello World" file, right? Well, I get "This page
> cannot be displayed". What am I missing??
> Thanks in advance,
> John
Wednesday, March 21, 2012
please Help me find out a way!
I want a client to enter a 'key' in a textbox and click a button. then the entered value will be used to search a table in the MS-SQL database. The corresponding value found from that table will be used to search a second table. Data found from the second table will be bounded to the datagrid control at the page where the client entered the 'key'. What will be the way to achieve this? What will be the SQL command??
I'm not sure if I'm able to describe the problem. I'm a new user of ASP.NET. So please help.
Ishtiaque.
A stored procedure like this will work:
CREATE PROCEDUREdbo.Example
@.key1varchar(255)
AS
DECLARE@.key2varchar(255)
SELECT@.key2 = key2columnFROMTable1WHEREkey1column = @.key1
--The select below will return your results so you can bind to your grid:
SELECT*FROMTable2WHEREkey2column = @.key2
Thank you Sharbel_.
I made a stored procedure as you suggested and used it by a 'drag and drop' method in my webform. But as I mentioned I am a novice user of ASP.NET, could not utilize the sqlConnection or sqlCommand that resulted of doing so. Would you please let me know how to do so?
Thanks in advance.
Hi,
using System.Data.SqlClient; at the top in the .cs file
Create the connection and the command objects in the page_load or in the button click as
SqlConnection sqlcn =new SqlConnection(connectionString);
sqlcn.Open();
//creating and initialising a command object
SqlCommand sqlcm =new SqlCommand();
sqlcm.Connection = sqlcn;
sqlcm.CommandType = CommandType.StoredProcedure;
sqlcm.CommandText = StoredProcedure name;
sqlcm.ExecuteNonQuery();
HTH.