在asp.net中实现对webform上的一个textbox的内容的另存方法.

类别:Asp 点击:0 评论:0 推荐:

写一段js

<script language=“javascript“>

function saveas()

{

self.document.write(document.all.textbox1.value)

self.document.execcommand('saveas',false,'c\\test.txt')

}

</script> function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') } function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') } function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') } function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') } function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') } function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') } function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') } function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') } function saveas() { self.document.write(document.all.TextBox1.value) self.document.execCommand('Saveas',false,'c:\\test.txt') }

本文地址:http://com.8s8s.com/it/it8682.htm