Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what are partial classes?

Answer Posted / anil

Partial class is th one feature in V2.0 where you can split
the functionalty of the single file in multiple files.

This is helpful on working simultaneously on same file,
clearly separates Business Logic and UI, separets logic
from single file to multiple files.

File1
Imports system
Interface IPartialInterface

sub abc( byval str as string)
sub abc()
End interface

Partial Class DemoPartialClass
dim strName a string
strName = "Anil"
Response.Write(strName)
End Class

File2

Imports system
Implements IPartialInterface

Partial Class DemoPartialClass
Public sub abc(ByVal strName as string)
Dim strValue as string
strValue = strName
End Sub
End Class

File 3

Imports system
Implements IPartialInterface

Partial Class DemoPartialClass
public sub abc()
response.write(strName)
End Sub
End Class

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Keep method in Tempdata in ASP.Net MVC?

1066


What is difference between razor and web form engine?

1126


what is minimum requirement for entity framework applications to run?

1133


Is it possible to cancel filter execution?

1018


Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?

977


Does .NET Framework support SAX?

1008


How can I tell what .net framework is installed?

972


what is model first approach?

1117


what is client wins and store wins mode in entity framework concurrency?

1231


Explain the tools used for unit testing in ASP.Net MVC

1122


What is mapping in entity framework? : Entity framework

999


Define the core components of an ASP.NET MVC application?

1090


What is iobjectset? : Entity framework

1016


What are the two ways to add constraints to a route?

972


Explain linq to entities? : Entity framework

1032