Sunday, March 11, 2012

getting rid of the vertical scrollbar in a listbox

and heres the other weird thing -
if i wrap the whole up there in an updatepanel as such:

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label2" runat="server" Text="clickhere"></asp:Label><br />

<asp:ListBox ID="ListBox1" runat="server"
AutoPostBack="True" OnSelectedIndexChanged="selectedIndexChanged"
DataSourceID="pODS" DataTextField="priority" DataValueField="priorityID">
</asp:ListBox>

<ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server"
TargetControlID="Label2" PopupControlID="ListBox1" OnPreRender="AdjustVertical"
CommitProperty="value" >
</ajaxToolkit:PopupControlExtender>
<br />

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>

now the popup wont dismiss once ive clicked it
without the update panel it does dismiss simply cause
it does a whole page refresh
but why wont it dismiss with a partial page refresh

looking forward to your answers
thanks

toy


sorry just answered my own question

forgot to commit the selectedvalue in the code behind


im getting tired...

this answer is still unresolved?

if you have any ideas i would welcome them

thanks



No comments:

Post a Comment