بالای while این رو اضافه کن :
string test = "<div class='ma'><div class='header-left1'>{posttitle}</div><pre>{post}</pre><a href='~/Upload/{fime}'>{fime}</a></div>";
string test2 = test;
توی !=Null که میخوای لینک رو درست کنی اینطوری درستش کن :
test = Replace(test, "{posttitle}",dr["posttitle"].ToString );
test = Replace(test, "{post}",dr["post"].ToString );
test = Replace(test, "{fime}",dr["fime"].ToString );
Left.InnerHtml += test;
test = test2;
شرمنده من VB کار میکنم شاید یه خطای ساده داشته باشه ، خودت یه بررسیش کن .