Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / September 2003

Tip: Looking for answers? Try searching our database.

VS.NET Erasing ASP.NET Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan - 29 Sep 2003 03:52 GMT
I'm reposting my message again due to the fact that my no-
spam alias wasn't registered with MSDN at the time of my
last posting so I'm not sure if it showed up in the queue
for the support folks.

Thanks,
Jonathan

-------------------------------------
First off, some specs on my setup.

VS.NET 2003 7.1.3088
Developing in VB.NET
Windows XP SP1

I have recently done a new install of Windows XP as well
as install VS.NET 2003.

I am currently using the Infragistics UltraWebGrid. I am
not sure if my problem is related to the Infragistics
component or VS.NET. It appears to be VS.NET.

Here is what is happening:

I have an ASPX file from another developer that has the
WebGrid control in it. The WebGrid has all kinds of
information between the tags such as a RowEditTemplate,
etc. When I open this up in the designer, it really
managles the stuff between these tags. Some of it is left,
but a lot is not. If I switch to HTML mode and hit Ctrl-Z,
it all reappears. It seems to act similar to the Data Loss
bug from VS 2002. I'm not sure if this happens on VS 2002
as well since I don't have it install on my new machine
nor did I use the Infragistics WebGrid control in VS 2002.

I also tried it on a new project and it did the same
thing. I have confirmed with another developer that this
does not happen to him when opening the file.

Any ideas on this? I know it's sort of hard to explain. I
can put up a text file that shows what it is before and
then what it is once you open it in VS.NET. Let me know if
I can provide anymore information.

Thanks,
Jonathan
Yan-Hong Huang[MSFT] - 29 Sep 2003 10:22 GMT
Hello Jonathan,

Thanks for posting in the group. Your post are shown correctly now. :)

Based on my understanding, now the issue happens only one your machine,
right? I suggest you use a standard web server control for testing.

Also, sometimes when swiching view too quieckly, data will be lost in
designer. There are 2 visual cues that indicate the loading of the form is
actually complete:

-          The Visual Studio .NET Property Grid updates with information on
the form

-          The HTML document outline tree updates with current form
information (Note: While this is the most reliable method for ensuring that
the form has completely loaded, this tool window is not open by default.
You can open this window by selecting View..Other Windows..Document
Outline). Note: This is the most reliable indicator.

So, anytime you are switching to Web Forms designer view in an ASP.NET
application, you should use these 2 visual cues in order to ensure that the
form has completed loading.  Once you have verified that the form has
loaded, you can switch back to the code-behind view, run the application,
etc., without running into this data loss problem.

If the problem only happens to your machine, we may consider there is some
component broken in vs.net installation process. Repairing vs.net in
control panel may help on it.

Hope that helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
!Content-Class: urn:content-classes:message
!From: "Jonathan" <newsgroup@solutioninnovations.com>
!Sender: "Jonathan" <newsgroup@solutioninnovations.com>
!Subject: VS.NET Erasing ASP.NET Code
!Date: Sun, 28 Sep 2003 19:52:34 -0700
!Lines: 48
!Message-ID: <0bf001c38634$bc04d300$a101280a@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
!    charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!Thread-Index: AcOGNLwC8bK+lEwxRJOKVhviTaYdGA==
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Newsgroups: microsoft.public.vsnet.ide
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.ide:8393
!NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
!X-Tomcat-NG: microsoft.public.vsnet.ide
!
!I'm reposting my message again due to the fact that my no-
!spam alias wasn't registered with MSDN at the time of my
!last posting so I'm not sure if it showed up in the queue
!for the support folks.
!
!Thanks,
!Jonathan
!
!-------------------------------------
!First off, some specs on my setup.
!
!VS.NET 2003 7.1.3088
!Developing in VB.NET
!Windows XP SP1
!
!I have recently done a new install of Windows XP as well
!as install VS.NET 2003.
!
!I am currently using the Infragistics UltraWebGrid. I am
!not sure if my problem is related to the Infragistics
!component or VS.NET. It appears to be VS.NET.
!
!Here is what is happening:
!
!I have an ASPX file from another developer that has the
!WebGrid control in it. The WebGrid has all kinds of
!information between the tags such as a RowEditTemplate,
!etc. When I open this up in the designer, it really
!managles the stuff between these tags. Some of it is left,
!but a lot is not. If I switch to HTML mode and hit Ctrl-Z,
!it all reappears. It seems to act similar to the Data Loss
!bug from VS 2002. I'm not sure if this happens on VS 2002
!as well since I don't have it install on my new machine
!nor did I use the Infragistics WebGrid control in VS 2002.
!
!I also tried it on a new project and it did the same
!thing. I have confirmed with another developer that this
!does not happen to him when opening the file.
!
!Any ideas on this? I know it's sort of hard to explain. I
!can put up a text file that shows what it is before and
!then what it is once you open it in VS.NET. Let me know if
!I can provide anymore information.
!
!Thanks,
!Jonathan
!
!
!
Jonathan - 29 Sep 2003 15:39 GMT
See my respones inline.

>-----Original Message-----
>Hello Jonathan,
[quoted text clipped - 3 lines]
>Based on my understanding, now the issue happens only one your machine,
>right? I suggest you use a standard web server control for testing.

This is correct.  On another machine that I have it is not
doing it.  Standard web server controls such as the
Datagrid work find and do not lose any information.

