数据读取控制问题? 可以考虑在webfp.aspx中,如果没有图片显示一个特定的图片显示(No Pic) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 大侠,webfp.aspx那就显示出了Image1控件那框,很难看站地方,没有更好的方法? 参考: if ( ( myReader[ DestField ] == System.DBNull.Value ) || ( myReader[ DestField ].ToString().Trim() == string.Empty ) ) { string[] arrRequestFileName = ( string[] ) Request.PhysicalPath.ToString().Trim().Split( '\\' ); int RequestFileNameLen = arrRequestFileName[ arrRequestFileName.GetUpperBound( 0 ) ].ToString().Length; int intStart = Request.PhysicalPath.ToString().Trim().Length - RequestFileNameLen; string RequestPhyURL = Request.PhysicalPath.ToString().Remove( intStart, RequestFileNameLen ); System.IO.FileStream fs = System.IO.File.OpenRead( RequestPhyURL+"\\NoPhoto.gif" ); byte[] btImage = new byte[ fs.Length ]; fs.Read( btImage, 0, ( int ) fs.Length ); Response.BinaryWrite( btImage ); Response.End(); } else { byte[] btImage = ( byte[] )myReader[ DestField ]; Response.BinaryWrite( btImage ); Response.End(); } asp.net网站用到的安全机制 datalist绑定2张表中字段问题.. 页面返回时当前按钮变化的问题 我现在最怕面试里面的算法题目.怎么办? 生成DLL的问题 关于加密解密 关于jmail的问题再问: 40分 求一sql语句,一经采用,马上给分!!!!! 获取DATAGRID问题 如果将某个类的一般属性和List属性分别绑定到不同的Repeater DataGrid中HyperLinkColumn的问题 hh-mm的正则表达式如何写?
{
string[] arrRequestFileName = ( string[] ) Request.PhysicalPath.ToString().Trim().Split( '\\' );
int RequestFileNameLen = arrRequestFileName[ arrRequestFileName.GetUpperBound( 0 ) ].ToString().Length;
int intStart = Request.PhysicalPath.ToString().Trim().Length - RequestFileNameLen;
string RequestPhyURL = Request.PhysicalPath.ToString().Remove( intStart, RequestFileNameLen );
System.IO.FileStream fs = System.IO.File.OpenRead( RequestPhyURL+"\\NoPhoto.gif" );
byte[] btImage = new byte[ fs.Length ];
fs.Read( btImage, 0, ( int ) fs.Length );
Response.BinaryWrite( btImage );
Response.End();
}
else
{
byte[] btImage = ( byte[] )myReader[ DestField ];
Response.BinaryWrite( btImage );
Response.End(); }