Skip to posts
  • About

Win Web Hosting

Web Hosting Information
  • Home
  • ASP.NET
  • Cloud Hosting
  • Dedicated Servers
  • Linux Web Hosting
  • Microsoft AJAX
  • Microsoft Siverlight
  • Windows Web Hosting

ASP.NET 4.0 Login Website Part – 4 Login Page & It’s Script

October 30, 2011 James 20 comments
ASP.NET ASP.NET, It's, Login, Page, Part, Script, website

Comments

Leave a comment Trackback
  • Written by Shmv90 about 7 months ago.

    @xylenedz One of the possible reason is that your command’s query may have returned no value….make sure you’ve typed your query right in string format with proper punctuations.

  • Written by xylenedz about 7 months ago.

    hye! 1st of all, tnx for this awesome tutorial! :)
    btw, i’ve got some error on codebehind login part.

    *Object reference not set to an instance of an object.*
    And it highlighted this part :
    string password = Password.ExecuteScalar().ToString();

    Could you please help me fix this error cause i don’t know how to fix it. Already search on google but still can’t find the answer.

    Thanks in advance..

  • Written by TeddyASH about 7 months ago.

    @Shmv90 Sure…

    I wrote the code for the login page exactly similar to what you have done in you demo. similarly the login website part 1, 2 and 3.

    After i have finished with part 5 and made login page as a start page. i clicked on debug botton so i have got an error in the login page code. The error message was ” Cannot implicitly convert type ‘string’ to ‘bool’ ”
    when i clicked on the msg it highlighted this part of the code:
    ” string password = Pass.ExecuteScalar().ToString(­);”

  • Written by Shmv90 about 7 months ago.

    @TeddyASH Sorry I can not understand your problem.!! Would you please elaborate it???

  • Written by TeddyASH about 7 months ago.

    Hi shamv,

    I’m facing an error

    Cannot implicitly convert type ‘string’ to ‘bool’

    this error concerning line: password = TBPassword.Text
    which is related to line: string password = Pass.ExecuteScalar().ToString();

    what do you thin the problem could be

    Thank you

  • Written by TeddyASH about 7 months ago.

    Hi shamv,

    I’m facing an error

    Cannot implicitly convert type ‘string’ to ‘bool’

    this error concerning line: password = TBPassword.Text
    which is related to line: string password = Pass.ExecuteScalar().ToString();

    what do you thin the problem could be

  • Written by Shmv90 about 7 months ago.

    @DoctorM64 It’s a good practice that you add con.close() in finally portion of try catch block. I’m sorry I must have forgotten that to add in this video.

  • Written by DoctorM64 about 7 months ago.

    Hi! Very useful video, congratulations!

    I noticed you didn´t close the SQL connection in this video, if you were to add con.Close(), where would you add it?
    Is it really necesary at all?

    Thanks!!

  • Written by Shmv90 about 7 months ago.

    @dementorspirit my pleasure… :)

  • Written by dementorspirit about 7 months ago.

    thnks a lot .. been searching for this whole day

  • Written by PATHAKROHIT08 about 7 months ago.

    Hey
    I am getting an error at line
    string Password = pass.ExecuteScalar().ToString();

    error:Object reference not set to an instance of object…

    please help!!

  • Written by shams3400 about 7 months ago.

    Everything works fine to me. People who want to see it better must use browser full screen.

  • Written by willnsub about 7 months ago.

    Thanks, 4 the Vid men… Nice…

  • Written by Slicez0r about 7 months ago.

    @Shmv90 yes, i already noticed that, thanks btw

  • Written by Shmv90 about 7 months ago.

    @Slicez0r: Yeah, it’s right…!!

  • Written by Slicez0r about 7 months ago.

    int temp = Convert.ToInt32(checkuser.ExecuteScalar().ToString());

    this is right?

  • Written by Shmv90 about 7 months ago.

    @prakash4everything: I think you should use javascript’s _doPostBack function in your code. Search for it in google for how to use it in detail.

  • Written by Shmv90 about 7 months ago.

    @MongolFanat Thanks..!!

  • Written by prakash4everything about 7 months ago.

    Hi i needed help in asp.net 4 application . i have a form without runat having input tags for login in header right top And another form in section having accordian of ajax control toolkit so has runat=server. Now how do i know user request login i.e., how to find login_form’s login button has been clicked in server-code so that i can call my logintosystem() function performing database work. waiting as time is less for work completion

  • Written by MongolFanat about 7 months ago.

    wow

Comment Pages:

Leave a Comment

Cancel Reply

You must be logged in to post a comment.

RSS

Win Web Hosting Home Page

Cheap Windows Hosting

 

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Archives

  • May 2012 (45)
  • April 2012 (81)
  • March 2012 (82)
  • February 2012 (79)
  • January 2012 (92)
  • December 2011 (163)
  • November 2011 (205)
  • October 2011 (339)
  • September 2011 (367)
  • August 2011 (367)
  • July 2011 (322)
  • June 2011 (338)
  • May 2011 (358)
  • April 2011 (94)
  • March 2011 (40)
  • February 2011 (36)
  • January 2011 (41)
  • December 2010 (30)
  • November 2010 (40)
  • October 2010 (41)
  • September 2010 (52)
  • August 2010 (150)
  • July 2010 (165)
  • June 2010 (159)
  • May 2010 (238)
  • April 2010 (248)
  • March 2010 (202)
  • February 2010 (576)

Recent Posts

  • 02 – Custom CMS In Asp.Net 4 – Preparing Our Database
  • Mr Percival Live Performance at Microsoft Remix 2011, Sydney
  • Using a Security Token Service with an ASP.NET Application
  • PlayBits – Silverlight Game Engine
  • asp 10 add menu control and sitemap datasource

Tags

.NET 2010 about AJAX Application Applications ASP.NET best Business cheap cloud Company Computing Control Create data Dedicated Development Free from help Host hosting India Introduction Linux Microsoft more need Page Part private Server servers service Services Silverlight Site Software Source Tutorial Using Video website Windows

Categories

  • ASP.NET
  • Cloud Hosting
  • Dedicated Servers
  • Linux Web Hosting
  • Microsoft AJAX
  • Microsoft Siverlight
  • Windows Web Hosting

Meta

  • Register
  • Log in
  • Valid XHTML
Powered by WordPress Web Design by SRS Solutions © 2012 Win Web Hosting