Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   asp:dropdownlist autopostback each page load (http://www.velocityreviews.com/forums/t688999-asp-dropdownlist-autopostback-each-page-load.html)

Albert 06-24-2009 06:12 PM

asp:dropdownlist autopostback each page load
 
Hello,

I have an asp drop down list that I need to have posted back to the
server every time the page loads. The page returns a list of items
that match the string input. The inputstr loads into an xml page that
calls a SQL stored procedure. The xml/sql combination also has a
paging function. The problem is that when the user goes to the next
page, the inputstr returns null (because the dropdownlist is not being
re-selected) so the list will not be returned.

Thanks for any help.

<asp:DropDownList ID="inputstr" runat="server" AutoPostBack="True">
<asp:ListItem Value="string1">String 1</asp:ListItem>
<asp:ListItem Value="string2">String 2</asp:ListItem>
<asp:ListItem Value="string3">String 3</asp:ListItem>
</asp:DropDownList>


All times are GMT. The time now is 02:55 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.