StatCounter

View My Stats

Tuesday, February 10, 2009

Which DLL handle *.aspx request?

Which DLL handle  *.aspx  request?


aspnet_isapi.dll Handles the *.aspx request.

Javascript File loading time in ASP.NET

Javascript File loading time in ASP.NET


U well know javascripts are running in the client machine. For example consider a ASP.NET web

form we used 2 javascript file means the client browser open and close a new connection for

loading each file from server to client.This will degrade performance of the page loading time .


So How big you are using the file is not a matter.The way of loading the file soon is important.

Example(1) 50 kb of a single file takes 6ms to load

A page load 3 javascript file.Those file total size is 20kb. This page takes 10ms to load

Page from server to client.

So Keep on considering how many files you are loading on a single page.This is one of the main performance issue.

Shell command in VBScript

Shell command in VBScript


'VBScript File
dim program
program="C:\Windows\System32\notepad.exe"
set oShell =CreateObject("wscript.shell")
oShell.Run(program)


For the above example i am running the system file through shell command

Taskkill.exe (Kill the task that running on local and remote machine)

Taskkill.exe (Kill the task that running on local and remote machine)


Examples:
TASKKILL /S system /F /IM notepad.exe /T
TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
TASKKILL /F /IM notepad.exe /IM mspaint.exe
TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe
TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM *
TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"

U can run this command through process class in .NET

what is Wrapper?

what is Wrapper?


We overwrite the original function into user friendly function.That function is called as wrapper.


For Example below consider the original function have 5 argument and it process those five argument


public void originalFunction(string arg1,string arg2,string arg3,string arg4,string arg5)
{
//Some processing happening by the use of those parameter
}


For the above example consider if we only often need to send 3 parameters. we no need to send another 2 parameters.

We can create a wrapper function and internally get call that original function:

Example:

public void WrapperFunction(string arg1,string arg2,string arg3,"","")
{
originalFunction(string arg1,string arg2,string arg3,"","");
}


For above WrapperFunction is a "Wrapper" for originalFunction. Above we just hard coded the unnecessary last 2 arguments.

dotnet-sql-interview FAG: What is the MVC Pattern (Model View Controller Pattern)?

dotnet-sql-interview FAG: What is the MVC Pattern (Model View Controller Pattern)?