asp.net-2.0

ASP.NET UDP socket code works in development, but not in production on IIS

折月煮酒 提交于 2021-01-27 14:46:06
问题 I have the following UDP broadcast listener running as a static component in a seperate thread on an ASP.NET web application. Why I would do this is really, unimportant, but the reason why this wont work when deployed baffles me. I do have several console applications sending UDP broadcasts, and I've coded tested and confirmed this thread and its code working when running under Visual Studio on the VS2005 development web server, but the moment that I compile the code and deploy it to another

ASP.NET UDP socket code works in development, but not in production on IIS

不羁岁月 提交于 2021-01-27 14:00:12
问题 I have the following UDP broadcast listener running as a static component in a seperate thread on an ASP.NET web application. Why I would do this is really, unimportant, but the reason why this wont work when deployed baffles me. I do have several console applications sending UDP broadcasts, and I've coded tested and confirmed this thread and its code working when running under Visual Studio on the VS2005 development web server, but the moment that I compile the code and deploy it to another

“CS1026: ) expected”

 ̄綄美尐妖づ 提交于 2020-08-27 08:06:54
问题 using (SqlCommand cmd = new SqlCommand("ReportViewTable", cnx) { CommandType = CommandType.StoredProcedure }) When I try to open this page in the browser I am getting the CS1026: ) expected error on this line, but I don't see where it's throwing the error. I have read that an ; can cause this issue, but I don't have any of them. I can help with any additional information needed, but I honestly don't know what question I need to ask. I am trying to google some answers on this, but most of them

“CS1026: ) expected”

折月煮酒 提交于 2020-08-27 08:06:08
问题 using (SqlCommand cmd = new SqlCommand("ReportViewTable", cnx) { CommandType = CommandType.StoredProcedure }) When I try to open this page in the browser I am getting the CS1026: ) expected error on this line, but I don't see where it's throwing the error. I have read that an ; can cause this issue, but I don't have any of them. I can help with any additional information needed, but I honestly don't know what question I need to ask. I am trying to google some answers on this, but most of them

How can I view a PowerPoint in an ASP.NET application?

谁都会走 提交于 2020-02-08 08:32:09
问题 Does anyone have a PowerPoint viewer which I can embed in an ASP.NET Web App? 回答1: If you are using Silverlight you can use http://pptx2silverlight.codeplex.com/ 回答2: You can't directly embed a PPT/presentation to view. Instead you can try any converter that allows you to embed the PPT slide as images or some other format that the client browser can render to the user. There are few products like GroupDocs viewer or Doconut viewer that do this. You can give it a try. 回答3: You will have to

How can I view a PowerPoint in an ASP.NET application?

社会主义新天地 提交于 2020-02-08 08:32:01
问题 Does anyone have a PowerPoint viewer which I can embed in an ASP.NET Web App? 回答1: If you are using Silverlight you can use http://pptx2silverlight.codeplex.com/ 回答2: You can't directly embed a PPT/presentation to view. Instead you can try any converter that allows you to embed the PPT slide as images or some other format that the client browser can render to the user. There are few products like GroupDocs viewer or Doconut viewer that do this. You can give it a try. 回答3: You will have to

Form Authentication and XmlDocument.Load

元气小坏坏 提交于 2020-01-30 11:25:47
问题 I'm running an asp.net web application with c#. The following is used: - Windows 2003 server - IIS6.0 - .net Framework 2.0.50727 I'm trying to implement Forms Authentication and have entered the following code in the Web.Config file: <authentication mode="Forms"> <forms loginUrl="01_Login.aspx" name=".ASPXFORMSAUTH" defaultUrl="02_PendingDoc.aspx" timeout="120" path="/" protection="All" enableCrossAppRedirects="true"> </forms> </authentication> <authorization> <deny users="?"/> <allow users="

How to detect browser close at server side in asp.net?

℡╲_俬逩灬. 提交于 2020-01-21 11:06:29
问题 I wanted to know when the browser is closed at server side in asp.net 2.0. How to detect in code behind? 回答1: client side script: < body onbeforeunload="window.open('http://www.website.com/browserclosed.aspx','mywindow','width=1,height=1');"> server side script (browserclosed.aspx): // page_load int userId = Convert.ToInt32(request.session("userId")); ReportBrowserClosed(userId); // Do what you want in ReportBrowserclosed() method 回答2: Short answer: you can't do that directly since http is

Could not load file or assembly 'PetersDatePackage'

天涯浪子 提交于 2020-01-16 14:29:48
问题 I have recently taken over an application that uses the Peter Blum Date and Time .NET control. I copied all the files to my aspnet_client directory and when I build the application I get the following error: Could not load file or assembly 'PetersDatePackage' or one of its dependencies. The system cannot find the file specified. Do you know how I can resolve this error? 回答1: Building on the comment in @ajadam's note... the DLL Refresh file will only work on your machine if the dll in question

How to attach a jQuery event to a grid view that is not visible on document ready?

a 夏天 提交于 2020-01-16 08:28:13
问题 I am trying to hook into a link in a gridview with jquery but the grid is in an update panel and not visible until the user runs a report. If I add the class ".myLink" to any other "a" tag it works fine, but as the gridview is not there at document.ready I am not sure where to call this from $(document).ready(function(){ $('a .myLink').click(function(){ var link = $(this).attr('href'); alert(link); return false; }); }); 回答1: You can use .live() to handle events on element created at any time,