Click here to Skip to main content
15,907,687 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: page/site cache Pin
Sarvesvara (BVKS) Dasa14-Jan-03 21:33
Sarvesvara (BVKS) Dasa14-Jan-03 21:33 
Generalscrolling text Pin
mcm12-Jan-03 23:39
mcm12-Jan-03 23:39 
GeneralRe: scrolling text Pin
SimonS12-Jan-03 23:58
SimonS12-Jan-03 23:58 
GeneralRe: scrolling text Pin
benjymous16-Jan-03 0:22
benjymous16-Jan-03 0:22 
GeneralASP - access database Pin
Sarvesvara (BVKS) Dasa12-Jan-03 23:27
Sarvesvara (BVKS) Dasa12-Jan-03 23:27 
GeneralRe: ASP - access database Pin
Michela13-Jan-03 0:23
Michela13-Jan-03 0:23 
GeneralRe: ASP - access database Pin
Sarvesvara (BVKS) Dasa13-Jan-03 2:46
Sarvesvara (BVKS) Dasa13-Jan-03 2:46 
GeneralCan't get my website to work!! Pin
dyerstein12-Jan-03 8:19
dyerstein12-Jan-03 8:19 
I have created a simple C# ASP.NET app, that uses a database(SQL) which is programed only to check users againsit a the database entry. when I try to run the program, I get to the server page, and than when I enter the user password, than I press invoke. however I just get a "The page can not be displayed - There is a problem with the page you are trying to reach and it cannot be displayed." error message. To my knowledge I have programmed this correctly, but can't seem to get pass this error. The below code is all I'm doing:

[WebService(Name="TestWebServer Web Service", Description="Test SQL Database")]
public class Service1 : System.Web.Services.WebService
{
const string connStr="server=SILICON;uid=sa;pwd=;database=MytestDatabase";
[WebMethod(Description="Method to Authenticate Users")]
public bool Authenticate(string username, string password)
{
SqlConnection dbConn = new SqlConnection(connStr);
string sqlStr = "SELECT Password from PM_USERS where UserName = '" + username + "';";
dbConn.Open();
SqlCommand dbCommand = new SqlCommand(sqlStr,dbConn);
SqlDataReader dbReader = dbCommand.ExecuteReader();

bool returnBool;
if (dbReader.Read())
{
if (dbReader[0].ToString()==password)
{
returnBool = true;
}
else
{
returnBool = false;
}
}
else
{
returnBool=false;
}
dbReader.Close();
dbConn.Close();
return returnBool;
}

that's pretty much it!
GeneralRe: Can't get my website to work!! Pin
leppie12-Jan-03 8:41
leppie12-Jan-03 8:41 
GeneralRe: Can't get my website to work!! Pin
dyerstein12-Jan-03 9:18
dyerstein12-Jan-03 9:18 
GeneralRe: Can't get my website to work!! Pin
leppie12-Jan-03 9:46
leppie12-Jan-03 9:46 
Generalextract title of page Pin
Sarvesvara (BVKS) Dasa12-Jan-03 1:38
Sarvesvara (BVKS) Dasa12-Jan-03 1:38 
GeneralRe: extract title of page Pin
Hesham Amin12-Jan-03 10:54
Hesham Amin12-Jan-03 10:54 
GeneralRe: extract title of page Pin
Sarvesvara (BVKS) Dasa12-Jan-03 23:25
Sarvesvara (BVKS) Dasa12-Jan-03 23:25 
GeneralRe: extract title of page Pin
Perica Zivkovic13-Jan-03 5:40
Perica Zivkovic13-Jan-03 5:40 
GeneralRe: extract title of page Pin
Sarvesvara (BVKS) Dasa13-Jan-03 19:37
Sarvesvara (BVKS) Dasa13-Jan-03 19:37 
GeneralRe: extract title of page Pin
Hesham Amin13-Jan-03 10:32
Hesham Amin13-Jan-03 10:32 
GeneralRe: extract title of page Pin
Sarvesvara (BVKS) Dasa13-Jan-03 19:39
Sarvesvara (BVKS) Dasa13-Jan-03 19:39 
GeneralImpression count Pin
Sarvesvara (BVKS) Dasa11-Jan-03 20:45
Sarvesvara (BVKS) Dasa11-Jan-03 20:45 
GeneralNeed an SSL guru on a problem with SOAP Pin
Le centriste11-Jan-03 9:20
Le centriste11-Jan-03 9:20 
GeneralRe: Need an SSL guru on a problem with SOAP Pin
Stefan Pedersen11-Jan-03 9:51
Stefan Pedersen11-Jan-03 9:51 
GeneralRe: Need an SSL guru on a problem with SOAP Pin
Le centriste11-Jan-03 11:04
Le centriste11-Jan-03 11:04 
GeneralRe: Need an SSL guru on a problem with SOAP Pin
Stefan Pedersen11-Jan-03 11:47
Stefan Pedersen11-Jan-03 11:47 
GeneralWorkaround found Pin
Le centriste11-Jan-03 15:58
Le centriste11-Jan-03 15:58 
GeneralDial-up Networking Dialog Problem Pin
Kevin McFarlane11-Jan-03 4:24
Kevin McFarlane11-Jan-03 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.