473,387 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Button Autopostback

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
4 10419
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jenny | last post by:
Hi Prasad, there is no such method like Button.AutoPostBack = false supported. I'm using Button1.Attributes.Add("Autopostback", "False") instead but it looks like nothing happens. Jenny
3
by: Lloyd Sheen | last post by:
I have a page that works fine. I am trying to optimize the page by overriding some of the Information that is being saved in the hidden VIEWSTATE. If I make the properties of the dropdown False...
8
by: Matthew Louden | last post by:
why need to set autopostback property to be true?? I know autopostback event means to send the form to the server automatically. I tried checkbox, checkbox list, radio button, and radio button...
1
by: Edward | last post by:
I am having a terrible time getting anything useful out of a listbox on my web form. I am populating it with the results from Postcode lookup software, and it is showing the results fine. What...
3
by: Wei | last post by:
Hi, I have a page written in ASP.net c# witch has a datalist with 200 records (in Itemtemplate). Each record includes nine webcontrol radio buttons as a group. The user will need to check...
1
by: Yammy | last post by:
The standard button is set its autopostback property to be true, am I right ? How can I change it to be false ? I tried this... <td><asp:Button id="cmd1" .... autopostback="false"/></td> But it...
2
by: Bob Peek | last post by:
I have created a master page with a single asp:button that posts the page without page validation. On the content page, I have a variety of asp controls including text box, drop down list...
2
by: Tom Edelbrok | last post by:
Question: Why does a button event (ie: Button1_Click) get executed on the first click for a textbox control which has 'autopostback=false', but doesn't get executed until a second click when...
1
by: =?Utf-8?B?cHJhYmh1XzI3Xzg0?= | last post by:
hi i am creating many radio RadioButtonList dynamically in page load.its working find.now i want to select a text in radio button(Autopostback is true for radio buttonlist) and find that text in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.