By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,044 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,044 IT Pros & Developers. It's quick & easy.

Button Autopostback

P: n/a
JJ
Hi,

I need to have a button cause an autopostback. How can I do this?
I have textboxs on webform that supply values for a calc but not all will
get filled at any particular time. So I need a button that signals once user
is done to do an autopostback. How can I do this?

Thanks,
JJ
Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi JJ,

If you're using a button, it should do a postback each time you click on it.
Hope I understood your question correctly.
Best Regards

"JJ" <JJ@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
Hi,

I need to have a button cause an autopostback. How can I do this?
I have textboxs on webform that supply values for a calc but not all will
get filled at any particular time. So I need a button that signals once user is done to do an autopostback. How can I do this?

Thanks,
JJ

Nov 19 '05 #2

P: n/a
JJ
See when I click on a textbox that has autopostback set to true. The page
will postback of course but in a button their is no autopostback property. So
what your saying is button control automatically posts back? Ok maybe I'm
missing the picture here. See in each dropdownlist control I have a changed
value event that fires to do some calcs. In order to fire those off a
postback has to happen but I want the postback to happen one time. I figured
I would use the button control and when clicked would generate an postback
but that doesn't happen. It just enters into the onclick event for the button
with no postback to page. What am I doing wrong?

Thanks,

JJ

"Keef" wrote:
Hi JJ,

If you're using a button, it should do a postback each time you click on it.
Hope I understood your question correctly.
Best Regards

"JJ" <JJ@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
Hi,

I need to have a button cause an autopostback. How can I do this?
I have textboxs on webform that supply values for a calc but not all will
get filled at any particular time. So I need a button that signals once

user
is done to do an autopostback. How can I do this?

Thanks,
JJ


Nov 19 '05 #3

P: n/a
are you using a ASP.NET Button control or the HTML button (i.e. <input
type=button>)?
HTML buttons wont have postback.
WebControl buttons do.

"JJ" <JJ@discussions.microsoft.com> wrote in message
news:B4**********************************@microsof t.com...
See when I click on a textbox that has autopostback set to true. The page
will postback of course but in a button their is no autopostback property. So what your saying is button control automatically posts back? Ok maybe I'm
missing the picture here. See in each dropdownlist control I have a changed value event that fires to do some calcs. In order to fire those off a
postback has to happen but I want the postback to happen one time. I figured I would use the button control and when clicked would generate an postback
but that doesn't happen. It just enters into the onclick event for the button with no postback to page. What am I doing wrong?

Thanks,

JJ

"Keef" wrote:
Hi JJ,

If you're using a button, it should do a postback each time you click on it. Hope I understood your question correctly.
Best Regards

"JJ" <JJ@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
Hi,

I need to have a button cause an autopostback. How can I do this?
I have textboxs on webform that supply values for a calc but not all will get filled at any particular time. So I need a button that signals
once user
is done to do an autopostback. How can I do this?

Thanks,
JJ


Nov 19 '05 #4

P: n/a
Hi JJ,

When the onclick event is executed and your webform is reloaded, a postback
has already occured. The dropdownlist changed events should have been
executed within the process.

When you say it enters the the onclick button event with no postback to
page, do you mean the dropdownlist changed events are not even executed? Or
were they executed but you are not getting the results you want?

Best Regards
"JJ" <JJ@discussions.microsoft.com> wrote in message
news:B4**********************************@microsof t.com...
See when I click on a textbox that has autopostback set to true. The page
will postback of course but in a button their is no autopostback property. So what your saying is button control automatically posts back? Ok maybe I'm
missing the picture here. See in each dropdownlist control I have a changed value event that fires to do some calcs. In order to fire those off a
postback has to happen but I want the postback to happen one time. I figured I would use the button control and when clicked would generate an postback
but that doesn't happen. It just enters into the onclick event for the button with no postback to page. What am I doing wrong?

Thanks,

JJ

"Keef" wrote:
Hi JJ,

If you're using a button, it should do a postback each time you click on it. Hope I understood your question correctly.
Best Regards

"JJ" <JJ@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
Hi,

I need to have a button cause an autopostback. How can I do this?
I have textboxs on webform that supply values for a calc but not all will get filled at any particular time. So I need a button that signals
once user
is done to do an autopostback. How can I do this?

Thanks,
JJ


Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.