1
Answer

Web controls are not displaying

Ady4Net

Ady4Net

20y
1.7k
1
Hi, I'm a beginner to ASP.Net I'm not able to browse my asp.net application in the browser by using http://localhost/myapp/default.aspx. It gives an error HTTP 404 - File not found. But the same runs when I give my IP Address instead of 'localhost'. The other problem is this that any web control on my form doesn't displayed when I browse it only html controls are displayed. I'll be highly obliged if someone can help me out !!! Thanx
Answers (1)
0
Vikram
NA 319 262.4k 14y
Hi yashwant,
  
    Just Define variable in the Markup it consider as Global.

e.g
  
   <script type='text/javascript>
       var Navigateurl="~/block/abc.aspx";
         function pageLoad()
         {
                 //do something
         }

         function otherFunction()
        {
            var newurl = Navigateurl;
        }

</script>
This way you can declare the global variable in the markup.

Hope this will help you.

Regards,
 Vikram