Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
dingjing

Avatar / Picture

MVP Developer
Registered:
Posts: 256
Reply with quote  #1 
http://jingding.blogspot.com/2012/11/isd-code-customization-tips-part-ii.html

Keywords: extension method, code reuse
TheChief

Avatar / Picture

MVP Developer
Registered:
Posts: 145
Reply with quote  #2 
Thanks JingDing,
I was looking for this today.
Appreciate you sharing.
Wayne

__________________

Former Senior Web Engineer
CEO Simple And Smart Apps
IronSpeed MVP

miles

Avatar / Picture

MVP Consultant
Registered:
Posts: 1,660
Reply with quote  #3 
If coding was not considered to be weak, Iron Speed could give us the option of having convience methods like this generated for us.  Or perhaps someday a real API into the code generator, so that we could easily do this as part of extending what is otherwise a wonderfull product.  Alas, that day will likely never come.
__________________
Miles Gibson, MScIS
Iron Speed MVP
Senior Consultant, Principal
Milestone Software Inc.

http://www.ironspeedmvp.com\localizer 
Email: miles@milestone.ca
Milestone Localizer: Full Localization for your Iron Speed applications!
pk_davidson

Registered:
Posts: 223
Reply with quote  #4 
+1 for the Alas...
+2 for the extension method...

__________________
Paul
JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,954
Reply with quote  #5 
This is a pretty common alternative on Page's classes of Wed applications.

Another simple option is to make public declaration at the top of section 1 like:

 public System.Web.UI.WebControls.TextBox CustomerID;


Then you can refer to the CustomerID anywhere within the same class.


Cheers,
Jimi J

__________________

  Jaime Jegonia
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement