c# - ASP.NET don't work onserverclick of anchor -


my project worked yesterday.but isn't anymore.what think why onserverclick of anchor not working

<a class="media-link" href="#" runat="server" onserverclick="sy15">     <div class="overlay">         <div class="descr"><div>          <asp:label id="label15" runat="server" text="label"></asp:label>           <asp:label id="label155" runat="server" text="label"></asp:label></div></div>     </div>     <asp:panel id="panel15" runat="server" width="654" height="240">     <asp:image id="image15" runat="server" imageurl="img/urunler/indir.jpg" />      </asp:panel>  </a> 

c#

public void sy15(object sender, eventargs e)  {      if (session["kad"] != null)         response.redirect("blogsingle.aspx?image=" + image15.imageurl + "&kad=" + label155.text + "");      else         response.redirect("register.aspx"); } 


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -