What is APP Domain? What is the main role of it? Can we create custom APP Domain?

The primary purpose of the AppDomain is to isolate an application from other applications. Win32 processes provide isolation by having distinct memory address spaces. The .NET runtime enforces AppDomain isolation by keeping control over the use of memory – all memory in the AppDomain is managed by the .NET, so… Continue reading

Can we run asp.net application without WEB.CONFIG file?

YES: Because all the configuration settings will be available under MACHINE.CONFIG file, by default these settings will be applied to all asp.net applications. The MACHINE.CONFIG file will be automatically loaded when .net framework is installed. It is something like if we had not defined the web.config the application will take… Continue reading

What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

You must set the DataMember property which Gets or sets the specific table in the DataSource to bind to the control and the DataBind method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query.

How to write XML file by using dotnet code?

void CreateXmlFile(String xmlFilePath) { XmlTextWriter xmlWriter = new XmlTextWriter(xmlFilePath, Encoding.UTF8); xmlWriter.WriteStartDocument(true); xmlWriter.WriteStartElement(“Departments”); //Root Element xmlWriter.WriteStartElement(“Department”); //Department Element xmlWriter.WriteStartAttribute(“Name”); //Attribute “Name” xmlWriter.WriteString(“Development”); //Attribute Value xmlWriter.WriteEndAttribute(); xmlWriter.WriteStartElement(“Employees”); //Started Employees Element xmlWriter.WriteStartElement(“Employee”); //Started Employee Element xmlWriter.WriteStartAttribute(“Name”); //Attribute “Name” xmlWriter.WriteString(“Sabu C.Alex”); //Attribute Value xmlWriter.WriteEndAttribute(); xmlWriter.WriteStartAttribute(“Age”);//Attribute “Age” xmlWriter.WriteString(“28”);//Attribute Value xmlWriter.WriteEndAttribute(); xmlWriter.WriteString(“Sabu C.Alex is working as… Continue reading

How to upload big file on server by using code?

In Web.config file <httpRuntime executionTimeout = “number” maxRequestLength = “number” requestLengthDiskThreshold = “number” useFullyQualifiedRedirectUrl = “[True|False]” minFreeThreads = “number” minLocalRequestFreeThreads = “number” appRequestQueueLimit = “number” enableKernelOutputCache = “[True|False]” enableVersionHeader = “[True|False]” apartmentThreading = “[True|False]” requireRootedSaveAsPath = “[True|False]” enable = “[True|False]” sendCacheControlHeader = “[True|False]” shutdownTimeout = “number” delayNotificationTimeout = “number” waitChangeNotification… Continue reading

What is Authentication & Authorization in dot net?

Authentication is the process of validating a user on the credentials (username and password) and authorization performs after authentication. After Authentication a user will be verified for performing the various tasks, Its access is limited it is known as authorization. Authentication – It is a process to verify the user’s… Continue reading

How to set Globalization setting in web.config for all application?

<globalization enableClientBasedCulture=”true|false” requestEncoding=”any valid encoding string” responseEncoding=”any valid encoding string” fileEncoding=”any valid encoding string” responseHeaderEncoding = “any valid encoding string” resourceProviderFactoryType = “string” enableBestFitResponseEncoding = “true|false” culture=”any valid culture string” uiCulture=”any valid culture string”/>