⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testtitlesserviceinput.aspx

📁 asp.net技术内幕的书配源码
💻 ASPX
字号:
<%@ Page Language="C#" %>
<Script runat="Server">

private void Button_Click(object s, EventArgs e)
{
	TitlesServiceInput objTitlesService;
	GetTitlesInputMatches objMatches;
	int intCounter;
	
	objTitlesService = new TitlesServiceInput();
	objTitlesService.Timeout = 10000;
	objMatches = objTitlesService.GetTitlesInput( txtBookType.Text );
	  
	for (intCounter = 0; intCounter < objMatches.Titles.Length; intCounter++)
	{
		lblTitles.Text += "<p>TITLE: " + objMatches.Titles[intCounter];
		lblTitles.Text += "<br>PRICE: " + objMatches.Prices[intCounter];
	}
}

</Script>

<html>
<head><title>TestTitlesServiceInput.aspx</title></head>
<body>

<h2>Scraped Titles</h2>

<form runat="Server">

<asp:TextBox
  id="txtBookType"
  Runat="Server" />

<asp:Button
  Text="Go!"
  OnClick="Button_Click"
  Runat="Server" />
<p>

<asp:Label
  id="lblTitles"
  EnableViewState="False"
  Runat="Server" />

</form>


</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -