ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
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?

 Question Submitted By :: 007neo
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    4 Yes 4 No
Jp
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Derive WSDL?  6
Can you explain what inheritance is and an example of when you might use it?  1
What are typed datasets? IBS1
what is code access security,role based security explain with example Infosys1
Is it possible to disable the minimized icon of a popup window using window.open. Not using iframe concept? Take-United2
what is the jit? what is the type of jit and purpose of it>  2
what is the MSIL assembler do?  1
What is the difference between excute query and excute nonquery.?  3
How .net CLR works with n-tier application HCL2
Is it possible to prevent a browser from caching an ASPX page?  2
Caching techniques in .NET ? Microsoft1
What methods are fired during the page load?  1
WHAT IS BOXING? HOW WE CAN USE IT? Seion-Infotech4
How many classes can a single .NET DLL contain?  2
What is the use of SmartNavigation property?  2
what are the ways to improve performance in .net application? Mind-Tree3
How many types of sessions are there?  2
How do we get only edited/deleted/inserted records from a Dataset? Syntax-Softtech1
what is strong name? Microsoft2
What method do you use to explicitly kill a users session?  1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com