0
私はHTMLフォームHTMLからこのハンドラにアクセスするにはどうすればよいですか?
public class Eventos : IHttpHandler
{
/// <summary>
/// You will need to configure this handler in the Web.config file of your
/// web and register it with IIS before being able to use it. For more information
/// see the following link: http://go.microsoft.com/?linkid=8101007
/// </summary>
#region IHttpHandler Members
public bool IsReusable
{
// Return false in case your Managed Handler cannot be reused for another request.
// Usually this would be false in case you have some state information preserved per request.
get { return true; }
}
public void ProcessRequest(HttpContext context)
{
//write your handler implementation here.
;
string Tipo = context.Request.QueryString["Tipo"];
switch (Tipo)
{
/*Pagina Index Portada Perfil -------------------------------------------------------------------------------------- */
case "IndexSelectPerfil":
{
RegistroEvento(context);
}
break;
}
}
からこのハンドラにアクセスしたいそして、これは私がHTMLフォーム
<form class="form-header" action="IX_Registros.Handlers.Eventos" role="form" method="POST" id="#">
でそれを呼びたいしかし、私はちょうどそれにアクセスすることができない、と見たかでありますハンドラ用のashxファイルを作成すると言っているさまざまなページがありますが、作成する場所や使用する場所がわかりません 私はVisual Studio 2015 Communityを使用していますが、コードオンタイムフレームワークの助けを借りて作成しました。
通常、MVCなどのWebフレームワークでは、ルート設定に基づいてアクションをコントローラにルーティングします。これにはどのフレームワークを使用していますか? – ManoDestra
私はCode On Timeを使用してWebAppを生成し、HTMLのスタイルのブートストラップをいくつか使用しています – CarlosOro
これまでにこのフレームワークを使用していないので、URLルーティングの処理方法がわかりません。 URLパターンをコントローラにルーティングする方法については、ドキュメントを確認する必要があります。 Code On Timeフレームワークを使用していることを含むように質問を更新する必要があります。 – ManoDestra