Skip to main content
Participant
Dec 7, 2006 12:46 AM UTC
Question

postback creating duplicates in asp drop down list

Hello Everyone,

I'm new here and have had an issue for a little over a week that I can't seem to figure out. I have an asp drop down list that's sorted with duplicates removed and two asp text boxes all for user input. The input is for a search that takes the results and displays them to a datagrid. Everything works fine up until the drop down box is accessed again for another search. The postback event populates the drop down box, so everything is duplicated. I've tried to hide the search form on postback in the sub Page_Load so the user can't perform another search, but once the values for the search are removed, the paging no longer works. Anyone have any ideas? Thanks.
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Dec 7, 2006 2:11 AM UTC
If this is DW created code you need to set the PostBackBind option to false.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"Nicknae" <webforumsuser@macromedia.com> wrote in message
news:el7o8n$8mq$1@forums.macromedia.com...
> Hello Everyone,
>
> I'm new here and have had an issue for a little over a week that I can't
> seem
> to figure out. I have an asp drop down list that's sorted with duplicates
> removed and two asp text boxes all for user input. The input is for a
> search
> that takes the results and displays them to a datagrid. Everything works
> fine
> up until the drop down box is accessed again for another search. The
> postback
> event populates the drop down box, so everything is duplicated. I've
> tried to
> hide the search form on postback in the sub Page_Load so the user can't
> perform
> another search, but once the values for the search are removed, the paging
> no
> longer works. Anyone have any ideas? Thanks.
>


Translate
NicknaeAuthor
Participant
Dec 7, 2006 1:11 PM UTC
If I set the PostBackBind to false, the search results don't display in the datagrid. Code attached.
Translate