>So, anytime you are switching to Web Forms designer view in an ASP.NET
>application, you should use these 2 visual cues in order to ensure that the
>form has completed loading.  Once you have verified that the form has
>loaded, you can switch back to the code-behind view, run the application,
>etc., without running into this data loss problem.

Ok.  We may of had a little bit of a mis-communication
here.  It isn't losing anything in the code-behind.  And I
also don't think it is the fact that I'm trying to do
anything too fast.  As soon as I open an ASPX file with
this control on it, it opens and put an asterisk up beside
of the filename like it does when you modify the file for
the first time.  If I switch to the HTML view, it is
missing some things between the tags.  If I hit Ctrl-Z
(Undo) while in the HTML view, the code that was erased is
restored.  As soon as I switch back to the Design View, it
is erased.

>If the problem only happens to your machine, we may consider there is some
>component broken in vs.net installation process. Repairing vs.net in
>control panel may help on it.

I did trying to repair the installation.  I let it go
through and reinstall everything.  It is still doing the
same thing.  I really don't want to uninstall completely
and reinstall as it takes hours to reinstall.  I'm not
sure of the DLL that the Designer uses and if that somehow
may relate to Internet Explorer or Visual Studio 6 which I
have installed.

Let me know if I can provide anymore information to help
solve this problem.

Thanks,
Jonathan
John Saunders - 30 Sep 2003 03:07 GMT
Not to butt in, but are you sure you have the identical versions of the
control between the two machines?
Signature

John Saunders
Internet Engineer
john.saunders@surfcontrol.com

Jonathan - 30 Sep 2003 14:52 GMT
John,

Yes. I am sure that I have the identical version of the
control on both (3 machines).  It's extremely weird.

Thanks,
Jonathan

>-----Original Message-----
>
>Not to butt in, but are you sure you have the identical versions of the
>control between the two machines?
Yan-Hong Huang[MSFT] - 30 Sep 2003 07:04 GMT
Hello Jonathan,

Thanks for the response.

It is really strange that the problem doesn't happen on the other machine.
Based on my experience, I suggest you do the following steps:

1) Remove the web control and install it again on the system.
2) Reinstall VS.NET on the system.

I understand that reinstalling it is a time consuming task. However, there
is no public list of which file is responsible for IDE HTML view rendering.
So reinstalling is the most convenient way.

If the problem still can't be resovled, we may need to launch windebugger
and attach to vs.net when in operating. This may need the source code of
that web control. So I suggest you also consult it in Infragistics. You
could also contact Microsoft Product Support Service to have one support
engineer to work with you specificaly on it.

Please post here if there are any questions.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
!Content-Class: urn:content-classes:message
!From: "Jonathan" <newsgroup@solutioninnovations.com>
!Sender: "Jonathan" <newsgroup@solutioninnovations.com>
!References: <0bf001c38634$bc04d300$a101280a@phx.gbl>
<L$WknsmhDHA.2188@cpmsftngxa06.phx.gbl>
!Subject: RE: VS.NET Erasing ASP.NET Code
!Date: Mon, 29 Sep 2003 07:39:42 -0700
!Lines: 59
!Message-ID: <195f01c38697$84b0f880$a001280a@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
!    charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!Thread-Index: AcOGl4SwFnbuZKPxTSaL3h/8+TTWuQ==
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Newsgroups: microsoft.public.vsnet.ide
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.ide:8412
!NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
!X-Tomcat-NG: microsoft.public.vsnet.ide
!
!See my respones inline.
!
!>-----Original Message-----
!>Hello Jonathan,
!>
!>Thanks for posting in the group. Your post are shown
!correctly now. :)
!>
!>Based on my understanding, now the issue happens only one
!your machine,
!>right? I suggest you use a standard web server control
!for testing.
!
!This is correct.  On another machine that I have it is not
!doing it.  Standard web server controls such as the
!Datagrid work find and do not lose any information.
!
!>So, anytime you are switching to Web Forms designer view
!in an ASP.NET
!>application, you should use these 2 visual cues in order
!to ensure that the
!>form has completed loading.  Once you have verified that
!the form has
!>loaded, you can switch back to the code-behind view, run
!the application,
!>etc., without running into this data loss problem.
!
!Ok.  We may of had a little bit of a mis-communication
!here.  It isn't losing anything in the code-behind.  And I
!also don't think it is the fact that I'm trying to do
!anything too fast.  As soon as I open an ASPX file with
!this control on it, it opens and put an asterisk up beside
!of the filename like it does when you modify the file for
!the first time.  If I switch to the HTML view, it is
!missing some things between the tags.  If I hit Ctrl-Z
!(Undo) while in the HTML view, the code that was erased is
!restored.  As soon as I switch back to the Design View, it
!is erased.
!
!>If the problem only happens to your machine, we may
!consider there is some
!>component broken in vs.net installation process.
!Repairing vs.net in
!>control panel may help on it.
!
!I did trying to repair the installation.  I let it go
!through and reinstall everything.  It is still doing the
!same thing.  I really don't want to uninstall completely
!and reinstall as it takes hours to reinstall.  I'm not
!sure of the DLL that the Designer uses and if that somehow
!may relate to Internet Explorer or Visual Studio 6 which I
!have installed.
!
!Let me know if I can provide anymore information to help
!solve this problem.
!
!Thanks,
!Jonathan
!
!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.