ASP.NET 1.1 - "<%=" and "%>" tags being rendered in address bar -


i inherited asp.net 1.1 application written 8 years ago, app someone's first immersion in .net code mixture of code-behind server-side scattered throughout markup.

the problem i'm having form label has action looks this:

<form name="myform" id="myform" method="post" action="?id=<%= fooid %>" runat="server"> 

when save button hovered on see in status bar:

?id=<%= fooid %> 

as opposed to:

?id=123 

if user clicks save button, address bar shows:

http://servername/virtdir/pagename.aspx?id=<%= fooid %> 

which causes application throw exception. i've tried using:

action="?id=<% response.write(fooid) %>"  

but still same problem. problem localized page, else can try?

thanks,

you can't put <%= runat=server tag - telling break server side code when is. try setting action programatically in codebehind.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -