Free Web Hosting

Download & Install Windows XP Service Pack 3(SP3)

November 8th, 2008 Bala Krishna Posted in ASP.Net, Asp.Net Tips, Operating System Tutorial, Window Application, windows xp No Comments »

Microsoft has released XP SP3 with bugfixes and new features.  This version includes old released update for Windows XP and bug fixes released in SP2.

SP3 also includes following new  features:

  • Support for Microsoft’s Network Access Protection security technology
  • Microsoft Kernel Mode Cryptographic Module
  • Black Hole Router detection algorithm
  • Keyless activation scheme

Download: WINDOWS XP SP3

AddThis Social Bookmark Button

Set / Retrieve Script Timeout in ASP

November 6th, 2008 Bala Krishna Posted in ASP.Net, Asp.Net Tips, Browser Stuff, Dot.Net, General, Tips and Tricks, VBScript, Visual Basic, Web Technology No Comments »

The ScriptTimeout property in ASP specifies the amount of run-time in seconds for a script before it terminates. The default value is 90 seconds set by IIS.

Set the script timeout:

<%
Server.ScriptTimeout=200
%>

Retrieve the current value of the ScriptTimeout property:

<%
response.write(Server.ScriptTimeout)
%>

AddThis Social Bookmark Button

VB Script Functions

January 11th, 2008 Bala Krishna Posted in ASP.Net, Asp.Net Tips, VBScript No Comments »

VBScript is a lightweight script programming language like JavaScript. It is light version of Microsoft Visual Basic for the web. VBScript can be inserted into a HTML document and run at client side. Below is the list of general function supported by VBScript. These function also available in Microsoft Visual Basic.

CDate Converts a valid date and time expression to the variant of subtype Date
   
Date Returns the current system date
   
DateAdd Returns a date to which a specified time interval has been added
   
   
DateDiff Returns the number of intervals between two dates
   
   
DatePart Returns the specified part of a given date
   
DateSerial Returns the date for a specified year, month, and day
   
DateValue Returns a date
   
Day Returns a number that represents the day of the month (between 1 and 31, inclusive)
   
FormatDateTime Returns an expression formatted as a date or time
   
Hour Returns a number that represents the hour of the day (between 0 and 23, inclusive)
   
IsDate Returns a Boolean value that indicates if the evaluated expression can be converted to a date
   
Minute Returns a number that represents the minute of the hour (between 0 and 59, inclusive)
   
Month Returns a number that represents the month of the year (between 1 and 12, inclusive)
   
MonthName Returns the name of a specified month
   
Now Returns the current system date and time
   
Second Returns a number that represents the second of the minute (between 0 and 59, inclusive)
   
Time Returns the current system time
   
Timer Returns the number of seconds since 12:00 AM
   
TimeSerial Returns the time for a specific hour, minute, and second
   
TimeValue Returns a time
   
Weekday Returns a number that represents the day of the week (between 1 and 7, inclusive)
   
WeekdayName Returns the weekday name of a specified day of the week
AddThis Social Bookmark Button

How to run FFMPEG command in Asp.Net

January 10th, 2008 Bala Krishna Posted in ASP.Net, Asp.Net Tips, Blogging, Browser Stuff, Bug Fix, Dot.Net, FFMPEG, FFMPEG-PHP, Linux, Linux Commands, Operating System Tutorial, Tips and Tricks, Web Design, Web Development, Web Hosting, Web Technology, Window Application, windows xp 2 Comments »

To run ffmpeg commands in asp.net you need to use Media Handler class. Here is an example how to use media handler class to run ffmpeg commands.

//Create media handler object of Media_handler class

Media_handler mymediahandler=new Media_handler();

// Get web site application path

string webapppath =Server.MapPath(Request.ApplicationPath);

//Get ffmpeg.exe full path from mapping

string ffmpeg_path=HttpContext.Current.Server.MapPath(”ffmpeg.exe”);

//Run FFMPEG command by calling Execute_FFMPEG function of Media_handler class

mymediahandler.Execute_FFMPEG(ffmpeg_path, “-i c:\\clock.avi -vcodec mp3 c:\\clock.flv”);

AddThis Social Bookmark Button