Literals in javascript not visable in code behind when #R is enabled

Interestingly, when i disable R# addin, the VS2008 intellesense recognizes
the Literal. Also interesting is if the page is a simple form, then neither
VS2008 or R# recognize the literal (when literal is embedded in javascript
in head section). Either case (using master page, or standalone winform)
the page compiles fine.

Any chance that this will be fixed in 4.5? ( build 1226 still has the problem

Master Page:

Content page: function b() { var myTextField = document.getElementById('Text1'); myTextField.value = '<asp:Literal runat="server" id="test"></asp:Literal>'; } ]]>

Code behind of Content page:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class LitTest : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
test.Text = "sfdsfd"; // R# does not recognize this!!!!!

Please sign in to leave a comment.