Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mbjino

@mbjino
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • HI ANYBODY PLS HELP ME !
    M mbjino

    s but instead of exception message i have given to return false result ;

    C# help csharp

  • HI ANYBODY PLS HELP ME !
    M mbjino

    no error message thats making it more bad :( :( :(

    C# help csharp

  • HI ANYBODY PLS HELP ME !
    M mbjino

    i tried it but the prob is the if part is not getting executed insted its going to catch part!

    C# help csharp

  • HI ANYBODY PLS HELP ME !
    M mbjino

    HI THIS IS MY C# PROGRAM I WANT TO GET A BOOLEAN RESULT TRUE OF FALSE I DIDNT FIND ANY ERROR....BUT THE PROB IS ONLY THE EXECPTION PART IS GETTING EXECUTED...ITS A LOGIN PAGE,....

    public bool validateuser(User u)
    {
    bool result = true;
    try
    {
    string validateq = "select count(*) from register where user.username = @username and user.password = @passwd ";
    cmd = new SqlCommand(validateq, con);
    cmd.Parameters.AddWithValue("@username", u.username);
    cmd.Parameters.AddWithValue("@passwd", u.password);
    con.Open();
    reader = cmd.ExecuteReader();
    reader.Read();
    int r = Convert.ToInt32(reader[0]);
    if (r > 0)
    {
    result = true;
    }
    else
    {
    result = false;
    }
    return result;

        }
    
        catch (Exception ex)
        {
              result = false;
            return result;
        }
    }
    
    C# help csharp

  • hi frnds
    M mbjino

    hi frnds im doing a project and in a face of adding a forum in my project so is there anyone who can help me....with code or ideas regd forum in .net c#.....im new here and wish ur help and support dear friends........ :-O :-O :) :)

    C# csharp help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups