ஒரு பார்வை

September 18, 2006

Detect users leaving your web page

Filed under: ASP/ ASP.NET,Programming,Scripts — CAPitalZ @ 9:20 am

leaving.asp

The above file has the necessary coding to detect a user leaving your web page. Just rename the file to “leaving.asp”.

_____
CAPital

September 8, 2006

Switching language in web user interface pages

Filed under: ASP/ ASP.NET,Programming,Scripts — CAPitalZ @ 2:58 pm

language.asp

Use the above file to switch between two languages of your web user interface. Ex English and French.

All your webpages has to be named

<somename>_e.asp

<somename>_f.asp

ex. aboutMe_e.asp, index_f.asp

While the user is on one page [aboutMe_e.asp], s/he can click on the menu option “language” and it will automatically switch to the other language [aboutMe_f.asp]. Therefore, you don’t have to worry about linking the other language files, since this “language” option on the menu would automatically display the correct file.

Note: Please rename the file to “language.asp”

_____
CAPital

August 26, 2006

To get WINDOWS USER ACCOUNTS in VB for webpage

Filed under: ASP/ ASP.NET,Programming,Scripts — CAPitalZ @ 2:18 pm

Code To get WINDOWS USER ACCOUNTS in VB for webpage


Use the above file to get Windows account name and details. Code is in VB.NET

Courtesy: http://adamdev/lech

_____
CAPital

July 6, 2006

[VB] Improvements

Filed under: ASP/ ASP.NET,Web Programming — CAPitalZ @ 11:40 am

Avoid multiple Response.Write statements and group them in to few. Slower:

‘Add a default Select Word
Response.Write ” <option value=””0″”>(Select a Program Manager)</option>”

¨       Do While Not objRs.EOF
Response.Write ” <option value=” & objRs!ProjManKey & “>” & objRs!ProjMan & “</option>”
objRs.MoveNext
Loop
Response.Write “</font> </select>”

Faster:

Dim strHTML

‘Add a default Select Word
strHTML =  ” <option value=””0″”>(Select a Program Manager)</option>”

Do While Not objRs.EOF
strHTML = strHTML & ” <option value=” & objRs!ProjManKey & “>” & objRs!ProjMan & “</option>”
objRs.MoveNext
Loop
strHTML = strHTML &  “</font> </select>”

Response.Write strHTML

______
CAPital

ASP.NET [VB] bugs

Filed under: ASP/ ASP.NET,Web Programming — CAPitalZ @ 11:40 am

<script language=”VBScript” runat=”server”>

above seems to be executing at server AFTER the page is loaded.  So loading data before a page is loaded is not working..

<% %> this inline script seems t be loading BEFORE a page is loaded in a web browser.

_____
CAPital

Next Page »

Blog at WordPress.com.