Moses on DotNetSlackers

Junior who is Eager to learn!

This site

News

@ UAE

Blogs

Sponsors

  • MaximumASP
  • Packet Sniffer
  • outsourcing help desk services

October 2006 - Posts

Internet Explorer 7 for Windows XP Service Pack 2 (SP2) Is Now Available

It's here! Upgrade your browser with confidence. Install the new Internet Explorer 7, and get the benefits of tabbed browsing, better printing, easier searches, and improved security, download it now

http://www.microsoft.com/windows/ie/downloads/default.mspx?mg_id=10013

Posted: Oct 21 2006, 04:02 AM by mosessaur
Filed under: ,
.Net Interview Questions [Part 3]
You have been asked to recommend a security model for the .NET-based application your project team is working on. The application's user IDs and passwords will be stored inside a SQL Server database. Which .NET Framework component can be used to enable an application to use its own user ID and password authentication system?
  • A. ApplicationPrincipal
  • B. WindowsPrincipal
  • C. GenericPrincipal
  • D. WindowsSecurity
.Net Interview Questions [Part 2]
  1. Suppose that you create a class named Employee with its strongly typed collection named EmployeeCollection.
    You need to enable your EmployeeCollection to support sorting of your Employee objects! what should you do?
  2.  You are creating the first version of an application to manage rich text documents. The application must meet the following design requirements:

     You are creating the first version of an application to manage rich text documents. The application must meet the following design requirements:

    • Support the file system and a Microsoft SQL Server database as data store.
    • Ensure the following for future versions:
      • Add support for additional data stores, including network storage.
      • Acquire the ability to interface with third-party-distributed authoring and versioning tools.
    • Bring additional storage options online without having to redeploy the entire application.

    You need to identify an appropriate approach to meet these requirements. Which approach should you choose?

    • A. Create a single Document component to represent the rich text content of a document and include methods on the component to persist and retrieve rich text for each type of data store.
    • B. Create a single Document component to represent the rich text content of a document and an enumeration to represent each available data store. Include a parameter of the enumerated type in methods interfacing with a data store.
    • C. Create a single Document component to represent the rich text content of a document and an enumeration to represent each available data store. Include a property on the Document component to permit the selection of a data store.
    • D.Create a Document component to represent the rich text content of a document. Create a DocumentRepository component to manage the various data store.
Setting MasterPage ID Property

I face an issue that I want to set the ID of the MasterPage to use it in Request.Form. MasterPage is considered a UserControl as it inherits direclty from it. so when you add controls to your MasterPage and then create a content Page based on your MasterPage, your control ClientID will be prefixed with "ctl##$"
where ## is a number like "ctl00$cmbCulture".

So I created a constructor in the master page and add my ID to it like this:

public MasterPage()
{
this.ID = "MyMasterPage"
}

so now I know the generated ASP.NET ClientID will be "MyMaterPage$cmbCulture"

Ok now let me tell you my problem may be someone can give me a better solution. I want to build a multi-language application. I overrided the InitializeCulture Method in my Base Page. The overrided method uses Request.Form["cmbCulture"] to get the Culture from a drop down list. My cultures Drop down list is located on a master page, so I cannot access it the normal way mentioned above. so I have to work arround to use my own ASP.NET generated ClientID to use it as descriped above.

So, any better suggestions will be welcomed and appreaciated

.Net Interview Questions [Part 1]

In the last month, I was doing interview for .Net senior developers, mostly min 2 years working experiance and 3-4 years general experiance in .NET.
I'm going to post some of the questions I asked to them. and I'd appreciate if I can share your ideas about it. I mean if you see it these questions fair or not. If it is good expressed or not beside your answers and personal opinions.
I'm not going to post all the questions at one time, but I'm going to post them in several posts.

One of the questions I invent:

  1. Do you think it is a good practice to cach a DataReader? and why?
  2. If you have a DataSet that contains several tables -lets say 4- and you want to write only one of them to an XML document, What you will do if you are working under .Net 1.x and what you'll do under .Net 2.0 and what is the deference between both platforms according to this issue.

I'm going to post my answers about these question after sometime. So hope to read yours and your opinions.

By the way for both questions, out of 20 ony 3 candidates answer them and may be they answer only one of them correctly

.Net Coding Standards

I was reading a post on Derek Smyth's Software Development Blog about C# coding standards, and I thought I can join him but posting another useful document about C# coding standards and VB.Net Coding standards too. I've read few of IDesign document on C# coding standards, it is greate and useful. They give us options and guide lines.

During my research to get a document like that, I found this document C# Coding Standards by Lance Hunt. If you combine both documents, you are going to get out with your favourit coding standard that you wish.

About VB.NET coding standards, I found this resource. Hope these documents will be useful for you.

Microsoft Announced .NET Framework 2.0 SYSTEM.WEB.DLL Security Update

Microsoft released .NET Framework 2.0 SYSTEM.WEB.DLL Security Update because of security issue has been identified that could allow an attacker to compromise a computer running the .NET Framework 2.0 ASP.Net and gain access to confidential data. You can help protect your computer by installing this update from Microsoft.
Check it out here http://www.microsoft.com/downloads/details.aspx?FamilyID=34c375aa-2f54-4416-b1fc-b73378492aa6&DisplayLang=en

As this is my first post on my blog, I thought it should be something useful till I write my first actual post.

Regards,

Posted: Oct 11 2006, 10:33 AM by mosessaur | with 1 comment(s)
Filed under: ,
The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.