I have a method written in WebForm (means .aspx page) & now
I want to call this method in WebUserControl (means .ascx
page) what should I have to do?
Answer / jp
Use the controls page property and typecast it to the page
class name.
eg:
Page Default.aspx has a control MyControl.ascx
Page Default.aspx.cs has a method MyMethod()
in MyControl.ascx.cs
((Default)(this.Page)).MyMethod();
| Is This Answer Correct ? | 7 Yes | 8 No |
Explain the differences between clr & cts?
What is the purpose of App_Code folder in ASP.NET? Why we this?
0 Answers Sans Pareil IT Services,
What is the T-SQL equivalent of IIF (immediate if/ternary operator) function of other programming languages?
Who creates jsessionid?
How many types of cookies are available in asp?
How many types are there session
What is advantage of viewstate and what are benefits ?
How do you manage session in ASP and ASP.NET?
what are the State management and Its Uses
what are the files used in asp .net
What is a PostBack ?
Differentiate between globalization and localization.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)