Quick Search

Dot Net Interview Quations 2

February 27th, 2010 by admin
Leave a reply »

 

What are Attributes?
Attributes are declarative tags in code that insert additional metadata into an assembly. There exist two types of attributes in the .NET Framework: Predefined attributes such as AssemblyVersion, which already exist and are accessed through the Runtime Classes; and custom attributes, which you write yourself by extending the System.Attribute class.
What are the Types of Assemblies?
Assemblies are of two types:
1. Private Assemblies
2. Shared Assemblies
Private Assemblies: The assembly is intended only for one application. The files of that assembly must be placed in the same folder as the application or in a sub folder. No other application will be able to make a call to this assembly. The advantage of having a private assembly is that, it makes naming the assembly very easy, since the developer need not worry about name clashes with other assemblies. As long as the assembly has a unique name within the concerned application, there won’t be any problems.
Shared Assemblies: If the assembly is to be made into a Shared Assembly, then the naming conventions are very strict since it has to be unique across the entire system. The naming conventions should also take care of newer versions of the component being shipped. These are accomplished by giving the assembly a Shared Name. Then the assembly is placed in the global assembly cache, which is a folder in the file system reserved for shared assemblies.
What is an Intermediate language?
Assemblies are made up of IL code modules and the metadata that describes them. Although programs may be compiled via an IDE or the command line, in fact, they are simply translated into IL, not machine code. The actual machine code is not generated until the function that requires it is called. This is the just-in-time, or JIT, compilation feature of .NET. JIT compilation happens at runtime for a variety of reasons, one of the most ambitious being Microsoft’s desire for cross-platform .NET adoption. If a CLR is built for another operating system (UNIX or Mac), the same assemblies will run in addition to the Microsoft platforms. The hope is that .NET assemblies are write-once-run-anywhere applications. This is a .NET feature that works behind-the-scenes, ensuring that developers are not limited to writing applications for one single line of products. No one has demonstrated whether or not this promise will ever truly materialize.

CTS/CLS

The MSIL Instruction Set Specification is included with the .NET SDK, along with the IL Assembly Language Programmers Reference. If a developer wants to write custom .NET programming languages, these are the necessary specifications and syntax. The CTS and CLS define the types and syntaxes that every .NET language needs to embrace. An application may not expose these features, but it must consider them when communicating through IL.

ASP.NET Authentication Providers and IIS Security

ASP.NET implements authentication using authentication providers, which are code modules that verify credentials and implement other security functionality such as cookie generation. ASP.NET supports the following three authentication providers:

Forms Authentication: Using this provider causes unauthenticated requests to be redirected to a specified HTML form using client side redirection. The user can then supply logon credentials, and post the form back to the server. If the application authenticates the request (using application-specific logic), ASP.NET issues a cookie that contains the credentials or a key for reacquiring the client identity. Subsequent requests are issued with the cookie in the request headers, which means that subsequent authentications are unnecessary.

Passport Authentication: This is a centralized authentication service provided by Microsoft that offers a single logon facility and membership services for participating sites. ASP.NET, in conjunction with the Microsoft® Passport software development kit (SDK), provides similar functionality as Forms Authentication to Passport users.

Windows Authentication: This provider utilizes the authentication capabilities of IIS. After IIS completes its authentication, ASP.NET uses the authenticated identity’s token to authorize access.

To enable a specified authentication provider for an ASP.NET application, you must create an entry in the application’s configuration file as follows:
// web.config file

What is the difference between ASP and ASP.NET?
ASP is interpreted. ASP.NET Compiled event base programming.
Control events for text button can be handled at client javascript only. Since we have server controls events can handle at server side.
More error handling.

ASP .NET has better language support, a large set of new controls and XML based components, and better user authentication.

ASP .NET provides increased performance by running compiled code.

ASP .NET code is not fully backward compatible with ASP.

ASP .NET also contains a new set of object oriented input controls, like programmable list boxes, validation controls. A new data grid control supports sorting, data paging, and everything you expect from a dataset control. The first request for an ASP.NET page on the server will compile the ASP .NET code and keep a cached copy in memory. The result of this is greatly increased performance.

ASP .NET is not fully compatible with earlier versions of ASP, so most of the old ASP code will need some changes to run under ASP .NET. To overcome this problem,

