Few Questions on asp.net
-
Hi I have few questions 1. What is the difference between a virtual directory and website? 2. What is the difference between get and post methods of form? 3. What Garbage Collector will do when you say Object=nothing in Vb.net or object=null in C#? 4. What is the principal object? Where it is useful and how? 5. Please tell me series of events that will fire when you execute a web page 6. what are the differences between HTML server control and asp.net server control? 7. What autoeventwireup will do? Regards,
-
Hi I have few questions 1. What is the difference between a virtual directory and website? 2. What is the difference between get and post methods of form? 3. What Garbage Collector will do when you say Object=nothing in Vb.net or object=null in C#? 4. What is the principal object? Where it is useful and how? 5. Please tell me series of events that will fire when you execute a web page 6. what are the differences between HTML server control and asp.net server control? 7. What autoeventwireup will do? Regards,
Quick Anser: Buy a ASP.NET/C# book. GetOn&GetGoing wrote: 7. What autoeventwireup will do? It use to automaticlly associate page events and methods , it has to be set to false when you use VS.NET cause if you set it to true every event call twice. GetOn&GetGoing wrote: 6. what are the differences between HTML server control and asp.net server control? What is HTML Server control? You mean Custom control? Mazy "Improvisation is the touchstone of wit." - Molière
-
Hi I have few questions 1. What is the difference between a virtual directory and website? 2. What is the difference between get and post methods of form? 3. What Garbage Collector will do when you say Object=nothing in Vb.net or object=null in C#? 4. What is the principal object? Where it is useful and how? 5. Please tell me series of events that will fire when you execute a web page 6. what are the differences between HTML server control and asp.net server control? 7. What autoeventwireup will do? Regards,
In no particular order: GetOn&GetGoing wrote: 2. What is the difference between get and post methods of form? GET method "encodes" the request into the URL... e.g. http://mysite/index.aspx?par1=sdfsd&par2=dfgsdf POST method "encodes" the request in the HTTP header... e.g. http://mysite/index.aspx (The details are in the HTTP header and so do not appear in the URL) Which method you choose can effect the way you handle the form in your code (i.e. using Request.QueryString[] (GET mwthod) or Request.Form[] (POST method)) GetOn&GetGoing wrote: 4. What is the principal object? Where it is useful and how? Th IPrincipal interface??? Used normally for authentication but has other uses. GetOn&GetGoing wrote: 6. what are the differences between HTML server control and asp.net server control? HTML Server controls are normal html controls that can have events handled on the server. ASP.NET Server controls are ASP.NET controls that are generally "parsed" (that's completely the wrong word to use but you get my drift) to produce the relevant HTML code on the client side. ASP.NET Server controls give you more features (in general) but less control (read: no control) over the HTML produced. HTML Server controls generally allow you to create the HTML as you see fit and then handle events on the server. GetOn&GetGoing wrote: 7. What autoeventwireup will do? Basically is automatically maps events on the webpage (i.e. user clicks a button) to code on the server. GetOn&GetGoing wrote: 5. Please tell me series of events that will fire when you execute a web page Create one... run in debug mode... follow what happens :-D GetOn&GetGoing wrote: 3. What Garbage Collector will do when you say Object=nothing in Vb.net or object=null in C#? Nothing.. the garbage college only "collects" when the memory is running out so setting an object to null won't do anything (i.e. it won't initiate a Garbage collection)... I'm not sure if that is what your asking or if you are asking what will happen to that object during a garbage collection... if it's the latter then it depends on a number of things. GetOn&GetGoing wrote: 1. What is the difference between a virtual directory and website? _http://www.mysite.com/myVirtualDirectory_ might not necessarly map to c:\bla\bla\bla\
-
In no particular order: GetOn&GetGoing wrote: 2. What is the difference between get and post methods of form? GET method "encodes" the request into the URL... e.g. http://mysite/index.aspx?par1=sdfsd&par2=dfgsdf POST method "encodes" the request in the HTTP header... e.g. http://mysite/index.aspx (The details are in the HTTP header and so do not appear in the URL) Which method you choose can effect the way you handle the form in your code (i.e. using Request.QueryString[] (GET mwthod) or Request.Form[] (POST method)) GetOn&GetGoing wrote: 4. What is the principal object? Where it is useful and how? Th IPrincipal interface??? Used normally for authentication but has other uses. GetOn&GetGoing wrote: 6. what are the differences between HTML server control and asp.net server control? HTML Server controls are normal html controls that can have events handled on the server. ASP.NET Server controls are ASP.NET controls that are generally "parsed" (that's completely the wrong word to use but you get my drift) to produce the relevant HTML code on the client side. ASP.NET Server controls give you more features (in general) but less control (read: no control) over the HTML produced. HTML Server controls generally allow you to create the HTML as you see fit and then handle events on the server. GetOn&GetGoing wrote: 7. What autoeventwireup will do? Basically is automatically maps events on the webpage (i.e. user clicks a button) to code on the server. GetOn&GetGoing wrote: 5. Please tell me series of events that will fire when you execute a web page Create one... run in debug mode... follow what happens :-D GetOn&GetGoing wrote: 3. What Garbage Collector will do when you say Object=nothing in Vb.net or object=null in C#? Nothing.. the garbage college only "collects" when the memory is running out so setting an object to null won't do anything (i.e. it won't initiate a Garbage collection)... I'm not sure if that is what your asking or if you are asking what will happen to that object during a garbage collection... if it's the latter then it depends on a number of things. GetOn&GetGoing wrote: 1. What is the difference between a virtual directory and website? _http://www.mysite.com/myVirtualDirectory_ might not necessarly map to c:\bla\bla\bla\
Thanks friend But Garbage collector..I have so manydubts about the garbage collection.. We know that once GC is invoked all Live objects go down of the heap. But what will happen to there address.. How GC will synchronize between addresses