[5 / 1 / ?]

ASP.NET

No.51018777 ViewReplyReportDelete
hi /g/uys cs undergrad here !

I'm working on a custom Http module that will let me every time i post a tweet with a link from my website it will display it as a twitter card or image gallery. this will allow me to save time instead of writing the <meta> function every time i post on the browser.

this is what i have done so far:

using System.Web;
using System.web.dll;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLibrary1
{
public void Init(HttpApplication app)
{
app.BeginRequest = +new EventHandler(onBeginRequest);
}

public delegate void MyEventHandler(Object s, EventArgs e);
private MyEventHandler _eventhandler = null;

public event MyEventHandler MyEvent
{
add { _eventHandler += value; }
remove { _eventHandler -= value; }
}

public void OnBeginRequest(Object s, EventArgs e)
{

}
{
HttpApplication app = s as HttpApplication;
app.Context.Response.Write("")
if (url="www.twitter.com")
{

}


}

public class Class1 : IHttpModule
{

public void Dispose() { }
}
}