ASP.net導出Excel:服務器控制項GridView

前臺:<html xmlns="http://www.w3.org/1999/xhtml" ><head id="Head1" runat="server">    <title>人員工作記錄報表</title> <style type="text/css" media="print">.noprint{display : none;}</style></head><body>   

asp.net中的加密方法

本文由chenyangASP著作權,可以轉載,複製,粘貼,並請註明出處,但不得修改!無論什麼時候只要我們使用資料庫開發網站,我們就必須保護使用者資料,這非常必要。駭客可以盜竊口令,個人隱私遭到嚴重的破壞。最好的方法就是不儲存原始密碼,而是加密後再放到資料庫中。當我們想驗證使用者時,我們只需將使用者輸入的口令再次加密與資料庫中的記錄進行比較即可。在asp中我們需要額外的對象加密。但在Asp.Net中 SDK可以通過system.web.security

ASP.NET中UrlEncode應該用Uri.EscapeDataString()

今天,茄子_2008反饋他部落格中的“C++”標籤失效。檢查了一下代碼,產生連結時用的是HttpUtility.UrlEncode(url),從連結地址擷取標籤時用的是HttpUtility.UrlDecode(url),從Encode到Decode,“C++”變成了“C  ”(加號變成空格)。這是大家熟知的問題,這裡我們分析一下這個問題,並給出解決方案。先看一下問題發生的過程:1. 原始連結:http://www.cnblogs.com/xd502djj/tag/C++/2.

[ZT]Web Standard and ASP.NET – Part1 XHTML Quick Start

Web Standard and ASP.NET – Part1 XHTML Quick StartDflying | 26 March, 2006 18:47Web Standard is more and more important in current web based application development. In these series of posts I am going to sharing some of my ideas about how to build

[Asp.net]Repeater 綁定 NameValueCollection 類型的資料來源

今天在做一個功能的時候,需要把 Request.ServerVariables 屬性綁定給 Repeater 控制項顯示,Request.ServerVariables 返回的是一個 NameValueCollection 對象,一個索引值對的集合。Google了一下,居然無一例外需要在 Repaeter_ItemDataBound 事件進行相應的處理,類似於下面的代碼: 前台頁面: <asp:Repeater ID="Repeater1"

Asp.net中machineKey的產生和作用

machineKey產生代碼:代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->validationKey = CreateKey(20); decryptionKey = CreateKey(24); protected string CreateKey(int len) { byte[] bytes = new byte[len];

ASP.NET MVC 使用總結(二)——擴充HtmlHelper實現動態產生title及meta

   前不久看到了“.NET 4的新特性:圖表、SEO及可擴充的輸出緩衝”這篇新聞,才知道現在.NET4.0裡面已經有SEO了。提到SEO,這讓我想起去年做過的一個ASP.NET

asp.net Viewstate 最佳化

 代碼 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.

技巧/訣竅:在ASP.NET中重寫URL

技巧/訣竅:在ASP.NET中重寫URL 【原文地址】Tip/Trick: Url Rewriting with ASP.NET 【原文發表日期】 Monday, February 26, 2007 9:27 PM 經常有人請我指導應該如何動態地“重寫”URL,以在他們的ASP.NETweb應用中發布比較乾淨的URL端點。這個部落格文章概述了幾個方法,你可以用來在ASP.NET中乾淨地映射或重寫URL,以及按照你自己的需求組織你的URL的結構。

Persistent Forms auth cookies in ASP.NET 2.0

Spelunking around with ASP.NET forms auth I got a bit of a surprise this morning. The last time I checked, in 1.x ASP.NET assigned a persistent forms cookie an expiration date that was 50 years in the future. But the code looks very different in 2.0.

KE ASP.NET取到kindeditor 編輯器資料

最近在用ASP.NET做一個項目,本來感覺是很小的一個項目,應該沒有什麼問題,但是在做到文字編輯器的時候確實把我給難住了,我花了好長時間在網上搜資料,最終選用了KindEditor文字編輯器,這個比FCKEditor文本編輯器輕巧,而且也不用很進行很麻煩的參數配置,直接從官網上下載檔案包,解壓一下,裡面有asp,asp.net,php,jsp的應用執行個體,用過之後感覺確定蠻好的,很輕巧也很靈活,可以說完全滿足了我的需求,本來以為萬事大吉了,可是今天上午的時候在取值的時候(以前只是調試出效果,但

asp.net基礎-HttpModule

  HttpModule是向實作類別提供模組初始化和處置事件。當一個HTTP請求到達HttpModule時,整個ASP.NET

asp.net中jQuery $post用法

函數原型:$.post(url, params, callback)  url是提交的地址,eg: "sample.ashx"params是參數,eg: { name:"xxx" , id:"001" }callback是回呼函數,eg: function(msg){ alert(msg);

Asp.net使用jQuery實現資料繫結與分頁

使用jQuery來實現Gridview,

[Exception] – Could not load file or assembly App_Web_*** ASP.NET

[Exception] – Could not load file or assembly App_Web_*** ASP.NET While loading an asp.net web page, it encounters the following error. Could not load file or assembly 'App_Web_33cq6epw, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one

[匯入]ASP常用函數:Str4Js()

<%'功能:定義轉換為Javascript字串輸出(約定Javascript中,用單引號引用字串)'來源:http://jorkin.reallydo.com/article.asp?id=465Function Str4Js(sString)    Str4Js = sString    If IsNull(sString) Then Str4Js = "" : Exit Function    Str4Js = Replace(Str4Js, "\", "\\")    Str4Js

[匯入]ASP常用函數:getXMLDOM()

<%'功能:擷取XMLDOM的最高版本'來源:http://jorkin.reallydo.com/article.asp?id=433'需要IsObjInstalled函數:http://jorkin.reallydo.com/article.asp?id=163Function getXMLDOM()    On Error Resume Next    XmlDomVersions = Array("MSXML2.DOMDocument.5.0",

ISAPI的作用—-ASP.NET的HTTP請求的處理方法

ISAPI是什麼東西,其實我也不懂,不過今天在網上學習了學習,就有了點小小的心得了  首先得要知道ISAPI是IIS裡面的東西吧:ISAPI過濾器(篩選器):IIS本身是不支援動態網頁面的,也就是說他僅僅支援靜態HTML頁面的內容,對於.asp .aspx .cgi

asp.net 伺服器應用程式不可用

問題描述如下: 引起這個的原因大概是現安裝了.Net Framework後裝的IIS導致.Net沒有在IIS裡註冊。在網上找了很久都是說從.net命令列工具裡運行aspnet_regIIS /i就可以了(或者在類似下面的目錄:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i),但是自己試了很多次都不行,後來發現還是要先卸載再安裝,重新建立為應用程式才行,具體如下:從.net命令列工具裡運行

ASP.NET錯誤處理的方式

要建立頁中的全域處理常式,請建立 Page_Error 事件的處理常式。要建立應用程式範圍的錯誤處理程式,請在 Global.asax 檔案中將代碼添加到 Application_Error 方法。只要您的頁或應用程式中發生未處理的異常,就會調用這些方法。您可以從 HttpServerUtility.GetLastError 方法擷取有關最新錯誤的資訊。注意 如果您具有全域錯誤處理程式,則它優先於在 Web.config customErrors 元素的 defaultRedirect

總頁數: 1638 1 .... 521 522 523 524 525 .... 1638 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.