Home
Submit Resources
Submit Article
Sponsored Listings
What's New
What's Hot
Latest ASP.NET Article
Join Us
Login
ASP.NET Article
Web Applications
ASP.NET Component
ASP.NET Hosting
VB.NET Article
C# Article
Web Applications
RSS News
Site Map 1
Site Map 2
Search
Article
Resources
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
1
2
3
4
5
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
Windows Communication Foundation
Windows Presentation Foundation
Card Space
AJAX and ATLAS
General AJAX and ATLAS
Unedited AJAX And ATLAS
AJAX Applications
ASP.NET
Applications
Caching
Cookies
C# Programming
Applications
Database
Date And Time
Classic ASP
Applications
Components
General ASP
Enterprise Systems
SQL Reporting Services
SharePoint Server
Exchange Server
General .NET
Security
ADO.NET
Patterns and Practices
VB.NET Programming
Applications
Date and Time
Delegates and Events
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