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
What is the meaning of unobtrusive javascript? Explain us by any practical example.
Mention the core components of .net framework?
What is Layout in ASP.Net MVC?
What is the version number for the next version of the .net framework, codenamed �orcas�?
How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?
What are ajax helpers in asp.net mvc?
What are Scaffold templates in ASP.Net MVC?
In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?
what is entity framework?
Can you use Razor code in Javascript in ASP.Net MVC?
What is domain class model?
What is basic authentication in web api?
Explain tempdata in mvc?
mention what is the difference between ado.net and classic ado?
what is use of entitydatasource control?