Import excel file in 64 bit Operating System

1. http://social.msdn.microsoft.com/Forums/en/transactsql/thread/a69f0f41-eb54-4a9c-af6f-f34b71281380

I have found the work around for this by using Microsoft.Ace.OleDb driver,

for this i need to install a Ace.OleDb driver that i downloaded from Microsoft’s site,

2. http://blogs.msdn.com/b/farukcelik/archive/2010/06/04/accessing-excel-files-on-a-x64-machine.aspx

3. http://www.dotnetspark.com/links/12907-reading-excel-files-from-64-bit-asp-net.aspx

Advertisements

Font chữ khi export Gridview sang PDF sử dụng thư viện itextsharp

Khi export dữ liệu từ Gridview sang định dạng PDF sử dụng thư viện itextsharp, font chữ thường không đúng định dạng,

sau đây là một số bài viết giải quyết vấn đề này.

1. http://stackoverflow.com/questions/6110311/how-to-write-utf-8-characters-to-a-pdf-file-using-itextsharp

2. http://stackoverflow.com/questions/4902033/itextsharp-5-polish-character/4903223

3. http://stackoverflow.com/questions/1322303/html-to-pdf-some-characters-are-missing-itextsharp

4. http://www.codeproject.com/Articles/196019/Display-Chinese-Characters-in-PDF-created-by-iText

5. http://forums.asp.net/t/1868974.aspx/1?Export+Binded+Gridview+to+Any+Doc+Excel+or+Word+or+Any+format+

Calling a jquery function from code behind in asp.net

1. Calling a jquery function from code behind in asp.net

  function topBar(message) {
        alert(message);
        var alertDiv = $('<div id="alert">' + message + '</div>');
        $(document.body).append(alertDiv);
        var $alert = $('#alert');

It’s possible that your body tag isn’t loaded at the time of the script running, which would mean that the$(document.body) reference would be empty – which jquery would silently fail to add the alert div to. Either way, it never hurts to wrap your calls in a $(document).ready event:

    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "json",
              "$(document).ready(function() { topBar('Successfully Inserted');});", true);

iOS 6.0 caching Ajax POST requests

Bản mobile trên iPhone 4 chỉ đăng nhập 1 lần, lần thứ 2 là chết, tìm mãi mới thấy thằng này.

$.ajax({
    type: 'POST',
    headers : { "cache-control": "no-cache" },
    url : ,
    data:,
    dataType : 'json',
    success : function(responseText) {…}

Đã giải quyết được, đăng nhập ngon luôn.

Tham khảo:
http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results

Safari in iPhone with submithandler

1. http://stackoverflow.com/questions/11835286/android-jquery-show-not-working-in-submit-handler

2. http://stackoverflow.com/questions/4131056/why-does-this-work-in-firefox-but-not-in-safari

3. http://stackoverflow.com/questions/8026956/jquery-in-iphone

4.http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Q_26852032.html

5.http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Jquery/Q_27733014.html

Download Template HTML từ Themeforest

1. http://www.filestube.com/search.html?q=themeforest+metro+ui&select=All

2. http://themes.webmandesign.eu/jazzmaster/portfolio/portfolio-5-cols/ (Màu sắc cũng được)

Templates hay

1. Trang tham khảo chính

http://themeforest.net/

2. Template gần giống bên mình

http://lavrinyuk.pp.ua/demo/whitedream/theme/column_2/dialogs.html#

3. Một số template tham khảo

http://cgwizz.com/bird/template/index.html

http://www.infynitix.com/esthetics_admin/dashboard.html

http://themes.vivantdesigns.com/vpad/#dashboard.html

http://themeforest.smartik-themes.com/index.php?theme=xSystem