Posts

Showing posts from 2012

Place .NET DLL in GAC

Today other team guy has asked me help as he was facing some problem in trying to place a .NET DLL in GAC where he does not have source code with him. Potentially you just have to follow regular steps as mentioned below to place the DLL in GAC; 1. Generating the public key: Go to visualStudio.Net command prompt and type the following command: sn -k keyfile1.snk Here keyfile1.snk is the keyfile we are generating. You can store this key file in the bin folder of the assembly. In order to do this u have to go to the bin folder. For example: C:\foldername\assemblyname\bin sn-k keyfile1.snk By doing this the keyfile is stored in the bin folder. 2. Than place the keyfile into the Assembly. Go to AssemblyInfo.cs file: [assembly: AssemblyKeyFile("C:\foldername\assemblyname\keyfile1.snk")] 3. Then build the Assembly. 4. Placing the assembly into GAC This process is fine when you have source code with you. What if you don't have the source code with you and you need to put it to t...

Interview Questions to Ask the Employer

It's your turn! As the interview comes to a close, one of the final questions you may be asked is "What can I answer for you?" Have interview questions of your own ready to ask. You aren't simply trying to get this job - you are also interviewing the employer to assess whether this company and the position are a good fit for you. Here are questions to ask the interviewer so you can ensure the company is a good match for your qualifications and interests. How would you describe the responsibilities of the position? How would you describe a typical week/day in this position? Is this a new position? If not, what did the previous employee go on to do? What is the company's management style? Who does this position report to? If I am offered the position, can I meet him/her? How many people work in this office/department? How much travel is expected? Is relocation a possibility? What is the typical work week? Is overtime expected? What are the prospects for growth and a...

Difference Between Viewresult() and ActionResult()

ActionResult is an abstract class that can have several subtypes: a) ViewResult - Renders a specifed view to the response stream b) PartialViewResult - Renders a specifed partial view to the response stream c) EmptyResult - An empty response is returned d) RedirectResult - Performs an HTTP redirection to a specifed URL e) RedirectToRouteResult - Performs an HTTP redirection to a URL that is determined by the routing engine, based on given route data f) JsonResult - Serializes a given ViewData object to JSON format g) JavaScriptResult - Returns a piece of JavaScript code that can be executed on the client h) ContentResult - Writes content to the response stream without requiring a view i) FileContentResult - Returns a fle to the client j) FileStreamResult - Returns a fle to the client, which is provided by a Stream k) FilePathResult - Returns a fle to the client You should use ViewResult to make code more readable and find bugs easier, but there can be other benefits too. Since I use PO...

Interview Questions - Part 6

1. What is LAYOUT keyword does in MVC 3. 2. What is the difference between ASP.NET and MVC 3. How does master pages implementation achieved in MVC 3 4. What are the filters available in MVC 3 5. How do security can be implemented in MVC 3 6. Can I have constructors in struct 7. Why can't I inherit a struct 8. If I have two structs then if I want to compare both of them 9. What is the difference between Aggregation & Composition. Give an example to explain each. 10. What is the difference between Generalization & Specialization. Give an example to explain each. 11. What are the ways I can implement Entity Framework. 12. What is the different between DataContract & MessageContract and when to use what 13. What are the types of instance creation in WCF 14. How do we implement Transactions in WCF calls 15. What is the difference between Cluctured & Nonculstured indexes 16.

SQL SERVER – Basic of JOINs

A good blog from my favorite SQL expert, Pinal Dave, who added details about JOINs with proper explanation, examples and images... Click Here

SQL Server- Union and Union All

A good link which explains this topic with simple example; Click Here

Choosing a UI Pattern (MVC, MVP, and ASP.Net MVC)

I came across a nice blog by Greg Galipeau, who explained to choose a UI pattern; MVC, MVP, ASP.NET MVC. Please click here to get the details.