R# 4.0.914.9: Methods are created in the ASPX/ASCX pages instead of code behind
Hello
I have noticed that between this nightly build and the build 913 or 912 (I
don't remember if I tried 913 before 914) that when you want to hook to an
event of a web control that in build 914 a block
will be added to the ASPX/ASCX page whilst in previous versions this was
done in the code-behind file.
This is what I do:
1. Create a User Control
2. Add a
3. Then I add the attribute OnTextChanged with the value "OnTextChanged"
4. The "OnTextChanged" is correctly marked in red by R# because the method
does not exist
5. I use the quickfix option to create the method "OnTextChanged"
6. ReSharper then adds a
Please sign in to leave a comment.
Gabriel,
I believe, this happens in web application project only.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Fixed. Try the upcoming nightly build.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Still the same behaviour in build 917. In which build should it be fixed?
Cheers
Gabriel Lozano-Moran
"Sergey V. Coox (JetBrains)" <qx@intellij.com> wrote in message
news:g6un2d$i76$1@is.intellij.net...
>
I experience the same behavior.
Additionally, my class members don't seem to be recognized anymore in the .aspx page when the controls are registered through the web.config:
however, it works properly when registered in the page itself: <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>]]>
ty, Wiebe Tijsma
Gabriel,
I've just checked. Everything works as expected. Could you send us a sample?
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Wiebe,
Ooops. Fixed. Try tomorrow's nightly, please. (#918 I guess)
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I just created a new web application and it works in the new project but
there is another issue. Here is what I did:
1. Created a new Web Application
2. In the Default.aspx I added a <asp:TextBox>
3. Then I added the attribute OnTextChanged="OnTextChanged" to the
<asp:TextBox>
4. At this point R# does not correctly highlight "OnTextChanged" which is a
bug (?)
5. Only after I build the Web Application will R# correctly mark
OnTextChanged.
6. Then when I use the quickfix option to create this method it will be
added to the code behind file.
So it seems like it works in new projects but not on my existing project.
What else can I look at?
Cheers
Gabriel Lozano-Moran
"Sergey V. Coox (JetBrains)" <qx@intellij.com> wrote in message
news:g7792k$vgg$1@is.intellij.net...
>
>
Thank you for the quick reply! I'll give it a try...
Gabriel,
I tried reproing the problem with either old and new projects - no luck.
Please, remove R# caches prior to reproing the case. If it still persists
we'll try to investigate it further.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"