Click here to Skip to main content
15,921,793 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: My first published ASP.NET project Pin
shabya21-Mar-09 3:30
shabya21-Mar-09 3:30 
AnswerRe: My first published ASP.NET project Pin
vinodkrebc21-Mar-09 3:14
vinodkrebc21-Mar-09 3:14 
AnswerRe: My first published ASP.NET project Pin
Yusuf21-Mar-09 4:22
Yusuf21-Mar-09 4:22 
AnswerRe: My first published ASP.NET project Pin
tech60321-Mar-09 6:29
tech60321-Mar-09 6:29 
Questionhow to attach aspx pages to master page Pin
naveen attri20-Mar-09 20:16
naveen attri20-Mar-09 20:16 
AnswerRe: how to attach aspx pages to master page Pin
Abhijit Jana21-Mar-09 1:34
professionalAbhijit Jana21-Mar-09 1:34 
AnswerRe: how to attach aspx pages to master page Pin
Gaurav Mahajan21-Mar-09 1:55
Gaurav Mahajan21-Mar-09 1:55 
QuestionQuestion about MySql Database in C# Pin
Deepak the Cool20-Mar-09 20:09
Deepak the Cool20-Mar-09 20:09 
Hi All,

I am using MYSql DB for backend.I have fullfill all the requirment e.g. Dot Net Connector for MYSQL etc.

Now in my application I have seen a different type of bug. One of my project I create a class clsLogin and has a following method

public int AuthenticateUser(boclsLogin objboclsLogin)
{
int inRes = 0;
using (MySqlConnection mySqlCon = new MySqlConnection(ConfigurationManager.ConnectionStrings["MySqlCon"].ConnectionString.ToString()))
{
string strSQL = "select count(vcUSerId) from Login " +
" where vcUserId=@UserId ";
" and vcPassword=@Password" +
" and vcUserType=@UserType";
MySqlCommand _cmd = new MySqlCommand(strSQL, mySqlCon);
_cmd.Parameters.Add("@UserId", MySqlDbType.VarChar).Value = objboclsLogin.UserId;
_cmd.Parameters.Add("@Password", MySqlDbType.VarChar).Value = objboclsLogin.Password;
_cmd.Parameters.Add("@UserType", MySqlDbType.VarChar).Value = objboclsLogin.UserType;
if (mySqlCon.State == ConnectionState.Closed)
mySqlCon.Open();
inRes = Convert.ToInt32(_cmd.ExecuteScalar());
mySqlCon.Close();
}
return inRes;

}

the above method in native application works fine.But I have need the same class into a another project then i just copy paste the class File into my 2nd application it is return me a 0(scalar value).

But when i pass the hardcoded value into my query then it'll return me the 1.

So i am very phatectic,How I solve this anyone give me idea.

thanks in advance

Deepak

Smile | :) Smile a Lots,Its Costs Nothing

AnswerRe: Question about MySql Database in C# Pin
Gaurav Mahajan21-Mar-09 3:10
Gaurav Mahajan21-Mar-09 3:10 
QuestionHow to change the address in the address bar from a windows application Pin
Nekkantidivya20-Mar-09 19:52
Nekkantidivya20-Mar-09 19:52 
AnswerRe: How to change the address in the address bar from a windows application Pin
venu65620-Mar-09 21:16
venu65620-Mar-09 21:16 
GeneralRe: How to change the address in the address bar from a windows application Pin
Yusuf21-Mar-09 4:37
Yusuf21-Mar-09 4:37 
AnswerRe: How to change the address in the address bar from a windows application Pin
Yusuf21-Mar-09 4:26
Yusuf21-Mar-09 4:26 
QuestionEvent of Dynamic Control Pin
shoyebaziz12320-Mar-09 19:47
shoyebaziz12320-Mar-09 19:47 
AnswerRe: Event of Dynamic Control Pin
N a v a n e e t h20-Mar-09 19:53
N a v a n e e t h20-Mar-09 19:53 
AnswerRe: Event of Dynamic Control Pin
Gaurav Mahajan21-Mar-09 2:14
Gaurav Mahajan21-Mar-09 2:14 
AnswerRe: Event of Dynamic Control Pin
Abhijit Jana21-Mar-09 2:16
professionalAbhijit Jana21-Mar-09 2:16 
QuestionAjax Pin
Bhim Prakash Singh20-Mar-09 19:14
Bhim Prakash Singh20-Mar-09 19:14 
AnswerRe: Ajax Pin
Abhijit Jana21-Mar-09 1:42
professionalAbhijit Jana21-Mar-09 1:42 
QuestionAJAX controls for asp.net2.0 Pin
Subin Alex20-Mar-09 19:04
Subin Alex20-Mar-09 19:04 
AnswerRe: AJAX controls for asp.net2.0 Pin
N a v a n e e t h20-Mar-09 19:11
N a v a n e e t h20-Mar-09 19:11 
GeneralRe: AJAX controls for asp.net2.0 Pin
Subin Alex20-Mar-09 20:24
Subin Alex20-Mar-09 20:24 
QuestionBest way to repopulate cache item once it expires without using the CacheItemRemoveCallback delegate. Pin
Steve Holdorf20-Mar-09 7:53
Steve Holdorf20-Mar-09 7:53 
AnswerRe: Best way to repopulate cache item once it expires without using the CacheItemRemoveCallback delegate. Pin
ToddHileHoffer20-Mar-09 9:53
ToddHileHoffer20-Mar-09 9:53 
AnswerRe: Best way to repopulate cache item once it expires without using the CacheItemRemoveCallback delegate. Pin
N a v a n e e t h20-Mar-09 18:44
N a v a n e e t h20-Mar-09 18:44 

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.