2
Answers

Datalist and datagrisview i .net

Hi.....



I want to know difference between datalist and datagridview in asp.net ? How to show data in the datagridview and datalist from database ? Please explain with example ?




Thanks......
Answers (2)
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