473,732 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I force a post-back ?

I have a button which implicitly posts-back before firing the event that I
have attached to that button. Within that event code I modify the controls
collection on the page so I want to force another postback, how do I do this
from my code-behind module ? (c# preferably).
Nov 18 '05 #1
1 1833
You cannot force a post-back unless you place some client-side java script
(or other language) code into the HTML portion of the page. The code you
write in ASP.NET (And the buttons you add, etc..) runs on the server - not
the client.

Steve

"JezB" <je***********@ blueyonder.co.u k> wrote in message
news:ea******** ******@tk2msftn gp13.phx.gbl...
I have a button which implicitly posts-back before firing the event that I
have attached to that button. Within that event code I modify the controls
collection on the page so I want to force another postback, how do I do this from my code-behind module ? (c# preferably).

Nov 18 '05 #2

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

Similar topics

2
5242
by: Matthew Sims | last post by:
Is it possible to force a download without using the readfile function? My website setup consists of my server that serves the web pages plus a high-speed file server elsewhere on the internet that servers my files. I'm currently using header("Location: abc.com") to redirect my users to this other site but can't force a download. I can get it to work using readfile() but that means the file moves from the high-speed server through my...
4
26193
by: Tom | last post by:
Does anyone know how ot force a postback in the codebehind? Thanks Tom
5
5520
by: devgrt | last post by:
<--> We post some xml to https as shown below. The server supports SSL 3.0 and TLS. We wnat to force the PocketPC 2003 application to only use TLS for FIPs compliance. Is that possible? I see in .Net non-CF that you can do something like System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls; but that does not sem to be supportted on CF. Thank you! string stream = ...
2
2331
by: comp.lang.php | last post by:
class ReportGenerator { function ReportGenerator() {} /** * Generate the HTTP headers necessary for this file type. Can be called statically *
1
3774
by: abureach | last post by:
Hi, I cant able to direcly open the file in IE(force download) the follwing code is not working in IE. Please help me my coding is if(ini_get('zlib.output_compression'))
0
2678
by: jinnareddy | last post by:
Hi, I'm unable to download a file that is having a 2-byte char in its name (e.g.テ) using force download option. Though, am able to download file names involving ASCII chars. I have tried URL encoding too, but with no success. Can someone provide details on how to handle the 2-byte char URLs and download the files? Appreciate your suggestions/help in resolving it. Here is my code:
10
2239
by: Marc Gravell | last post by:
Given a generic method "of T", is there a good way of ensuring that any static ctor on T has executed? Following code demonstrates (TestClass1) that via generics you can use the Type instance long before the static ctor fires. With a generic class and the "new()" clause, I can force this in the static ctor of the generic class, but this is not always convenient, plus may (possibly?) be seen as a no-op . Sample; ideally I'd get "Static...
5
3010
by: greg.ruthenbeck | last post by:
Hi, I'm using Boost::uBLAS::mapped_matrix for working with sparse matrices. At the moment, the maximum dimension of mapped_matrix is 65535x65535 since std::size_t compiles as unsigned int (UInt32). I'm looking for a way of increasing this limit. The best way I can think of would be to ensure that size_t uses a bigger (64-bit) type rather than the current UInt32.
3
6357
by: JimO | last post by:
Is there a way to force a post without using submit button? Thanks, Jim
1
10279
by: =?Utf-8?B?QnJ5YW4=?= | last post by:
Is there a way to force a "traditional" full page postback in AJAX? I have a page with multiple UpdatePanels and I usually call UpdatePanel.Update() to do a partial postback, but I have one condition that requires an update to several controls that are not in an UpdatePanel and it makes sense to post the entire page for a refresh. I don't really want to put the entire page in an update panel to call the Update method to refresh the...
0
8774
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
9447
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
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
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
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
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.