473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Bug in Asp.Net Form design

WJ
I have a form that had a text control. When I deleted the control using the
Design surface, it was deleted but the text behind was not. Somewhere in the
code behind, I referenced the TextControl, because this line of code failed
to be removed by the designer (protected System.Web.UI.WebControls.TextBox
txtMyName"), the compiler passed! At runtime, an access violation occurred.

John

Nov 18 '05 #1
3 1054
"Bug"

interesting choice of words

If you are riding a bicycle with training wheels on it and pass to close to
a fence post and one of the training wheels gets hooked on the post and you
end up taking a header -- did the training wheels malfunction? Do the
training wheels have a bug because they didn't prevent you from falling?

Just trying here to lend some perspective to expectations of VS.NET vs. any
"bugs" it may have.

Cheers!

GH
"WJ" <Jo*******@HotMail.Com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I have a form that had a text control. When I deleted the control using the Design surface, it was deleted but the text behind was not. Somewhere in the code behind, I referenced the TextControl, because this line of code failed to be removed by the designer (protected System.Web.UI.WebControls.TextBox
txtMyName"), the compiler passed! At runtime, an access violation occurred.
John

Nov 18 '05 #2
And? Sounds like you need to go in and fix your code that you broke.

"WJ" <Jo*******@HotMail.Com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I have a form that had a text control. When I deleted the control using the Design surface, it was deleted but the text behind was not. Somewhere in the code behind, I referenced the TextControl, because this line of code failed to be removed by the designer (protected System.Web.UI.WebControls.TextBox
txtMyName"), the compiler passed! At runtime, an access violation occurred.
John

Nov 18 '05 #3
WJ
Your logic does not work here. This is a real bug and I do not think I can
be "cheer..." here. I do not think you understand my message. When you have
3 dozens froms to deal with, it is not fun anymore with a manual process.

Here goes again: Create a webform, drop a dozen of TextControls and Label
controls on it. Save it. Delete some of it using the IDE design UI. Check to
see if all of them being deleted (both visual and non visual items). Then
come back here tell me how you feel about it !

If you do not understand my message, please post it here.

John Webbs

"Guadala Harry" <GM**@NoSpam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
"Bug"

interesting choice of words

If you are riding a bicycle with training wheels on it and pass to close
to
a fence post and one of the training wheels gets hooked on the post and
you
end up taking a header -- did the training wheels malfunction? Do the
training wheels have a bug because they didn't prevent you from falling?

Just trying here to lend some perspective to expectations of VS.NET vs.
any
"bugs" it may have.

Cheers!

GH
"WJ" <Jo*******@HotMail.Com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I have a form that had a text control. When I deleted the control using

the
Design surface, it was deleted but the text behind was not. Somewhere in

the
code behind, I referenced the TextControl, because this line of code

failed
to be removed by the designer (protected
System.Web.UI.WebControls.TextBox
txtMyName"), the compiler passed! At runtime, an access violation

occurred.

John


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Yasutaka Ito | last post by:
Hi folks! I have a BaseForm class that inherits System.Windows.Forms.Form. It has a property, whose value I need supplied by the class that inherits it. The BaseForm usees the value supplied...
2
by: Pete | last post by:
Before I get started with the question, does anyone have a (single) good book recommendation for database design? Not an Access-specific book, but something geared toward helping me figure out...
2
by: Ray | last post by:
Stop me if you've heard this, but I am running Access 2002 and all of a sudden, if I design a particular form (it's been working fine for ages), Access crashes rather than open it in design view. ...
0
by: Frnak McKenney | last post by:
I'm running into problems with VisualStudio.NET2003 and Windows Forms inheritance. It _feels_ like a bug, but it could just as well be a misunderstanding on my part regarding how the VS Designer...
14
by: Jan Nielsen | last post by:
Hi In Microsoft Access it is possible to write code like this Sub test() DoCmd.OpenForm "TestForm", acDesign Dim a As Control For Each a In Forms("TestForm").Controls Do stuff Next End Sub
8
by: Brett | last post by:
I have a form with a Form1_Load() Subprocedure and no other code. For some reason, the design view does not come up. If I add a new form, the design view does come up. The form does appear when...
2
by: Richard Bysouth | last post by:
Hi When attempting to view inherited forms in design mode I have been getting the message "The path is not of a legal form" and am unable to view the designer. I can't seem to find any...
3
by: --== Alain ==-- | last post by:
Hi, I've created a Form just for testing purposes. on this form i have a custom control that i created. Every time that i update my custom control (dll file), my test form displays the...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
10
by: menashay | last post by:
Hello, I am absolute beginner in C# so pardon me if the following question is too easy. I have a form with a one button. When I click the button I want to display a message that reads...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.