Download
100% FREE
Office Document APIs for .NET
Online: 1248
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
|
Bookmarks
|
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 : 595 | 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
What is technical SEO?
(0)
New
display data in html table from json file
(1)
Updated
Display record from json file in mvc
(0)
how to know the return type of json object using LogFile in c#
(1)
Upload image having bigger size (20 MB or more) using canvas in HTML5
(1)
Download any file having more than 50 MB size using Javascript on IE
(0)
Congratulations to all monthly winners of Mar 2018
(1)
Updated
OST to PST Converter
(2)
More ...