English 中文(简体)
asp.net page stops working for no reason (gridview/sqlexpress search)
原标题:

I have an asp.net page with a gridview and a couple of input text boxes and a search button. Once I put something on both text boxes and press search, I get a result list (gridview) from a MS SQLExpress 2008 database.

Everything runs great BUT for some unknown reason the search stops working every now and then. I type values on the two text boxes and press Search. Instead of getting a result like always, the text on the text boxes dissapear, on the bottom says status "Done" but in fact is not displaying anything.

it gives no errors at all...it just runs...but doesn t display any data.

I have tried used several other Pc s as clients, same problem. I have closed and restarted IE/Firefox but does t fix it. Turning off-on the web server s pc fixes it sometimes, but of course I don t want to be doing that every 30 minutes

Any comments/ideas are appreciated

问题回答

Sounds like it s giving you a redirect to GET. My guess is you re set to use Forms Authentication, and it s timing out. Try increasing the timeout, or removing authentication.

You could use Fiddler to verify that it s redirecting you.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签