- 博客(21)
- 资源 (36)
- 收藏
- 关注
原创 一个工程中如何包含多个web.config?
<br />在站点的默认 Web.Config 文件中使用:<br /><appSettings configSource="this.config"/> <br />然后新建 this.Config 文件: <br /><?xml version="1.0" encoding="utf-8"?> <appSettings> <add key="test" value="Hello world."/> </appSettings> <br />在 .NET Framework 2.0
2011-02-24 21:18:00 1764
原创 .net同一个解决方案下面多个web项目的解决方法
<br />经过n次的google,下面是解决方法:<br /> <br />1. 新建一个web application<br />2. 在该application中新建文件夹SubSystem<br />3. 在整个的项目中添加web site。注意这其中的路径(这里的路径是上面新建的文件夹的路径)。<br /><br />4. 上面的 工程中主工程中包含公共资源,能够被子工程使用。<br /><br />
2011-02-24 21:14:00 2468
原创 VS 2010: An error occurred loading a configuration file: Failed to map the path ‘/’.
<br /> <br />I was using the System.Web.Configuration.WebConfiguration class to open the configuration for the site from one of my logic dll’s and I got the wonderful error An error occurred loading a configuration file: Failed to map the path ‘/’.<br />I
2011-02-20 21:41:00 3392 1
原创 jquery图表插件highcharts
1. 官网及features?2. highcharts(asp.net)?3. 代码下载1. 官网及features?highcharts官网:http://www.highcharts.com/demo site : http://www.highcharts.com/demo/?example=bar-basic&theme=gridfeatures:2. highcharts使用(asp.net)?页面Default.aspx:
2011-02-20 15:52:00 2631
原创 NuGet
NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio.
2011-02-18 17:15:00 573
原创 goto switch case应用
<br />switch(MyVariable){ case1: //statements …........ if ( expression ) gotocase3: break; case2: ….. break; case3: …...... break;}<br />
2011-02-18 14:55:00 833
原创 c#中结构体structure初始化
<br />1. c# structure基本事实<br />2. 初始化问题<br />3. 总结<br /> <br /> <br />1. c# structure基本事实<br /> <br />c# structure为值类型,和class是相类似,但是c#中的class是引用类型。<br /> <br /> <br />2. 初始化问题<br /> <br />下面是两段代码,看上去是相似的,但是其中一段代码是不能够编译的:<br />public struct StructMember{
2011-02-18 14:52:00 12881
原创 上传图片并保存到服务器上之后,如何得到该图片服务器路径(http://~)
<br />1. 情景描述<br />2. 测试代码<br /><br /> 1. 情景描述<br /> <br />首先使用asp.net中自带空间FileUpload将图片上传到服务器上之后,在“在线编辑器”中需要显示该图片,需要得到该图片的以http://开头的url路径<br /> <br />2. 测试代码<br /> <br />其实只需要使用 System.Web.UI.Control.ResolveUrl (string),其中string参数是上传图片的相对路径。<br /> <br />
2011-02-13 19:34:00 20678 3
原创 iframe自适应高度?
<br /> <br />1. 下载代码jquery-auto-iframe-height或者下载<br /> <br />2. 使用demo<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang=
2011-02-13 10:56:00 2809
原创 configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));错误解决方法
1. 参看配置文件中的connection string name是否正确。2. I can think of two reasons:You are using Azure SDK 1.3 and the SetConfigurationSettingPublisher must be called in your Global.asax.cs Application_Start;You are not setting the Startup project as the *.CloudService o
2011-02-10 21:32:00 835
原创 自动生成数据库表的insert,update,delete存储过程工具
如何生成数据库中某张表的插入,删除,更新的存储过程,可以使用这个工具,这里可以下载:下载地址,界面如下:
2011-02-10 21:28:00 965
原创 sql根据传入参数确定选择前几条数据的存储过程
<br />sql代码:<br />USE [BeijingAgricultureDB]GODECLARE @return_value intEXEC @return_value = [dbo].[SelectTopNNotifications] @num = 2SELECT 'Return Value' = @return_valueGO<br /> <br />其他示例:<br />/* Show not having access to variables from th
2011-02-07 22:39:00 997
原创 .net 4.0 ValidateRequest="false" 无效
<br />当你在安装了.NET Framework 4.0以上版本后,当你的应用程序以.NET Framework 4.0为框架版本,你的任意服务器请求,都将被进行服务器请求验证(ValidationRequest),这不仅包括ASP.NET,同时也包括Web Services等各种HTTP请求,不仅仅针对aspx页面,也针对HTTP Handler,HTTP Module等,因为这个验证(Valify)的过程,将会发生在BeginRequest事件之前。<br /> 问题的解决方案就是在全局级别(
2011-02-06 02:09:00 616
原创 在updatepanel面板中使用fileupload上传图片
<br />By default, FileUpload control will not work inside an UpdatePanel control for uploading files using Asynchronous postback. This is because, the file uploading and file manipulations is restricted by default in client side for security reasons. Hence
2011-02-04 01:44:00 641
原创 Sys.WebForms.PageRequestManagerParserErrorException详解
Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it<br />If you've used the Microsoft ASP.NET AJAX UpdatePanel control, there's a good chance you've hit the "Sys.WebForms.PageRequestManagerParserErrorException" error.<br />
2011-02-03 23:46:00 614
原创 如何生成网页的略缩图?
<br />1. 关键代码:<br /> <br />using System;using System.Drawing;using System.Windows.Forms;using System.Threading;using System.IO;using System.Reflection;namespace WebsiteThumbnail{ public class WebsiteThumbnailImageGenerator {
2011-02-03 21:58:00 1435
ASP.Net web server demo
2010-03-05
iinniitt进程探悉
2010-02-05
linux 内存使用方法
2010-02-05
source insight使用方法
2010-01-17
Skyeye安装笔记和使用
2010-01-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人