Storing and retrieving datatable from session
How to store a datatable in session and to retrieve the values from the session in c#.net? ...
How to store a datatable in session and to retrieve the values from the session in c#.net? ...
When I call BeginSend on a socket, I pass a delegate which will be called (by a different thread) when the data has been sent. What would happen if I call BeginSend another time while the first has not yet been 'callbacked'? What is the correct behavior to send data? do BeginSend, and on the callback do EndSend and start another send? ...
I have a problem with a c# assembly (.net 2.0 written using Visual studio 2005) that is installed on a UK server and should use UK regional settings. What my code does is to convert a date in the form dd/MM/yyyy into utc. i.e. yyyy-mm-dd. The problem arose with dates like 16/02/2010 where the component failed to convert the date and ret...
I'm displaying a set of search results in a ListView. The first column holds the search term, and the second shows the number of matches. There are tens of thousands of rows, so the ListView is in virtual mode. I'd like to change this so that the second column shows the matches as hyperlinks, in the same way as a LinkLabel shows links...
I have to write a import utility which will import some data held in an xml file. I imagine that I will create a simple DTO object which is the representation of the import data and then write all my code so that it does the import based on this object. The XML file will be the definition of the transfer format, so I expect that 3rd pa...
I have an existing set of .net libraries that I wish to call from Excel VBA (that part is working fine). These libraries rely on settings in the app.config. I know I can enter these settings in a excel.exe.config file (placed in the same directory as the excel.exe), but this doesn't really seem like a very manageable solution to me, as I...
(.NET WinForms + Web) We have a lot of apps in the company and little to no help for 400 users. We'd like to add a 'write help' button to each panel in each app that when pressed lets the user add their own help , record a how-to video etc to let our hundreds of users actually write/record the help guide for the apps. Social media meets...
I have a winform app for in house use where the below is very common. Int32? afhAgreement = null; if (!lkuReveiewAFHAgreement.Text.Equals(string.Empty)) { afhAgreement = (Int32)lkuReveiewAFHAgreement.EditValue; } DateTime? afhAgreementDate = null; if...
For a Type, there is a property IsClass, but how to know a Type is a Struct? Sorry, I have to add some more information. I am using C#. Although IsValueType is a necessary condition, it is obviously not enough. For an Integer is a value type also. ...
I’m using the WebBrowser control as a html editor in a WinForm application I am building. I have a button which pastes some text into the WebBrowser control which works fine on every machine except 1! Here is the code behind the button click event: Clipboard.SetText("Some text ...") WebBrowser.Document.ExecCommand("paste", False, Nothin...
Need help defining an expression to capture the four numerics per line that define the lines on a map. 59.684 -4.251 59.575 -5.576 59.575 -5.576 59.437 -6.899 59.437 -6.899 59.27 -8.218 -7.346 23.196 -7.409 23.233 -7.409 23.233 -7.46 23.285 -7.46 23.285 -7.495 23.349 -7.495 23.349 -7.51 23.42 9.172 39.362 9.134 39 9.134 39.288 9.087 39....
Hi I want to create a Dynamic aspx Page in current solution through code-behind..forexample i have a 2 text-boxes one for page-Title another another for page-Content and a button.. whenever that button is pressed, An aspx Page should be created in current solution and should be included in the current solution. need help... ...
Imagine, we have two .net applications. Application "A" starts application "B" using System.Diagnostics.Process class. Then "A" wants to kill "B" by method Process.Kill. How "B" can determine that somebody is killing him? ...
The following code: var dateTime1 = DateTime.Now; var str = dateTime1.ToString("dd-MMM-yyyy HH:mm:sszzz"); Console.WriteLine(str); var dateTime2 = dateTime1.ToUniversalTime(); str = dateTime2.ToString("dd-MMM-yyyy HH:mm:ss"); Console.WriteLine(str); var dateTime3 = TimeZoneInfo.ConvertTimeFromUtc(dateTime2, TimeZoneInfo.L...
I am developing a VSTO Outlook Add-In that is relying on the LastModificationTime property of Outlook Appointment. The problem is when Cached exchange mode is turned On, the LastModificationTime property auto updates each time I close Outlook. Is there possible solution I can use to get the date and time when user changed the appointment...
Greetings, I am developing an ASP.NET application (ASP.NET 2.0) using VS 2008 and i want to put it in Heliohost.org. I am searching the web for tutorials on how to do this, but it is not clear to me what's the best method. I was wondering if you guys can guide me through this process. Thanks in advance. ...
Sync Framework synchronizes data on a table-by-table basis, but my entities are normalized across sets of related parent-child tables. This creates problems for my application where a parent row might appear on the server to be processed, but the child rows might not appear for a few seconds. If there is a connection problem between my c...
I've currently created the class below. For some reason though I can't access the properties I've created through my xaml style. Public Class Ribbon : Inherits Button Private mpopDropdown As Popup Public Property Dropdown() As Popup Get Return mpopDropdown End Get Set(ByVal value As Popup) ...
We have Win CE IPv6/IPv4 devices installed in a room and connected to a network. Every now and then a person would come with a laptop, plug it into the network and run a diagnostics program. This program should be able to somehow auto find or discover all those devices. The catch is that device IPs are unknown to the diag program. I've ...
Hi I'm using this code to convert string to ISO8859-1 baseurl = "http://myurl.com/mypage.php" client = New WebClient client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)") client.QueryString.Add("usuario", user) client.Qu...