问题描述
我必须将Wikipedia并入asp.net.
我正在寻找第三方组件(开放源代码引擎),但是可使用的开放源代码不提供我可以根据自己的要求进行修改的代码.
请为此类代码提供一些链接.
我已经检查了FlexWikiCore-2.1.0.274-web-full-Release,
ScrewTurnWiki-3 [1] .0.3.555和Sushiwiki-v1-RC1-for.NET1
在此先感谢
关于Makarand
I have to incorporate wikipedia in asp.net.
I am looking for third party component, (opensource engine), but avilable opensource do not provide code which I can modify as per my requirements.
Please suggest some links for such code.
I have checked FlexWikiCore-2.1.0.274-web-full-Release,
ScrewTurnWiki-3[1].0.3.555 and Sushiwiki-v1-RC1-for.NET1
Thanks in advance
Regards Makarand
推荐答案
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<form action="search-redirect.aspx" id="searchform"><div>
<input id="searchInput" name="search" type="text" />
<input type='submit' name="go" class="searchButton" id="searchGoButton" value="Search" />
</div></form>
</body>
</html>
search-redirect.aspx [后面的代码]
----------------------------
search-redirect.aspx [code behind]
----------------------------
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class search_redirect : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Redirect("http://en.wikipedia.org/wiki/Special:Search?search="+Request.Params["search"]+"&go=Go");
}
}
希望对您有所帮助.
Hope it helps.
这篇关于asp.net上的Wikipedia的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!