473,387 Members | 1,757 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.

Postback hanging

Hi

I have a control on a web page with just a datagrid.
For some reason, post back is not working on this page.
You can view this page here:

http://www.workshare.com/company/blog/default2.aspx

Now, this page has a control on it that is a simple as:
<asp:DataGrid id="dg" runat="server"/>

The page using this is also simple:
<%@ Register TagPrefix="uc1" TagName="MyControl"
Src="../../UserControls/MyControl.ascx" %>
<form runat="server">
<uc1:MyControl id="MyControl1" runat="server"></uc1:MyControl>
<asp:Button id="btn" runat="server"/>
</form>

I have Attached an event on this button, that just writes hello to the page
private void btn_Click(object sender, System.EventArgs e)
{
Response.Write("HELLO");
}

Now, as you'll observe when you click the button, the page just hangs.
Why is this happening, and how can i fix this.
On Other pages, the post back works fine
http://www.workshare.com/test.aspx

And this also works perfectly in my development environment.
Its just on my server where this hangs
Details:
Server
Microsoft Windows Server 2003
ASp.Net version : v1.1.4322
IIS: 6.0
(No Service Packs) --> Is this the possible cause??

Development Machine
Microsoft Windows Server 2003
ASP.Net version:v1.1.4322
IIS: 6.0
(Service Pack 1)
Please help, i've been testing this for hours, and NOTHING

TIA
Jan 9 '06 #1
2 2179
Hello Grant,
There's a large viewstate, and when I play around a bit with the site, I'll
somtimes get disconnects. Try adding EnableViewState="False" to your grid,
from what you have there, there's no need for it to be enabled.

Karl

--
http://www.openmymind.net/
Hi

I have a control on a web page with just a datagrid. For some reason,
post back is not working on this page. You can view this page here:

http://www.workshare.com/company/blog/default2.aspx

Now, this page has a control on it that is a simple as:
<asp:DataGrid id="dg" runat="server"/>
The page using this is also simple:
<%@ Register TagPrefix="uc1" TagName="MyControl"
Src="../../UserControls/MyControl.ascx" %>
<form runat="server">
<uc1:MyControl id="MyControl1" runat="server"></uc1:MyControl>
<asp:Button id="btn" runat="server"/>
</form>
I have Attached an event on this button, that just writes hello to the
page
private void btn_Click(object sender, System.EventArgs e)
{
Response.Write("HELLO");
}
Now, as you'll observe when you click the button, the page just hangs.
Why is this happening, and how can i fix this.
On Other pages, the post back works fine
http://www.workshare.com/test.aspx
And this also works perfectly in my development environment. Its just
on my server where this hangs

Details:
Server
Microsoft Windows Server 2003
ASp.Net version : v1.1.4322
IIS: 6.0
(No Service Packs) --> Is this the possible cause??
Development Machine
Microsoft Windows Server 2003
ASP.Net version:v1.1.4322
IIS: 6.0
(Service Pack 1)
Please help, i've been testing this for hours, and NOTHING

TIA

Jan 9 '06 #2
Thanks mate, you were spot on.
Though it took me a while to get it to work.

Once i set the EnableViewState to false, the OnIndexChanged event would not
fire.
I got around this by databinding in the Page_Load everytime the page loaded

The event is now firing properly.
Thanks for your help

http://www.workshare.com/company/blog/Default.aspx --> The result working :)
"Karl Seguin [MVP]" <karl REMOVE @REMOVEopenmymindREMOVEMETOO.ANDMEnet>
wrote in message news:36*************************@msnews.microsoft. com...
Hello Grant,
There's a large viewstate, and when I play around a bit with the site,
I'll somtimes get disconnects. Try adding EnableViewState="False" to your
grid, from what you have there, there's no need for it to be enabled.

Karl

--
http://www.openmymind.net/
Hi

I have a control on a web page with just a datagrid. For some reason,
post back is not working on this page. You can view this page here:

http://www.workshare.com/company/blog/default2.aspx

Now, this page has a control on it that is a simple as:
<asp:DataGrid id="dg" runat="server"/>
The page using this is also simple:
<%@ Register TagPrefix="uc1" TagName="MyControl"
Src="../../UserControls/MyControl.ascx" %>
<form runat="server">
<uc1:MyControl id="MyControl1" runat="server"></uc1:MyControl>
<asp:Button id="btn" runat="server"/>
</form>
I have Attached an event on this button, that just writes hello to the
page
private void btn_Click(object sender, System.EventArgs e)
{
Response.Write("HELLO");
}
Now, as you'll observe when you click the button, the page just hangs.
Why is this happening, and how can i fix this.
On Other pages, the post back works fine
http://www.workshare.com/test.aspx
And this also works perfectly in my development environment. Its just
on my server where this hangs

Details:
Server
Microsoft Windows Server 2003
ASp.Net version : v1.1.4322
IIS: 6.0
(No Service Packs) --> Is this the possible cause??
Development Machine
Microsoft Windows Server 2003
ASP.Net version:v1.1.4322
IIS: 6.0
(Service Pack 1)
Please help, i've been testing this for hours, and NOTHING

TIA


Jan 9 '06 #3

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

Similar topics

3
by: omission9 | last post by:
Any advice on the following would be much appreciated. I have thrown everything I have at it and am completely stumped. I apologize for the length, I have tried to be as succint as possible. I...
6
by: Harlan Messinger | last post by:
A publication style guide indicates that for a table heading like the following, Table 3. Wheat and rye harvest in European countries in years that end in 3 or 7 or when a new prime minister...
25
by: Shannon Jacobs | last post by:
Maybe there is a simple trick here, and I'm not spotting it... Is there a guru of CSS hanging around here who can help out? The page in question has a multi-column table with a list of links in...
8
by: briforge | last post by:
I am writing a program for the Palm OS in c++. I have already posted this to a palm development forum but I'm desperate for a fix, so I hope this cross-post isn't offensive. My program is...
2
by: Jim | last post by:
We are experiencing a problem with component services in .Net and IIS. We use component services to handle transactions against SQL Server. At some point of usage, IIS will hang up and the lowest...
1
by: happyinst | last post by:
I have recently added some code to a web application and now I find it hanging after I do about 2 or 3 postbacks within the application. It hangs after doing different things (I cannot find...
1
by: =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?= | last post by:
Hello guys, I was wondering if anybody here had implemented a solution where Tables are aligned according to what the hanging indent tells us when there is a potential for the table overflowing...
5
by: Stanimir Stamenkov | last post by:
I'm trying to style an icon "hanging" below the first line of a heading and I've found interesting difference between Mozilla and the other browsers I'm trying with - Safari 3.1.1, Opera 9.27 and...
3
by: Microsoft | last post by:
Hi I have a c# program that continually runs 24/7 and performs a variety of tasks based on a timer. There is one routine that hangs every Saturday morning without fail. If I restart the...
2
by: kj | last post by:
Hi! I have a Pythonoob question. I have a script that hangs indefinitely at random times; the only thing to do at this point is to kill it. I'm looking for suggestions on how to troubleshoot...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.