annoying postback

Posted on 2005-03-18
Medium Priority
Last Modified: 2012-08-14
im using visual studio asp.net (vb)

i have bunch of controls in that page and the controls are like this:

radio button

if the user click on checkbox then
it visible couple of other controls like lables,textbox......

what annoying me is that, it postbacks whenever i check or uncheck and puts me to the top of the page and again i have to scroll down to that particular checkbox to see the other controls

and at the same time i need to have postback

how can i solve this ?
Question by:nisarkhan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Accepted Solution

Jesse Houwing earned 120 total points
ID: 13577317
try enabling smartnavigation. It automatically scrolls back to the right location.

Author Comment

ID: 13577383
i heard bad about smartnavigation and i'm shy to use smarnavigation

Another aspect is the following behaviour reported in the newsgroups (and not verified by myself ;): If you would like to put the focus on some objects of your page (i.e. textboxes), you usually use JavaScript:

   Page.RegisterClientScriptBlock("focus", _

or (VB.NET)

   Page.RegisterClientScriptBlock("focus", _
      "<script language=""JavaScript"">" & _
         "document.<id-of-your-control>.focus();" & _
      "</script> ")

But: Try it with SmartNavigation turned on: It simpy won't work on some systems. The reasons are unknown, but it seems to be, as if IE won't interpret the script correctly.

Sad, isn't it?


Assisted Solution

Havagan earned 80 total points
ID: 13577527
It doesn't really pertain to the question, but, I sometimes wonder how much of SmartNavigation's issues are due to bad code elsewhere or improperly installed aspnet_client/*.js files. The two issues I've had with SmartNav were caused by missing .NET .js files (reinstall fixed this one) and believe it or not, by bad code in an included .css file. Missing curly braces and semi-colons seems to have messed with SmartNav's head. =)


Expert Comment

ID: 13578266
you can also use javascript to enable/disable and visible/invisible the controls. it will not perform a postback.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question