Buy Questpond's video subscriptions on
huge discount
.
Online: 1047
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
listbox goes top during postback in asp.net c#
Posted by
Prabu_Spark
under
ASP.NET
on 9/9/2014 |
Points: 10
| Views : 1029 | Status :
[Member]
| Replies : 2
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hi sir,
I have a listbox that contains 30 items in the list and set the autopostback to true. During the postback, listbox goes to top position.
With regards,
J.Prabu.
[Email:prbspark@gmail.com]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Naveenhcl
on: 9/9/2014
[Member]
Starter
|
Points: 25
0
Hi,
I can't able to understand your problem.
I think during postback your controls are skewing right.?
If this is your problem then Go to AJAX Controls and use UpdatePanel, this will give you proper alignment after postback.
Prabu_Spark
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Prabu_Spark
on: 9/9/2014
[Member]
Starter
|
Points: 25
0
Hi,
I placed the listbox inside the update panel, it i select the 20th item in listbox , i set autopostback to true, because of this property it will goes to top position of listbox. My problem is how to maintain the selected position of listbox during autopostback event. Kindly give me the solution for this problem.
<asp:UpdatePanel ID="updatepanel1" runat="server">
<ContentTemplate>
<table>
<tr>
<td class="lbl">
School Name
</td>
<td>
<asp:ListBox ID="list_schoolname" AutoPostBack="true" CssClass="ctr150" Height="200px" Width="250px"
SelectionMode="Multiple" runat="server" onchange="lstSelection();"
onselectedindexchanged="list_schoolname_SelectedIndexChanged"></asp:ListBox>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
With regards,
J.Prabu.
[Email:prbspark@gmail.com]
Prabu_Spark
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
Climax Delay Condoms for Long Lasting Pleasure
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
Where can I found sample MVC projects to learn and improve skills
(1)
Extract a value from HTML string
(0)
Get only year part from date string in SQL server
(0)
Get only year part from date string in SQL server
(0)
Get only year part from date string in SQL server
(0)
Get only year part from date string in SQL server
(0)
More ...