Re: Pass value from javascript to vb.net to database without postback...Possible?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Once you're upgraded to ASP.NET 2.0 you can use the cool new client side
callback feature to do this kind of thing.

Here's more info:
http://www.aspnetpro.com/features/2005/11/asp200511so_f/asp200511so_f.asp
http://www.developer.com/net/asp/article.php/3506896

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Andy" <acs974@xxxxxxxxxxx> wrote in message
news:1129749048.607189.307420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I have a complicated question that I'm hoping someone can help me out
> with. I have a webpage that contains a plug-in. This plug-in can
> communicate/pass data with the webpage that contains it via javascript.
> What I need to be able to do is take that data passed via javascript
> and, using vb.net as the code behind language, send it to a database
> without posting it because when I post, the plugin is reloaded and
> starts at the beginning. Specifcally, the plug-in is a type of
> educational program, when the user completes a certain objective in the
> program, I need to store that info in the database but not have the
> program start back at the beginning.
>
> What happens currently is upon completing the objective in the plugin,
> a javascript function is called in the containing webpage. That
> javascript function changes the data in a hidden field runat the
> server. I artificially create a postback using the
> document.forms.submit() function, then in the page_load function in the
> codebehind page I check the value of the hidden field and store it to
> the database. This works fine. The problem is that when the page
> reloads, my plug-in is reloaded and instead of the user being at say
> level 6, they are back at the initial level 1. Ideally, I would like to
> send the information to the database without having to reload the page
> and was wondering if this was possible.
>
> Thanks in advance and I'll be happy to clarify any questions.
>
> Andy
>


.



Relevant Pages

  • Pass value from javascript to vb.net to database without postback...Possible?
    ... I have a webpage that contains a plug-in. ... a javascript function is called in the containing webpage. ... reloads, my plug-in is reloaded and instead of the user being at say ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Is the DAL dead?
    ... This plug-in gets data from a database and then displays that data to the user in a nice manner. ... Anyway, every once in a while I want something new from the database, and I have to ask their development team to write something new in their DAL. ... This involves some developer upgrading their DAL, and then they have SQL db guys that will write some fancy sproc for the new DAL procedure. ...
    (microsoft.public.dotnet.general)
  • RE: Secured application information
    ... before allowing them to participate in quiz. ... The first ASP page (I am again assuming that you ... The way to go about this would be to create a JavaScript function that is ... database and you only want them to edit it, ...
    (microsoft.public.sqlserver.clients)
  • Re: Function execution before page reload
    ... When a user checks a checkbox list of data in database the form ... button reloads the page. ... The PHP script will use an 'if' statement with ... Is there a way to have the functions execute before the ...
    (comp.lang.php)
  • RE: Is the DAL dead?
    ... I'm integrating a plug-in into another software solution that somebody else ... something new from the database, and I have to ask their development team to ... This involves some developer upgrading ... since I know that their using SQL server 2005 (currently upgrading ...
    (microsoft.public.dotnet.general)