Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

postback creating duplicates in asp drop down list

New Here ,
Dec 06, 2006 Dec 06, 2006
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.
TOPICS
Server side applications
359
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 06, 2006 Dec 06, 2006
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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 07, 2006 Dec 07, 2006
LATEST
If I set the PostBackBind to false, the search results don't display in the datagrid. Code attached.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines