Very Strange PostBack and Viewstate Conflict Problem

J

jm

I have a dropdownlist on my form.

When I first load the page no PostBack, the ddl loads fine.

When I create a brand new order (INSERT, etc), the same ddl is
supposed to be populated with new values. And it does show on the
screen the newly populated ddl.

It LOOKS fine. I was having various problems so I looked at the view
source for the page. I found in the page that the ddl has the OLD
values from when the page was first loaded, BUT it has the NEW values
that I just loaded it with on the screen.

In other words, the HTML in the source is different from the visible
page, which makes no sense at all.

I am not refreshing ANY of the ddl when it is not postback; I only do
that on the initial visit to the page and change the ddl when a new
order id is created. It simply displays the new values on the page,
but has totally different values in the source (and the displayed
values are no where in the code).

Any ideas? Thank you.
 
N

Natty Gur

Hi,

You probably using smartnavigation and thus see the original page HTML.
smartnavigation use hidden IFrame that holds HTML returned from postback
while the page HTML remain unchanged. If you will turn off
smartnavigation you will see DDL values.

HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top