Tags: | Categories: Blog Posted by admin on 3/9/2009 5:54 PM | Comments (0)

Lately is you are using Visual Studio 2005, and of course if you have been writing code since 1.1 or even 1.0, you are used to use functions like:




Well now you’ll get one of the warnings that are just giving me a headache:

This method is now obsolete.


Lets find out why? Just because there is an attribute to that method to produce the warning. I would like to know what that actually means?


[ObsoleteAttribute("The recommended alternative is ClientScript.RegisterStartupScript(Type type, string key, string script). http://go.microsoft.com/fwlink/?linkid=14202")] public virtual void RegisterStartupScript ( string key, string script )




Does it mean that the guts are using old technology? Does it mean that they just wrapped around the function with the new one in order to move it somewhere else? Does it mean they won’t support it on version 3.0 so get used to use the new one? Does it mean they find a better way? If so, why there just left it in the namespace?


Anybody can let me know, why?




blog comments powered by Disqus