WorldofASP.NET : ASP.NET Directory, Tutorial, Hosting, and Source Code
You are 1 of 46 users


WorldofASP.NET >> General .NET >> Unedited .NET

18a

18a
Published Date : 13 Jun 2008
Author : Author
Language : Other
Platform : None
Technology : None
Views : 11123
Rating : (3 votes so far)






Other Related and Popular Articles :

146
146

149
149

15
15

151
151

152
152

155
155


Author Profile : Author

Click here to view Author Profile


How would you rate the quality of this content?
Poor Excellent

Comments

#
30 Jun 2009 6:03 by : Maiku

the signature of the method indicates that the method returns an 'int'.

public static int RegisterClient(string UserName, string EmailAddress, string Password, string Name)

but there is no 'return' statement in the method body.

you can rectify this problem by either changing the method signature to void

public static void RegisterClient(string UserName, string EmailAddress, string Password, string Name)

or by defining a local int variable within the method and assigning the return value of the ExecuteNonQuery command to it.

int result = cmd.ExecuteNonQuery();
conn.Close();
return result;


#I get an error
23 Feb 2009 13:28 by : Amir Hamidi

hello there
where I modify someparts of code to meet my demands somewhere like below code I face an error:

public static int RegisterUser(string user_name, string real_name, string email, string password, string webpage, string city, string signiture)

it is where I get this error:
Not all code path returns a value

what should I do?

Leave New Comments


Article Content copyright by Author
Everything else Copyright © by WorldofASP.NET 2010

Category
.NET 3.5
AJAX and ATLAS
ASP.NET
C# Programming
Classic ASP
Enterprise Systems
General .NET
VB.NET Programming
Announcements
Earn Cash by writing an article or review
For more info Click here







Legend : - Within 3 Days - Within 6 Days - Within 9 Days

Home | Add Resources | Sponsored Listings | Advertise with Us | SiteMap 1 | SiteMap 2 | Link To Us | Contact Us
© 2002-2010 Worldofasp.net ASP.NET Directory, Hosting and Tutorials | All rights reserved
Our Partners : ASP.NET Web Hosting | ASP Hosting | ASP.NET Hosting | Phone Card | Calling Card |Stock Investing