473,796 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabling buttons in ASP.net 1.1

I'm having major issues disabling a submit button after a form has
been filled out. Nothing I've tried so far has helped. I've put

if(!Page.IsPost Back)
{
Session["JustSubmit ted"]=false;
}
else if((bool)Sessio n["JustSubmit ted"]==true)
{
contiuneCode();
}

in the page_load

public void btn_submit_Clic k(object sender, System.EventArg s e)
{
Session["JustSubmit ted"]=true;
btn_submit.Enab led = false;
lbl_process.Vis ible = true;
//Force Postback
}

i'd like to force a postback in the btn_submit_clic k but i can't seem
to do that. I know its not pretty, but i'm open to other suggestions.

Thanks.

hplayer

Jul 27 '07 #1
3 1441
This should force the postback for you

Response.Append Header("REFRESH ", "0");

Jul 27 '07 #2
Lit
Hplayer03,

Can you confirm if what Lee suggested below works for you or not?

Thank you,

Lit
"lee whitbeck" <le*********@ho tmail.comwrote in message
news:11******** *************@2 2g2000hsm.googl egroups.com...
This should force the postback for you

Response.Append Header("REFRESH ", "0");

Jul 27 '07 #3
On Jul 27, 11:39 am, "Lit" <sql_agent...@h otmail.comwrote :
Hplayer03,

Can you confirm if what Lee suggested below works for you or not?

Thank you,

Lit

"lee whitbeck" <leewhitb...@ho tmail.comwrote in message

news:11******** *************@2 2g2000hsm.googl egroups.com...
This should force the postback for you
Response.Append Header("REFRESH ", "0");
thanks...that worked out for me...the only problem i ran into was when
i used his code and forced the postback....my variables were lost so
before i forced the postback i saved the variables to session and
brought them back in when it came back...However, since i'm using
asp.net 1.1 i have another small issue of the scroll position being
lost. I'm told you need javascript for that. GoodLuck! Thanks for
the reply Lee! You were very helpful!

Jul 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3538
by: Philippe Meunier | last post by:
Hi, I am using the .NET toolbar with VB.NET 2003. My toolbar uses icons images that are actually PNG files and uses alpha blending on it. So to make alpha blending work correctly with the Toolbar and the Imagelist I had to use a tricky method with API calls that is described like this by a MS MVP : 1) Use v6 of the common controls (have a manifest) 2) Load the PNG using GDI+
3
1303
by: Jo | last post by:
Hi I've got a .NET web application and once a user presses a certain button the the page I'd like to disable other buttons straight away so that the user can't press anything else while calculations are performed. I realise that if I put code to disable other buttons at the start of my button press procedure then it doesn't actually happen until the page refreshes, which is after the calculations are performed. Is there anyway to get around...
1
1453
by: Chris | last post by:
Hi Can you disable particular radiobuttons in a radibuttonlist control? I know you can disable the entire radiobutton list, but I'm interested in disabling radio buttons within the radiobuttonlist. Thanks Chris
5
5056
by: Lyn | last post by:
Hi, I hope someone can help. I have a main form which mostly fills the Access window. In the bottom half of this form I have a tab control to display various types of data related to the main form record. In each page of the tab control, there are three buttons: Add, Update, Delete. Any of these buttons will open another, smaller form to add, update or delete the related data record. Originally, I had placed the smaller form such...
1
1562
by: markeboy | last post by:
What is the workaround to prevent toolbar buttons from displaying a grey square where the image should be once the toolbar button is disabled I have transparent color of the image list set to transparent (after trying every other color) Toolbar images are set at design time - bound to an imagelist
1
1249
by: Lamine Darbouche | last post by:
Please Help, I have a form with multiple buttons "New User", "Delete User", "Save" buttons, when I access the form it selects the "New User" button by default, so when you hit the return key ("keyboard") it goes directly to "New User" form. My question is: How could I disable the default selection so that when I access the form none of the buttons is selected until I click on it myself? Many thanks in advance. Regards
2
6320
by: dougawells | last post by:
Hi- I'm wanting to have a set of radio buttons disabled when a form is displayed, then if they check another specific radio button, those would become enabled. I've tried setting it via window.document.formname.radiogroup.disabled="true"; (or false) - but that doesn't seem to work. I've seen this done with text boxes, but not with radio buttons. Can anyone give any help? Thanks
0
906
by: Carlo \(MCP only\) | last post by:
Hi all I'm trying to disable (or remove/hide) the three small buttons that appears on the RIGHT edge of a MDIparent menu bar when a contained MDIchild form is maximized. Please note that I'm not talking about ControlBox or Caption's buttons: just the three menu's buttons. Thank you for any help
20
1271
by: Geoff Cox | last post by:
Hello, I am not at clear how to tackle this one. Say the note middle C is played, just once. Then when the user clicks on a play image a series of notes are played starting with middle C and the user the user has to say whether the last sound is the same as the first or different. There are 4 sets of this.
0
9525
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10452
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10221
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.