Click here to Skip to main content
16,008,299 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPopUp window at Desired Location Pin
varun_khanna1721-Mar-07 0:11
varun_khanna1721-Mar-07 0:11 
AnswerRe: PopUp window at Desired Location Pin
Tirthadip21-Mar-07 0:20
Tirthadip21-Mar-07 0:20 
QuestionIISstate log Pin
Ajay R Ojha21-Mar-07 0:10
Ajay R Ojha21-Mar-07 0:10 
Questionbug wit the standard provider??? Pin
neodeaths20-Mar-07 23:57
neodeaths20-Mar-07 23:57 
AnswerRe: bug wit the standard provider??? Pin
szukuro21-Mar-07 0:06
szukuro21-Mar-07 0:06 
GeneralRe: bug wit the standard provider??? Pin
neodeaths21-Mar-07 15:47
neodeaths21-Mar-07 15:47 
Questioncould any convert this to asp.net c#? Pin
neodeaths20-Mar-07 22:42
neodeaths20-Mar-07 22:42 
AnswerRe: could any convert this to asp.net c#? Pin
N a v a n e e t h20-Mar-07 22:57
N a v a n e e t h20-Mar-07 22:57 
neodeaths wrote:
Dim strSQL, strConn As String
Dim dbcon As New OleDbConnection


string strSQL,strConn = string.empty;
OleDbConnection dbcon = new OleDbConnection();


neodeaths wrote:
strSQL = "Select * from Employee where EmployeeID ='" & txtusername.Text.Trim & "' and EmpPassword ='" & txtpassword.Text.Trim & "'"


In this & should be replaced with + and Trim() should be written like this

txtusername.Text.Trim();


neodeaths wrote:
Dim cmdselectcommand As New OleDb.OleDbCommand(strSQL, dbcon)


OleDb.OleDbCommand cmdselectcommand = new OleDb.OleDbCommand(strSQL,dbcon)



neodeaths wrote:
Dim dtlogin As OleDbDataReader = cmdselectcommand.ExecuteReader


OleDbDataReader dtlogin = cmdselectcommand.ExecuteReader();



neodeaths wrote:
If (dtlogin.Read() = True) Then


if( dtlogin.Read() )
{
    //Write your code
}



neodeaths wrote:
MsgBox("Login OK")


MessageBox.Show("Message")


neodeaths wrote:
Dim main As New form1
intlevel = CType(dtlogin.Item("EmpPrivilege"), Integer)


form1 main = new form1();
intlevel = (int)dtlogin.Item["EmpPrivilege"];


Put semicolumn at the end of each statement. ( Not for If ) D'Oh! | :doh:



printf("Navaneeth!!")

www.w3hearts.com

GeneralRe: could any convert this to asp.net c#? Pin
neodeaths20-Mar-07 23:34
neodeaths20-Mar-07 23:34 
AnswerRe: could any convert this to asp.net c#? Pin
varshavmane20-Mar-07 23:46
varshavmane20-Mar-07 23:46 
AnswerRe: could any convert this to asp.net c#? Pin
Dave Doknjas21-Mar-07 15:00
Dave Doknjas21-Mar-07 15:00 
Questiondatabinding to button control Pin
kallileo20-Mar-07 22:41
kallileo20-Mar-07 22:41 
AnswerRe: databinding to button control Pin
N a v a n e e t h20-Mar-07 23:04
N a v a n e e t h20-Mar-07 23:04 
GeneralRe: databinding to button control Pin
kallileo20-Mar-07 23:21
kallileo20-Mar-07 23:21 
QuestionAuthentication Pin
nclauder20-Mar-07 22:40
nclauder20-Mar-07 22:40 
AnswerRe: Authentication Pin
N a v a n e e t h20-Mar-07 23:05
N a v a n e e t h20-Mar-07 23:05 
GeneralRe: Authentication Pin
nclauder21-Mar-07 1:50
nclauder21-Mar-07 1:50 
Questionsql server error Pin
saravanan0520-Mar-07 22:23
saravanan0520-Mar-07 22:23 
AnswerRe: sql server error Pin
Guffa20-Mar-07 22:36
Guffa20-Mar-07 22:36 
AnswerRe: sql server error Pin
N a v a n e e t h20-Mar-07 22:58
N a v a n e e t h20-Mar-07 22:58 
Questionhow to move folder and files from a folder tree in ASP.NET Pin
rajnish_haldiya20-Mar-07 21:58
rajnish_haldiya20-Mar-07 21:58 
Questionaddress of button Pin
vengaqua20-Mar-07 21:17
vengaqua20-Mar-07 21:17 
AnswerRe: address of button Pin
N a v a n e e t h20-Mar-07 23:02
N a v a n e e t h20-Mar-07 23:02 
GeneralRe: address of button Pin
vengaqua21-Mar-07 2:46
vengaqua21-Mar-07 2:46 
QuestionHow to load an image data from SQL Server 2000 to Datagrid!!! Pin
Hanh Aeriscute20-Mar-07 20:08
Hanh Aeriscute20-Mar-07 20:08 

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.