The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Invoke(UFicle): Hiding 'code' from website. . . by Sieldan2007-05-09 10:50:26
  Your pretty much stuck by astro-g2007-05-09 11:43:10
    Im not opposed to rewrites by Sieldan2007-05-09 11:55:11
      A very quick google turned up Ajax.NET by sazzer 2007-05-09 14:18:01
Which looks to do similar things to DWR. From the looks of it, you put an attribute before the function and it will expose that function to the javascript for you to call. That way you can have all of the real code in the C# function, and the javascript will call it to get the data

The url for that particular one is: here

If you can't use that for whatever reason, there's also the JS library AjaxRequest that is very simple to use. You essentially just tell it a URL to request - including parameters - and it goes and gets it for you. It's then up to you to do what you want with the returned data from that URL. This lets you have a standard ASP(.Net) page called from the Javascript, and do all the processing in there...

[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)