How do I use Ajaxpro to update a database from the client?
Posted on 2009-04-12
I hope someone can help me as I'm close to ripping my hair out.
I wrote a web application using vs 2005 and vb.net. All I want is to display a message box on the client asking the user to confirm record deletions. If they select yes, I want to run some server side code.
I discovered the bext way of doing this is to use the AJAXpro dll and mark my server side code with an ajaxmethod attribute. Unfortunately when I started this project I wasnt familiar with C# so I used vb.net and i cant find any examples of this with vb.net.
Originally it was a web site. It would call the function from but return a null value. I found this to be caused by the vb.net namespace problem. There was no way of specifying a root namespace so i had a choice of converting to a web application or rewrting the code in C#. (it works perfectly in C#)
I would like to ask if I have to do anything specifically to enable java script in a web application, that i dont have to do in a web site? Or is there a less complicated way of acheiving my end goal?
Thanks in advance.