Home arrow ASP.NET arrow Page 3 - Dynamically Using Methods in ASP.NET

Dynamically Using Methods in ASP.NET

In this article, young Philip Quinn will explain how one would execute a method without actually calling it.

Author Info:
By: Philip Quinn
Rating: 4 stars4 stars4 stars4 stars4 stars / 68
April 28, 2003
  1. · Dynamically Using Methods in ASP.NET
  2. · The Article
  3. · Summary

print this article

Dynamically Using Methods in ASP.NET - Summary
(Page 3 of 3 )

This article has kind of been your quick introduction to reflection in .NET, but at the same time focused on the aspect of methods and specifically the MethodInfo class. There is a lot more out there on reflection, so check out the documentation on the System.Reflection namespace and see what comes up.

Also, as a quick point of interest, you can actually shorten the entire Page_Load method above to -

Dim myparamarray() As Object = {"Sample Name"}
Response.Write(GetType(WebForm3).GetMethod("Return1").Invoke(Me, myparamarray))

minfo.Invoke(Philip Quinn, wisemonk@aspalliance.com)

DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus

- How Caching Means More Ca-ching, Part 2
- How Caching Means More Ca-ching, Part 1
- Reading a Delimited File Using ASP.Net and V...
- What is .Net and Where is ASP.NET?
- An Object Driven Interface with .Net
- Create Your Own Guestbook In ASP.NET
- HTTP File Download Without User Interaction ...
- Dynamically Using Methods in ASP.NET
- Changing the Page Size Interactively in a Da...
- XML Serialization in ASP.NET
- Using Objects in ASP.NET: Part 1/2
- IE Web Controls in VB.NET
- Class Frameworks in VB .NET
- Cryptographic Objects in C#: Part 1
- Sample Chapter: Pure ASP.Net

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials