网站地图的做法 (asp.net C#)
1、添加一个网站地图项 Web.sitemap项
2、在 Web.sitemap项的写法如下:
<?xml version="1.0" encoding="utf-8"?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0
">
<siteMapNode url="default.aspx" title="首页" description="">
<siteMapNode url="Supply.aspx" title="产品信息" description="" >
<siteMapNode url="productdetails.aspx" title="产品详细信息" description="" />
</siteMapNode>
<siteMapNode url="register.aspx" title="新用户注册"/>
<siteMapNode url="Demand.aspx" title="产品信息" description="">
</siteMapNode>
<siteMapNode url="Projects.aspx" title="招投标信息" description="">
<siteMapNode url="DownLoad.aspx" title="相关表格下载" description="" />
<siteMapNode url="ProjectInfor.aspx" title="招投标详细信息" description="" />
</siteMapNode>
<siteMapNode url="newsfront.aspx" title="新闻" description="">
<siteMapNode url="news_detail.aspx" title="行业资讯详细信息" description="" />
<siteMapNode url="company_details.aspx" title="会员展厅详细信息" description="" />
<siteMapNode url="ManuscriptFront.aspx" title="在线投稿" description="" />
<siteMapNode url="
相关文档:
一。下载导入项目
(1)首先到http://ckeditor.com/download下载FCKeditor 2.6.5,和FCKeditor.Net 2.6.3,
然后解压这两个文件夹
FCKeditor编辑器,得到文件夹fckeditor,复制此文件夹到Web应用的项目下(也可以是子孙目录下)。
解压FCKeditor控件,在其子目录bin/Release/2.0下有一个程序集。在Web应用的项目中引用该 ......
在ASP.NET中,我们可以用下面的方法实现从数据库中读取图片并显示在页面上,方法如下:
SqlConnection conn=new SqlConnection(ConfigurationSettings.AppSettings["ConnStr"]);
String sql="SELECT image from append where id='" + strID + "'";
&n ......
1.TextBox txt=(TextBox)PreviousPage.FindControl("TextBox1");
2.在页面注册投递页的属性
<%@ PreviousPageType VirtualPath="crouspostPage.aspx" %>
在crouspostPage.aspx的代码隐藏类中添加
public TextBox TextBox1
{
get(return _textbox);
}
在页面中Response.Write(PreviousPage. ......
效果图:
前台代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OWCdrawing.aspx.cs" Inherits="OWCdrawing" %>
<!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/xh ......
ASP.NET生成随机密码
在开发需要用户注册后才能使用提供的各项功能的应用程序时,在新用户提交注册信息后,较常见的做法是由程序生成随机密码,然后发送密码到用户注册时填写的电子信箱,用户再用收到的密码来激活其帐户。
实现ASP.NET生成随机密码功能是很容易的,下面的代码给出了完整的实现方法:
publicstatic ......