i wish to pass 2 value to invoke my script but i failed to do so it return me server tag not well formed
asp:LinkButton ID="lnkname" runat="server" Text='<%#Eval("movieTitle") %>' Width='500px'
CommandName="cmdLink" PostBackUrl='~/videotest.aspx'
OnClientClick="setSessionValue('video','<%#Eval("movieTitle") %>');"
Try like this:
Or even better ensure that you properly encode the movie title using the JavaScriptSerializer class:
Yeah, I agree, what a horrible mess are those WebForms. You would probably externalize this into a function in your code behind:
and then: