Thursday, August 21, 2003

PREVENTING POSTBACKS OR SETTING FOCUS ON CORRECT CONTROLS ACROSS POSTBACKS

Hi Paddy,
If there are certain things that you need to do at server side on
selection of DropDownList and you anyways want the postback then the focus
to the same control on which the user was working on can be achieved by
SmartNavigation property of ASPX page. You can just go ahead and set the
property SmartNavigation="true" in the page directive of your page which
will maintain the focus across postbacks.
warm regards
Vishal Joshi
Asst. Convener - CNUG | Microsoft MVP
If You Think YOU CAN... You Can...

Hi Paddy,
Set the "AutoPostBack" property of the DropDownlist to false and the
page should not post back on any client side interaction with drop down. By
default this property is false check what is its value now.
Alternatively you can avoid postback using client side Jscript function
activated on selection on dropdownlist. You just need to return false in
the JScript function. But setting "AutoPostBack" property is the correct
way of doing it.
warm regards
Vishal Joshi
Asst. Convener - CNUG | Microsoft MVP
If You Think YOU CAN... You Can...


-----Original Message-----
From: Paddy1010762003
To: Chennai .NET User Group
Sent: 8/21/03 4:05 AM
Subject: Page refresh problem in asp.net

Hi guys,
here is the scenario...I have data entry screen developed in asp.net
with lot of info on the screen. I need to scroll down the screen to see
the whole information on the screen. This cannot be avoided as i need to
populate lot of information on the screen. I have a combo box web server
control displayed at the bottom of the screen To see the combox box
control , i need to scroll down the screen. When an event occurs in the
combo box, say i choose a value in the combo box, the page gets
refreshed becos of post back mechanism and goes to the top of the page.
As a user , it is very annoying everytime i click on the combox , the
page goes to the top . Is there anyway out in asp.net to avoid this kind
of problem. Please suggest.

Wednesday, August 20, 2003

Who am I?
I am one among the thousands of Software Professionals in the IT industry, trying to do what I really like doing. And at the moment I like .Net so am working in it as much as possible (?)... Don't ask how much that means... or how much it pays (It doesn't pay well believe me.. Just kiddin??)

What did I do?
I worked in .Net since December 2001 ( Beta release) and am still working in it. Lots of things I learnt lots unlearned. Just started realizing that there is no end, that many of us who claim to be knowing .Net really know very little of it... But interstingly of whatever little I knew I tried to share as well and did some community activities related to .Net too.

What community activities am I talking about?
Along with Anand M (Microsoft MVP .Net) and other group of friends, started working on a User Group in India called "Chennai .Net Users Group(CNUG)". We started with handful of people and today we are above 1350 in just over an year. Well the group does talk a lot about .Net (CNUG). By the time the group has matured and has caught momentum I came to US (from India, incase you haven't guessed!) for my professional needs, but I am working on a User Group here as well called .Net-Bloomington Users Group (.Net-BUG). Hope to see that also grow sometime.

Why community activities?
Coz there is never one way transaction in teaching/learning. Many a times a student teaches and the teacher learns and visa a versa is anyways true. By trying to give back to the community, does give back a lot in return. You keep learning on topics and subjects which you would probably never work on. I should say the groups and presentations and trainings I have ever attended or given, always made me feel that I was the beneficiary.

What other stuff I do?
I am involved in other activities on newsgroups and usergroups and I also intend to carry out other techincally related stuff. I was also awarded Microsoft's MVP Award. To know more about the award Click Here.

Why Blog?
Coz this is the way I can express myself to the world, to the community which matters to me. See you read it, one more step towards the goal...

What do I do other than work?
I love photograhy, travel, music, movies and swimming, I try that I devote some time to these activites too. I am in the process of expanding my horizons in photography. Though I haven't done anything, but whats harm in trying and blowing the trumpet, atleast out of sheer shame, I will do something.. What say??...

Vishal Joshi
Ph#: +1-309-310-1662.
If You Think YOU CAN.. You Can...

You Can Reach me @ vishalrjoshi@hotmail.com