Calling Code Behind Methods in Padarn -


does padarn support call methods exist in code behind aspx page?

for example (pseudo):

mypage.cs code behind.

protected string getdata() {  return("here's data"); } 

mypage.aspx calls getdata() method lives in code behind...

<%= this.getdata() %> 

when attempt above example, response displayed in browser reads...

[translated asp]

instead of "here's data".

for record, ctacke answered question in cross-post thread @ opennetcf community forum...

no, asp 3.0-style code doesn't work. you're better off rendering page in render , calling method there. own request handler did kind of parsing, think way more work worth.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -