ASP/ ASP.NET

  • ASP/ ASP.NET,  Programming,  Scripts

    Switching language in web user interface pages

    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

  • ASP/ ASP.NET,  Web Programming

    [VB] Improvements

    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/ ASP.NET,  Web Programming

    ASP.NET [VB] bugs

    <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

  • ASP/ ASP.NET,  Web Programming

    ASP [VB] bugs

    If <%inline script%> used[Server.CreateObject], the connection object is created right away, while if <object> tag is inserted <%…%> <object …. <%…%> works, the object created by the <object> tag doesn’t get created until there is a use ex. if the object created using <object is a recordSet, then it is never created until recordSet.Execute.. or similar happens ========= if the object is created using Server.CreateObject inside a SUB or FUNCTION, then that object is never created until that SUB or FUNCTION is called. ====== <script language=”VBScript” runat=”server”> tag wouldn’t execute unless it is explicitely called, as a FUNCTION or SUB ======= If you Request.QueryString() a non-defined variable VBS automatically creates…

  • ASP/ ASP.NET

    .NET vs J2EE

    இவை இரண்டுமே ஒரு விடையத்தில் பொதுவானவை. இரண்டுமே programming language அல்ல. ஆனால் இரண்டுமே programming பண்ணுவதற்கு தேவையான விதிமுறைகளைக் கொண்டவை. அதாவது ஒரு framework என்று சொல்வார்கள். தூணைக் கட்ட முன் கம்பிப் பிணைப்பை வைப்பார்களே அதே போல் தான். சரி அந்த கம்பிப் பிணைப்பை வைத்த பின் cement போடுவது போல் தான் இந்த framework இக்குள் எழுதப்படும் programming language. இவ் விதிகள் யாவும் ஒரு மென்பொருளை உருவாக்குவதற்கு உதவும்.சில பொது விதிகளை உருவாக்கி, மேலதிக உதவி மென்பொருள் கோப்புக்களையும் உருவாக்கி, இப்படியான மேலதிக உதவி மென்பொருள் கோப்புகளை எப்படி பாவிக்க வேண்டும் என்று விதிகளை உருவாக்கி, எப்படி பெயரிட வேண்டும் என்று விதிகள் இட்டு, எப்படி மென்பொருள்களுக்கிடையே தகவல் பரிமாறப்பட வேண்டும் என்று வரையறுத்து மேலும் இவ்வாறான பல விதிமுறைகளுடன் ஒட்டுமொத்த விதிமுறைகளே இந்த frameword. இப்படியான விதிமுறைகள் தான் தற்போதைய நவீன மென்பொருள் தயாரிப்பிற்கும், பிறகு அதைப் பேணிப் பாதுகாத்து மேலும் பல செயற்பாடுகளை சேர்பதற்கும், பிழைகளை திருத்திக்…

  • ASP/ ASP.NET

    My Notes – ASP.NET

    ? Every Web page in .NET extends System.Web.UI.Page class == IL is short for Intermediate Language Another term for IL is Managed Code. This intermediate or managed code is generated by the JIT compiler. JIT is short for Just in Time compiler. The C#, VB.NET, Cobol.NET, and all other compilers that support the .NET Framework generate IL when compiling a set of code. To get an idea of what IL looks like, start up ILDASM by opening a Visual Studio .NET Command Prompt (Start -> All Programs -> Microsoft Visual Studio .NET -> Visual Studio .NET Tools -> Visual Studio .NET Command Prompt) and type ILDASM. The ILDASM tool is…

© 2023 - All Right Reserved. | Adadaa logo