vbdotnet.it

Tricks & tips, workaround, forum and ideas with .Net

About the author

Enrico Rossini è il gestore di questo blog.
E-mail me Send mail

Recent posts

Recent comments

Contributi

Best 6 ~ 6 users ~ 6 comments

Info legali

Le opinioni espresse in questo blog sono strettamente personali e ogni persona è responsabile dei commenti che inserisce. I marchi citati sono delle rispettive aziende.

© Copyright 2010

Advertising


Aggiungere uno script JS ad un ScriptManager (ad esempio JQuery)

Utilizzando Ajax può capitare di dover inserire uno script JS all’interno della pagina. Per poterlo fare basta utilizzare la seguente sintassi:

   1: <asp:ScriptManager ID="ScriptManager1" runat="server">
   2:    <Scripts>
   3:       <asp:ScriptReference Path="~/js/jquery/jquery-1.2.6.min.js" />
   4:    </Scripts>
   5: </asp:ScriptManager>

Buon lavoro!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by enrico on Monday, March 23, 2009 3:24 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Response.Redirect in UpdatePanel Ajax

A volte può capitare di dover utilizzare la funzioneResponse.Redirect in un UpdatePanel... Spesso, però, questa funzione restituisce un errore. Questo (di solito) significa che in manca una parte della configurazione nel file web.config
Basterà infatti aggiungere

<httpModules>

<add name="ScriptModule"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</httpModules>


e tutto funzionerà.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,
Categories: asp.net | Work around | ajax
Posted by davide on Saturday, December 20, 2008 1:13 PM
Permalink | Comments (0) | Post RSSRSS comment feed