I don't know why you want to do that but here is how you can override a
method (of the Page class) that will set the IsPostback to false-
protected override System.Collections.Specialized.NameValueCollection
DeterminePostBackMode()
{
//return base.DeterminePostBackMode ();
return null;
}
Page.DeterminePostBackMode Method [C#]
See Also
Page Class | Page Members | System.Web.UI Namespace | HttpContext | Page
Members (Visual J# Syntax) | Managed Extensions for C++ Programming
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Language
a.. C#
b.. C++
c.. JScript
d.. Visual Basic
e.. Show All
Determines the type of request made for the Page class.
[Visual Basic]
Protected Overridable Function DeterminePostBackMode() As _
NameValueCollection
[C#]
protected virtual NameValueCollection DeterminePostBackMode();
[C++]
protected: virtual NameValueCollection* DeterminePostBackMode();
[JScript]
protected function DeterminePostBackMode() : NameValueCollection;
Return Value
If the post back used the POST method, the form information is returned from
the Context object. If the postback used the GET method, the query string
information is returned. If the page is being requested for the first time,
a null reference (Nothing in Visual Basic) is returned.
Remarks
This information is based on whether the page was posted back and whether
the GET or POST HTTP method was used for the request.
"Amirallia" <bn**@bluewin.ch> wrote in message
news:mn***********************@bluewin.ch...
Hello
I want to force the Page.IsPostBack to false when I click an
"asp:button"
Is it possible ?
--
Ceci est une signature automatique de MesNews.
Site : http://www.mesnews.net