请问这个功能怎么实现,用javascript
解决方案 »
- gridview的数字列格式化之后如何重新转换为数值
- 100分如何用asp.net获得自动提交后的网页源代码
- 正则表达式将[email protected] 中“@”两边的两位字符变成***, 像234***@***.com 这样
- 求注册用的两个SQLServer 2000数据库表(省份及下属城市)备份儿
- 这句应该怎么写?
- 想做个新闻采集,页面内容用webclient抓回来后,求1个提取新闻内容的正则表达式,
- 求助:C# UDP 编程问题。
- 如何提高出数据时的排序性能
- 求C#设计模式的源代码,谢谢。
- 验证控件的验证状态
- 请问个问题 ASP.NET 如何实现一下两个功能 丢50分
- 信息发布时用Id传值的问题?
[Visual Basic]
Dim remoteUri As String = "http://www.contoso.com/library/homepage/images/"
Dim fileName As String = "ms-banner.gif"
Dim myStringWebResource As String = Nothing
' Create a new WebClient instance.
Dim myWebClient As New WebClient()
' Concatenate the domain with the Web resource filename. Because DownloadFile
'requires a fully qualified resource name, concatenate the domain with the Web resource file name.
myStringWebResource = remoteUri + fileName
Console.WriteLine("Downloading File ""{0}"" from ""{1}"" ......." + ControlChars.Cr + ControlChars.Cr, fileName, myStringWebResource)
' The DownloadFile() method downloads the Web resource and saves it into the current file-system folder.
myWebClient.DownloadFile(myStringWebResource, fileName)
Console.WriteLine("Successfully Downloaded file ""{0}"" from ""{1}""", fileName, myStringWebResource)
Console.WriteLine((ControlChars.Cr + "Downloaded file saved in the following file system folder:" + ControlChars.Cr + ControlChars.Tab + Application.StartupPath))
[C#]
string remoteUri = "http://www.contoso.com/library/homepage/images/";
string fileName = "ms-banner.gif", myStringWebResource = null;
// Create a new WebClient instance.
WebClient myWebClient = new WebClient();
// Concatenate the domain with the Web resource filename.
myStringWebResource = remoteUri + fileName;
Console.WriteLine("Downloading File \"{0}\" from \"{1}\" .......\n\n", fileName, myStringWebResource);
// Download the Web resource and save it into the current filesystem folder.
myWebClient.DownloadFile(myStringWebResource,fileName);
Console.WriteLine("Successfully Downloaded File \"{0}\" from \"{1}\"", fileName, myStringWebResource);
Console.WriteLine("\nDownloaded file saved in the following file system folder:\n\t" + Application.StartupPath);
刚才 发错了
下面 这个 是<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script>
function mdown()
{
if(event.button == 2)
{
window.location.href="http://www.aspxboy.com";
}
}
</script>
</head>
<body onmousedown="mdown()" oncontextmenu="return false;"></body>
</html>