Forum Moderators: open

Message Too Old, No Replies

postback distress

         

mrslashdot

3:32 am on Jun 17, 2005 (gmt 0)



Hi

I have been rackin my brain on this. Any help asap would be greatly appreciated.

How can I make the calendar control not flicker the screen when I select a date.
I believe its a postback issue. I notice special controls downloadable from certain web sites offer datepickers, etc. which don't cause the screen to flicker when you choose the date. I know its a specialized control there using as shown below

my typical calendar asp control
Protected WithEvents cal1 As System.Web.UI.WebControls.Calendar

downloadable ones..
protected WithEvents bdp1 As BasicFrame.WebControls.BasicDatePicker

Interesting to see the use of no UI in the downloadable control.

It looks the download control I test shows that there is no postback on the lower left of the browser
It would show something like javascript:void(0)

When I run the normal jasp.net calendar control you see
javascript:__doPostBack(...)

How can I turn off that Postback for the calendar lets say or for a button, whatever and have a look and feel of like a standalone VB app. Or do I just need to learn how to customize my own controls. Do I need to do any validations myself to turn off this postback stuff.

Any help again, links code snippets would be so greatly appreciated.

Thanks.

[edited by: Xoc at 2:06 pm (utc) on June 17, 2005]
[edit reason] No sigs [/edit]

Xoc

2:10 pm on Jun 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld.

The calendar control (and really all of ASP.NET) works by using postbacks. When you click on a date, there is a postback and a new page is constructed. There isn't really a way of turning it off. The javascript is there merely to cause the postback.

You could create a Custom Control that did client-side javascript to make a calendar control.