What is the difference between a custom control and a user control ?

Friday, June 26, 2009







































Sno

User Control

Custom Control



Is a file with the .ascx extension

Is a file with the .dll extension

2

Can be
only used with the application

Can be
used in any number of applications

3

Language
dependent.

They are
language independent, a control
created in c# can be used in vb.net

4

Can’t be
added to Visual studio Toolbox

Can be added to Visual studio Toolbox

5

Inherits
from Server controls and easy to create.

You have
to develop from scratch ,
so comparatively
difficult.

6

Generally
used for static content

Used when
dynamic content is required

What are the differences between Trace and Debug?



















Sno

Trace

Debug



Works in both Debug and Release mode

Works
only in Debug mode.

2

Trace is enabled by default in visual studio

Debug is not enabled. You can manually do that.




How to call a user controls method from its parent?

For example the name of your control be a SecureLoginControl and the solution be MyControls and the method you are going to call is SecuredAuthentication(), then the coding you need to do is ,

Control declaration:
Public MyControls.SecureLoginControl objSecureLoginControl ;

When calling:
boolean b;
b=objSecureLoginControl.SecuredAuthentication();

or you can call like this also,

((SecureLoginControl)Panel1.FindControl("objSecureLoginControl")).SecuredAuthentication();

What are asynchronous callbacks in .net?

It means that a call is made from a Main Program to a .net Class’s method and the program continues execution. When the callback is made ( means the method has finished its work and returns value) , the Main program handles it.

What are the differences between machine.config and web.config files?





























Sno

Web.config

Machine.config



It is a config file for a single application.

It is a config file which is common for all the applications in a machine

2

It will be available in the application folder.

It is available in the Microsoft.NET\Framework\{version}\CONFIG Folder.

3

The settings in the web.config overrides that of Machine.config

Cant do.

4

Automatically installed when visual studio .net is installed

This is automatically created when you create an asp.ne website




What is web.config.? How many web.config files can be allowed to use in an application?


1.    
 

The Web.Config file is the configuration file for
asp.net web application or a web site. prefix="o" ?>



2.    
 

You can have as many Web.Config files as you want
, but there can be only one web.config file in a single folder.

What are the differences between value and reference types

























Sno


Value Types



Reference Types



They contain their data directly

They store a reference to their value’s memory

2

They are allocated for storage either in stack or inline in structure..

They are allocated for storage in heap

3

can be built-in (implemented by the runtime), user-defined, or enumerations

self-describing types, pointer types, or interface types.


How do you relate an aspx page with its code behind page ?



Using the Page Directive.


<@page .. codefile="yourcsfile.aspx.cs" ...

Can we throw exception from catch block?



Yes.

where does a sharepoint webpart inherit from?

To create a SharePoint Web Part, you should inherit from the


Microsoft.SharePoint.WebPartPages.WebPart


base class.


For creating a basic sharepoint webpart see this link,




http://msdn.microsoft.com/en-us/library/ms452873(loband).aspx

what is autoeventwireup?

It is an automatic way to associate Asp.net Page events and methods.


When the autoeventwireup page attribute is set to true page events are automatically called.


The disadvantage is that it expects page events in a predictable way , so you loose the flexibility of choosing your own event handler names.

UML tutorials

www.uml.org



www.sparxsystems.com.au/uml-tutorial.html




http://uml-tutorials.trireme.com/



www.tutorialspoint.com/uml/index.htm



www.freebookcentre.net/.../Free-Uml-Books-Download.html




http://courses.softlab.ntua.gr/softeng/Tutorials/UML-Use-Cases.pdf

.Net Tutorials


http://asp.net



www.w3schools.com/ASPNET/default.asp




http://aspalliance.com




www.dotnetspider.com



http://www.techtutorials.info/wbmsnet.html style="font-size: 11pt; font-family: Calibri">




www.learnvisualstudio.net/




www.15seconds.com




www.aspnettutorials.com




www.411asp.net/home/tutorial




www.startvbdotnet.com



www.programmingtutorials.com/vbnet.aspx




www.devarticles.com/c/b/VB.Net




www.internettutorials.net



www.xml.com/pub/rg/_NET_Tutorials

mcse tutorial



www.intelligentedu.com/newly.../MCSE_Windows2000.html



www.mcsetutorialsonline.com



apex.vtc.com/mcse-bundle.php


www.velocityreviews.com/.../t237762-online-mcse-tutorial.html

www.learnthat.com/.../learn-430-windows_cp_mcse_practice_exam.htm

www.self-certify.com/mcse-tutorial.asp


http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.skills_assessment&tid=bcee1d4b-e637-4ee6-989b-74acbe5efddb&cat=en_US_0d692642-c6e2-49ae-92c9-59a79e4fd247&lang=en&cr=US&sloc=&p=1



www.softwaretrainingtutorials.com/mcse-2003.php

microsoft tutorials



www.microsoft.com/education/tutorials.mspx


http://office.microsoft.com/en-us/training/default.aspx


www.officetutorials.com


http://databases.about.com/od/tutorials/Tutorials.htm


http://www.free-training-tutorial.com



http://www.learnthat.com


www.tutorialguide.net/microsoft

Free domain from Microsoft with lot of features




Free domain from Microsoft with lot of features. Get benefitted from it.

Free domain from Microsoft with lot of features


Code Green Contest - Try it for a chance to win $10K

Code Green Contest - Try it for a chance to win $10K

Code Green Contest

LinkWithin

Blog Widget by LinkWithin

Recommended Books