jink


Member since 04/30/2009

12 snippets

15 profile views

0 Comment(s) Posted

View their favorites

Profile

All time reputation: 7

Achievement

first submission:submitting first snipplet

jink's Recent SnippetsTagged aspnet



« Prev 1 Next »
  1. FAV

    ASP.net & MS AJAX: Enabling WebKit support (chrome, safari) in MS AJAX (fixing webkit browser detection)

    Load this Javascript after the MS AJAX files have been loaded. In the example I am using jQuery to call the patchMicrosoftAjax() method, but you can use any method you desire.
    JavaScript 8 views posted 10 years ago jink
  2. FAV

    ASP.net: Page Validation on Client Side.

    Page_ClientValidate is a global function. When called this will return true/false if the validator group provided is valid or not.
    JavaScript 3 views posted 10 years ago jink
  3. FAV

    JS/ASP.net: Bind to UpdatePanel's update event in Javascript

    JavaScript 3 views posted 10 years ago jink
  4. FAV

    ASP.net: Update SQL from a DropDownList dynamically created in a GridView.

    Bind the DropDownList like normal (set DataSourceID, DataTextField, DataValueField), and <%BIND%> the SelectedValue field. AutoPostBack should be enabled. In the OnSelectedIndexChanged:
    C# 7 views posted 10 years ago jink
  5. FAV

    DotNetNuke: Pull URL for a given tab NAME. (DNN 5.1+)

    Use this code to pull a DotNetNuke URL from a tab name. We use this to replace "?tabname=blah" type URLs which do NOT transfer language info.
    C# 8 views posted 10 years ago jink
  6. FAV

    ASP.net: Add a Javascript tag to the HEAD of the page.

    Call with the path of any javascript you want to load into the HEAD of the ASPX page.
    C# saved by 3 people 5 views posted 10 years ago jink
  7. FAV

    ASP.net: Retrieve PostBack sender (on Page_Load)

    Returns the postback sender ID. This is usually a button ID from a form that caused a post back.
    C# 4 views posted 10 years ago jink
  8. FAV

    ASP.Net: Working around Flash Cookie Bug AKA restoring the session | SWFUpload

    ASP saved by 2 people 13 views posted 10 years ago jink
  9. FAV

    ASP.net: Session timeout prevention (keep alive).

    Call AddKeepAlive() in Page_Load of the page that needs it. Change the path to the correct keep alive page. Page should disable caching, like in second code snippet.
    ASP saved by 2 people 5 views posted 10 years ago jink
  10. FAV

    ASP.net: Retrieve connection string from web.config

    Replace *SERVERNAME* with the name of the server name in the web.config
    ASP saved by 4 people 4 views posted 10 years ago jink
  11. FAV

    ASP.net: Prevent Caching of a Page

    Code snippet prevents caching of the page by setting http header values and a LAST MODIFIED header to prevent google from caching too long. This should go into the page load event.
    ASP saved by 2 people 5 views posted 10 years ago jink
  12. FAV

    ASP.net: Send a file to a user through Response

    ASP 3 views posted 10 years ago jink
« Prev 1 Next »