Interview Question (Please ge me answer)

Posted by Vipinpaliwal under ASP.NET on 1/29/2010 | Views : 1483 | Status : [Member] | Replies : 2
1.) Authentication modes,Default,and there uses,how to use passport mode
2.)Sql Triggers
3.)Adding a column name thr. query.
4.)Diff. b/n server.transfer and response.redirect
5.)diff. b/n html textbox with iD & runat="server" &asp.net textbox
6.)Diff b/n repeater ,datagrid,datalis&gridview
7.)Paging in datagrid(meaning of allow custom paging)
8.)Diff. b/n SP & function
9.)Http handler and http context
10) Inproc,outProc.




Responses

Posted by: RtpHarry on: 1/31/2010 [Member] [MVP] Bronze

Up
0
Down
Thats a lot of questions for one thread! You would probably get a better response if you split this up into several threads so that people can easily answer them without doing a massive amount of work.

In fact a lot of them look like they would be pretty easily answerable by searching them out in Google.

Vipinpaliwal, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RtpHarry on: 1/31/2010 [Member] [MVP] Bronze

Up
0
Down
Hey I was working on a laptop earlier and it was a bit fiddly to look it up.

1.) Authentication modes,Default,and there uses,how to use passport mode
The most common website auth mode is Forms. It means that the user logs in via a form on the webpage and then an authticket is stored in a cookie for identification. As far as I know it is possible to use passport with .net but you have to have a contract with microsoft to use it. Passport is also an old name for the windows live id as far as i know.

2.)Sql Triggers
A trigger is a way of getting some sql code to automatically execute in certain circumstances.
http://www.sqlteam.com/article/an-introduction-to-triggers-part-i

3.)Adding a column name thr. query.
Not sure what you mean by this?

4.)Diff. b/n server.transfer and response.redirect
There are several differences. In my experience you should mostly be using response.redirect. This performs a 302 redirect by default (response.redirectpermanent has been introduced in .net 4). You can read about the new one here:
http://runtingsproper.blogspot.com/2009/10/new-google-friendly-301-redirects-in.html

The concept behind server.transfer was brought over from the classic asp days and it has always seemed like a messy way to do things. If you transfer a page then several things happen: the page url stays as the previous page, the page lifecycle carries on in the new page without throwing away the other pages data and the authentication for that page is not rechecked against the new pages url.

There are various technical discussions of this:
http://www.google.co.uk/search?q=asp.net+server+transfer+vs+response+redirect

5.)diff. b/n html textbox with iD & runat="server" &asp.net textbox
The asp.net textbox is a control in itself. When you add runat="server" to a normal html tag then it is converted into one of several controls. Most of the controls dont have a class dedicated to that tag and they become HtmlGenericControl instances:
http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlgenericcontrol.aspx

The input tag does have an equivalent class however which is HtmlInputText:
http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlinputtext.aspx

If you look at the left hand menu you will find a bunch of classes all starting with Html. This shows you the other tags that have dedicated classes.



Well thats half of them... maybe somebody else wants to offer up a few answers?

Vipinpaliwal, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response