473,503 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A PopEndTag was called without a corresponding PushEndTag

TJS
can any one help with this error message ? What's missing ?

"A PopEndTag was called without a corresponding PushEndTag"

==============offending code to generate droplist ====================
......

writer.AddAttribute(HtmlTextWriterAttribute.Id, name)
writer.AddAttribute(HtmlTextWriterAttribute.Name, name)
writer.RenderBeginTag(HtmlTextWriterTag.Select)

while dtr.read

writer.AddAttribute( HtmlTextWriterAttribute.Value, dtr(0) )
If colEditValues(name) = dtr(0) Then
writer.AddAttribute(HtmlTextWriterAttribute.Select ed, "SELECTED")
End If

writer.RenderBeginTag(HtmlTextWriterTag.Option)
writer.Write(dtr(1))
writer.RenderEndTag()

end while

writer.RenderEndTag()
........
Nov 19 '05 #1
1 4471
> can any one help with this error message ? What's missing ?

As far as I can tell, what's missing is the offending code. The code you
posted by itself is fine. Other than the fact that you're not using Option
Strict. So, I can't tell what exactly is going into your HTML.

You call RenderBeginTag for the Select object. Then you create each option,
calling RenderBeginTag and RenderEndTag with each one. Finally, you call
RenderEndTag on the Select object. In this block, all the PopEndTags have
PopPushTags.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"TJS" <no****@here.com> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
can any one help with this error message ? What's missing ?

"A PopEndTag was called without a corresponding PushEndTag"

==============offending code to generate droplist ====================
.....

writer.AddAttribute(HtmlTextWriterAttribute.Id, name)
writer.AddAttribute(HtmlTextWriterAttribute.Name, name)
writer.RenderBeginTag(HtmlTextWriterTag.Select)

while dtr.read

writer.AddAttribute( HtmlTextWriterAttribute.Value, dtr(0) )
If colEditValues(name) = dtr(0) Then
writer.AddAttribute(HtmlTextWriterAttribute.Select ed, "SELECTED")
End If

writer.RenderBeginTag(HtmlTextWriterTag.Option)
writer.Write(dtr(1))
writer.RenderEndTag()

end while

writer.RenderEndTag()
.......

Nov 19 '05 #2

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

Similar topics

7
1881
by: Douglas Peterson | last post by:
Take a look at this code, it looks funny as its written to be as short as possible: -- code -- struct Base { ~Base() { *((char*)0) = 0; } }; struct Derived : public Base
9
1033
by: Sashi | last post by:
Hi, when I run the following piece, I don't get any output, suggesting that the default c'tor is not being called. Why? #include <iostream> class A{ public: A(){std::cout<<"Null \n";};...
10
1378
by: Julia | last post by:
Hi Please can someone explain this behaviour: I have a MustInherit Base class and a Derived class that Inherits Base and Shadows a method in the base class. If I Dim a variable of type...
2
4242
by: Bill Nguyen | last post by:
What do I need to do to add a row to a table with single column? I got the "mnarrowing conversion" ewrror mesage. Thanks Bill -----------------
2
1916
by: jason | last post by:
Since going to framework 2.0 from 1.1, I'm getting error: Overload resolution failed because no accessible 'New' can be called without a narrowing conversion: On line: Dim LogInfo As New...
3
1268
by: arorap | last post by:
Hi, I've seen a behavior on both my windows machine and a Linux server that php scripts get called even when called without a .php extension. for example, http://srlchem.com/company/about.php...
9
2607
anastasius
by: anastasius | last post by:
I have read other posts with a similar problem but I have not read of one like this. When a user selects a name from the drop-down list called "cboLastName" (which is unbound and whose...
3
1034
by: tshad | last post by:
I am a little confused here. I was under the impression that before you can use an interface (and you can't instantiate an interface), you have to implement all the methods. But I am trying to...
1
969
by: Jimmy Hartzell | last post by:
Specifically this function: void fill_all(GCReference<GCTestwhat_with) { for(int i = 0; i < 16; i++) { refs = what_with; } } Some destructor seems to be getting called within this function,...
0
7086
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
7332
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...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.