ASP .NET uses a new file extension “.aspx”. This will make ASP .NET applications able to run side by side with standard ASP applications on the same server.

Posted in ASP.NET

You can follow any responses to this entry through the RSS 2.0 Feed. You can leave a response , or trackback from your own site.

36 commentsAdd your comment
  1. Dirk Smerdon says:

    I find your website very amusing. I love coming back to it each day to read additional content. Your site has been one of my favorite ones for the last few weeks and I would love to become a full time subscriber. I hope your content keeps going the way it is, and I will participate in many discussions if given the opportunity.

  2. My friend referred me to your blog, so I thought I’d check it out. Very interesting insights, will be back for more!

  3. Love this blog. I’ll be bookmarking this one. Thanks!

  4. Sooooooo amazing submit, i love some words so much and may i quote a few of them on my weblog? I also have e-mailed you relating to would it be possible for us to exchange our links, hope hearing from you soon.

  5. e-cigs says:

    great post, thanks. theres great stuff in this blog

  6. Thanks for sharing your script, I had a problem getting it installed but it was all my inability to get things in the right place;)

  7. howdy there, i just came across your web portal listed on yahoo, and i would like to say that you write interestingly good on your website. i am really taken by the method that you compose, and the message is outstanding. anyhow, i would also love to know whether you would like to exchange links with my website? i will be certainly more than willing to reciprocate and put your link off in the blogroll. waiting for your answer, i would like to convey my appreciation and gooday!

  8. I totally love your blog! Thank you for the post, very informative. wty1d8

  9. I found your blog in Google few moments ago, and luckily, this is it I was looking for the last weeks, thanks

  10. hi,The Subject of your blog is very Suit to me, I hope more interflow with you this theme.

  11. Phil Mosty says:

    hi, thank you for this latest information. Therefore, I would like to ask for your permission to add some of this information in my blog. Of course, I will provide a link to your website, as a source of my mentioned information.

  12. I printed a lot of your blog out thanks my friend,Cordie Jacobi

  13. hey, good blog! is this the only one you have?

  14. goodto see you make postings on this issue, I should bookmark this web site. Just keep up the good job.

  15. Just wanted to say this Blog is in my rss you do magic on words.. Cheers, Audria Brigantino

  16. Richie Bagi says:

    Merely want to say your article is awesome. The lucidity in your post is simply impressive and i can assume you are an expert on this field. Well with your permission allow me to grab your rss feed to keep up to date with succeeding post. Thanks a million and please keep up the strong work.

  17. fashion says:

    i like your blog and article.thanks and bookmark it

  18. Very handy place of duty. Bookmarked. Credit on behalf of it!

  19. dogging uk says:

    I really like your blog. You make it interesting to read and entertainging at the same time. I cant wait to read more from you.

  20. uk swingers says:

    Great info. Just found this blog while surfing the net.

  21. fashion says:

    Very good site, where did you come up with the knowledge in this post? I’m happy I found it though, ill be checking back soon to see what other articles you have.

  22. Delphia Jun says:

    Amazing post. I’ve added this page to check back later.

  23. I found this site under my bookmarks, probably bookmarked it my wife. Do you have a rss or something like this? I want to add you to my rss reader, becous liked this article especially your way how to explain this.

  24. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.

  25. I am happy to find so many useful information here in the post, we need develop more strategies in this regard, thanks for sharing. . . . . .

  26. Aw, this was a really quality post. In theory I’d like to write like this too – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get something done.

  27. I really like your site and i really appreciate the excellent quality content you are posting here for free for your online readers. Can you tell us which blog platform you are using?

  28. I am just making a blog related to this. If you allow, I would like to use some of your content. And with full refernce of course. Thanks in advance.

  29. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely useful for me.

  30. Hello… I didn’t had a good read from a long time.Truly glad i found it on yahoo.I was talking with my friends two days ago around this issue and I have to say you make things very clear for me. Thanks and good luck,

  31. I like this website presented and it has given me some sort of inspiration to succeed for some reason, so thank you.

  32. I like this data given and it has given me some sort of commitment to have success for some reason, so thank you.

  33. Flagyl says:

    I found your site from altavista and it is eye-popping. Thank you for sharing such an incredible article…

 

Leave a Reply