1.页面局部刷新问题
当我点击DropDownList会触发一个事件(此事件下是对另一个控件进行了修改),但是他却刷新了整个页面好像是点击了提交。
我想不让他刷新整个页面,怎么办2. 从sql server里去图片格式的字段值并显示到控件Image里
不能建立临时文件,即从数据库了取处图片以后立刻显示的Image里全部是web应用程序
当我点击DropDownList会触发一个事件(此事件下是对另一个控件进行了修改),但是他却刷新了整个页面好像是点击了提交。
我想不让他刷新整个页面,怎么办2. 从sql server里去图片格式的字段值并显示到控件Image里
不能建立临时文件,即从数据库了取处图片以后立刻显示的Image里全部是web应用程序
解决方案 »
- 请问有没有谁知道Windows8 C#的蓝牙Bluetooth的API的网址?
- 如何获取用ClickOnce安装的程序的地址
- 如果把下面的XML文件读取到数组里,包括id,value和标签中的文字?
- 加水印图片,为什么加GIF图片,会报这样的错啊 "无法从带有索引像素格式的图像创建 Graphics 对象。
- dll动态库的有效期是怎么控制的?》
- 在VS.NET2003的C#中把EXCEL2000的数据导入SQL-SERVER2000的问题? (50分)
- purecomponents有谁用过呀?部署时,注册信息怎么发布?客户端提示没注册?
- 进度条乍做?
- 看《指环王》有感
- 客户windows server 2012 standard 部署net core 但swagger爆failed to fetch
- 向WORD里插入数学公式,怎么实现 ?
- base的用法问题???
Implement Script Callback Framework in ASP.NET 1.x
http://www.codeproject.com/aspnet/ScriptCallbackFramework.asp
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;using System.Data.SqlClient;
namespace MedIndex
{
/// <summary>
/// Summary description for Show2.
/// </summary>
public class Show2 : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
SqlConnection myDSN = new SqlConnection(Session["DatabaseConnectionString"].ToString().Trim());
myDSN.Open(); string strCatId = Request.QueryString["CatId"];
string strCatSubId = Request.QueryString["CatSubId"];
string strCatSubPrjId = Request.QueryString["CatSubPrjId"]; string sqlText = "SELECT CatSubPrjImage, CatSubPrjImageType FROM tMedIndexCatSubPrj"
+ " WHERE CatId = '" + strCatId + "' AND CatSubId = '" + strCatSubId + "' AND CatSubPrjId = '" + strCatSubPrjId + "'";
SqlCommand MyCommand = new SqlCommand (sqlText, myDSN);
SqlDataReader dr = MyCommand.ExecuteReader();
if(dr.Read())
{
Response.ContentType = (dr["CatSubPrjImageType"].ToString());
Response.BinaryWrite((byte[])dr["CatSubPrjImage"]);
}
myDSN.Close();
} #region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
这一句不明白意思,能详细点吗,thanks
参数表示你想向"页面的名字"传递的参数。