merhabalar

http://www.siteadi.com/haber/id/haberbasligi.htm şeklinde linkliyorum

yazdığım modulle sayfa ve id değişkenlerini alıyorum

sayfayı default.aspx de placeHolder e control olarak ekliyorum id değeri ile de ilgili sayfadaki veriyi çağırıyorum buraya kadar herşey normal çalışıyor

yalnız resimleri bir türlü gösteremedim fiziksel yol belirtince gösteriyor ama onun haricinde img src değerine ne yazdıysam resimler gelmiyor

explorer de resim özelliklerinde resim yolu http://www.siteadi.com/imgFiles/resim.jpg olarak görünmesine rağmen resim yine görünmüyor

5. gün ve hala çözemedim kafayı yemek üzereyim

kodlar aşağıda yardımcı olursanız sevinirim

şimdiden teşekkürler



public class myHttpModule : IHttpModule
{
private static readonly Regex bolumId;

public myHttpModule()
{

}

static myHttpModule()
{
myHttpModule.bolumId = new Regex(@"/(\w*)/(\d*)/(\w*)\.htm", RegexOptions.Compiled | RegexOptions.IgnoreCase);
}

public void Dispose()
{

}

public void Init(HttpApplication context)
{
context.BeginRequest += new EventHandler(context_BeginRequest);
}

void context_BeginRequest(object sender, EventArgs e)
{

HttpContext ctxt = ((HttpApplication)sender).Context;
string path = ctxt.Request.Path;
string url = ctxt.Request.RawUrl;

ayristir(ctxt);

}

private static void ayristir(HttpContext icerik)
{
string sBlm = "", sId = "", yol="",yolEk="";

Match bi = myHttpModule.bolumId.Match(icerik.Request.Path);

yol = "default.aspx";

if (bi.Success) {
sBlm=bi.Groups[1].Value;
sId=bi.Groups[2].Value;

yolEk = string.Format("?syf={0}&id={1}", sBlm, sId);

}

icerik.RewritePath(yol +yolEk, false);

}

}