.net 二进制上传存储

0

Posted by 大葱 | Posted in 未分类 | Posted on 24-03-2011

        FileStream fs= new FileStream(photoFile,FileMode.Open,FileAccess.Read);
        BinaryReader reader= new BinaryReader(fs);
        byte[] image=reader .ReadBytes((int)fs.Length);
        reader.Close();
        fs.Close();

        string sql=string.Format(“insert into photo(ID,image,Imagetype)  values(‘{0}’,@image,’{1}’) “,id,type);
        SqlConnection con = conndb.ConnSql();
     
        SqlCommand command = new SqlCommand(sql,con);
        SqlParameter sp = new SqlParameter(“@image”,image);
     
        command.Parameters.Add(sp);

        con.Open();
        command.ExecuteNonQuery();

Ajax for PHP method get

0

Posted by 大葱 | Posted in 未分类 | Posted on 20-01-2011

ajax.js:

var xmlHttp;
function $_xmlhttprequest(){

if (window.ActiveXObject) {

xmlHttp = new ActiveXObject(“Microsoft.XMLHTTP”);

}

else if (window.XMLHttpRequest) {

xmlHttp = new XMLHttpRequest();

}

}

function funajax(url){

$_xmlhttprequest();
xmlHttp.open(“POST”,”for.php?id=”+url,true);
xmlHttp.onreadysatechange=byphp;
xmlHttp.onreadystatechange=byphp;
xmlHttp.send(null);

}

function byphp(){

document.getElementById(‘php100′).innerHTML = xmlHttp.responseText;

}

index.php:

<script type=”text/javascript” src=”ajax.js”></script>
<a onclick=”funajax()”>o</a>
<div id=”php100″></div>

for.php:

if(isset($_GET['id'])){

$id= $_GET['id'];
for($i=0;$i<10;$i++)
{
echo $id;
}
}

?>

0

Posted by 大葱 | Posted in 未分类 | Posted on 15-01-2011

document.getElementById(“”).value这个只能获取客户端控件的值例如(<input id=”txtName” type=”text” />)这种纯html的控件, 

如果要用asp.net服务器端控件,

获取方法是document.getElementById(“<%=控件的ID.ClientID %>”).value; // ClientID 客户端Id

原因是asp.net服务器端控件转为html空间的时候id,name后经过程序的处理,有一些变化,所以用上面的 方法进行获取

So fucking handsome!

2

Posted by 大葱 | Posted in A | Posted on 22-08-2010

看哥潇洒的背影!哥可是残而不废的!

Zhangjiajie

0

Posted by 大葱 | Posted in A | Posted on 22-08-2010

 woo!正哦

 

背影也是如此销魂!

The traval of Hunan

0

Posted by 大葱 | Posted in A | Posted on 22-08-2010

 

 

 

 

 

 

 

 

 

   

 

  

 

 

 

 

  

 

 

 

 

 

 

 

 

 

 

唔好手指指。冇礼貌

噢耶

0

Posted by 大葱 | Posted in C | Posted on 08-08-2010

手机项目页面框架初稿:

My fucking PS3

0

Posted by 大葱 | Posted in C | Posted on 31-07-2010

learn learn and learn

媲美九阳神功的绝世宝典。多谢albertol无私奉献。造福人群——一套阴茎增长训练教程

1

Posted by 大葱 | Posted in A | Posted on 29-07-2010

本教程中所介绍的方法是纯天然的物理疗法,无痛,简便,高效。勿需借助任何如真空吸力器等外用器具。还让您不必忍受费用高昂的外科手术之痛。每天只花30分钟的训练时间,经过一个月的认真训练就会带给您一个增大增粗的阳具。最重要的是这种方法绝对安全有效,无任何副作用!

  更让人鼓舞的是通过这种训练,您控制的射精能力勃起硬度,都将大大的提高!而且通过射精肌的锻炼,阳痿早泄现象将成为历史。

  从解剖学上来说您的阴茎分为三个小室:两个大的部份是您的勃起肌,医学上称他们为阴茎主体(Corpora Cavernosa)。还有一个小的部份是在您小便和射精时起关键作用的,它在整个阴茎的底部,医学上称它为阴茎海绵体(Corpus Spongisum).

  当您有性的需求时,大脑会释放出性激素(荷尔蒙),它起到将大量的血液带入阴茎的作用。当这些血液突然涌入阴茎主体与海绵体内的细胞空间时,您的阴茎肌肉就勃起了。

  从阴茎的生理结构看,成年人增大阴茎主要有以下几种途径:

  1.增大阴茎的“容量”,即阴茎海绵体和尿道海绵体体积增大,从而使阴茎的长度和直径增大(包括勃起和疲软状态)。 Read the rest of this entry »

cow B WeiMen 绝配啦叼!!!

0

Posted by 大葱 | Posted in A | Posted on 29-07-2010