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 |
What are triggers of an updatepanel?
I need to download file from web server, without using save as dialogue box. Can anyone help, thanks In advance.
How can you make sure that web api returns json data only?
What is mvc in asp.net tutorial? : Asp.Net MVC
what is synchronization and asynchronization. what are the difference between two?
What is the difference between localization and globalization?
How to remove cache object in asp.net?
What is different authentication mechanisms used in ASP.NET?
What is CSS? What is the advantage os using CSS in ASP.NET Web Applications?
Is a dll file an executable?
What are HTTP handlers in ASP.NET?
What is the purpose of url encoding?
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)