views:

24

answers:

0

I have the Javascript one liner below as a code snippet in VS 2008 SP1. When I insert it in the code (C#) window, only 'var SelectedVal =' gets inserted, instead of the whole statement.

Also.. is there a way to get the Insert Snippet to show up in the context menu when in aspx editor window?

Code Snippet: var SelectedVal = $('#<%=DropDownList1.ClientID %>').val();