InterviewSolution
| 1. |
What Is The Difference Between .net Mobile Pages And Ordinary .net Web Page? |
|
Answer» .NET Mobile pages are similar to ordinary .NET Webpages. <%@ Page Inherits="System.Web.UI.MobileControls.MyPage" %> <%@ Register TagPrefix="MOB" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <mob:Form runat="SERVER"> <mob:LABEL runat="server">Hello WORLD</mob:Label> </mob:Form> Notice the only difference being the tag mob which uses the System.Web.UI.MobileControls LIBRARY instead of the asp tag. .NET Mobile pages are similar to ordinary .NET Webpages. <%@ Page Inherits="System.Web.UI.MobileControls.MyPage" %> <%@ Register TagPrefix="mob" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <mob:Form runat="server"> <mob:Label runat="server">Hello World</mob:Label> </mob:Form> Notice the only difference being the tag mob which uses the System.Web.UI.MobileControls library instead of the asp tag. |
|