How can I send data or event info from Javascript to Default.cs (Asp.net)?
How can I send data or event info from Javascript to Default.cs (ASP.NET)? is it ajax? ...
How can I send data or event info from Javascript to Default.cs (ASP.NET)? is it ajax? ...
I've got some very large XML files which I read using a System.Xml.Serialization.XmlSerializer. It's pretty fast (well, fast enough), but I want it to pool strings, as some long strings occur very many times. The XML looks somewhat like this: <Report> <Row> <Column name="A long column name!">hey</Column> <Column na...
Hi, I have several forms with this strange behaviour. For instance I have this form generated code. namespace Sogyo.InHolland.SeriousGameFactory.GameCreator { partial class FormAvatarResourceSetEditor { this.bindingSourceAvatarResourceSets.DataSource = typeof(SeriousGameFactory.Framework.ImageResource); } } In this case when i ...
I have a generic collection (Dictionary), which stores an enum and delegate. So if the user provides an enum value to a method as a parameter, the corresponding delegate in the collection will get executed. This method, which the delegate points to, is overloaded. When invoking the method, how can I choose which version of the method to...
I'm just writing some data access code. I've decided to pass in the name of connection string from the config via constructor injection which the repository then reads and uses to construct a SqlConnectionStringBuilder. Thinking about it I probably don't need the SqlConnectionStringBuilder but that's a different matter. Should I be re...
I've been researching to find out how and what to use to get say the name's of the fields in a class, then to invoke that class and get the properties of the class, as in the field values. Give you an example, Say if I one to get one value from one record from one table, I would create an object of that class as in; DBTable<cars> cartab...
Hi all, i have configured a ccnet which actually sniffs for the modifications in my source files present in my local system.My ccnet.config file will poll every 4 minutes to check for any modification in the source files.So the problem is like if i modify the same file twice,when the ccnet polls what i see in the command window ...
We have a fairly large Windows based 1.1 .NET application that we are considering moving up to 2.0. The main reason we are considering the update is so we can utilize Visual Studio 2008 for ongoing development on the project, as well as we use the Infragistics Suite of controls and the 1.1 set is no longer being updated with new feature...
A C# application my company uses is taking regular expression strings from a database table and matching them on different text files. The problem is that the application has no RegexOptions set as default and I need to use the "Dot matches new line" mode. Does the engine support inline mode modifiers just as like "A(?s)(.*?)(?-s)B" ...
Hello there, is it possible to dynamically set the datacontract's datamember attributes during runtime? Basically what I need is to read in serialized instances of a class which contained the DataMemeber attributes on two properties at the time of serialization, but the current 'version' does not longer have them but I need to migrate t...
How do I go about defining a method, e.g. void doSuff() in an anonymous type? All documentation I can find uses only anonymous restricted basically to property lists. Can I even define a method in an anonymous type? EDIT: OK, a quick look at very quick answers tells me this is impossible. Is there any way at all to construct a type ...
Is there a way to get raw XML which is generated by SOAP request in .net. I don't know how to ask this precisely, but here goes I add web reference and call some method. Is there a way to know what XML is being sent. For debugging purposes only, so quick and dirty way is enough P.S. SSL is used, so snipping doesn't help here ...
If you have for instance a datetime datatype set on a column in MSSQLServer2008 that gives you the datecreated, is it better to have the .NET layer pass the current date or set the Default Value or Binding of the column to (getdate())? ...
I have a .NET C# / C++ app which uses a call to exit(0) (from <stdlib.h>) in a thread in order to terminate. The strange part is, under some circumstances, the finalizers of the managed objects are called right after the call to exit, and in other circumstances, they are not called at all. The circumstances are pretty deterministic - t...
I need to write a function that pick out the greatest number from the matrix of integers. The matrix is passed to the function through pointer type argument. The number of rows and columns are also passed to the function through arguments. The function should return the greatest number of the matrix elements. I need to use this func...
I am using iTextSharp to convert HTML to PDF and it doesn't seem to work with absolutely positioned elements. For example I have this HTML file: <html> <body> <p style="position: absolute; left: 10px; top: 100px; width: 50px;">Hello World</p> </body> </html> The text is not correctly positioned in the resulting PDF file. Do you kn...
i created Web user control. it's property is included ListDictionary; But i can not generate in web uset control. if i try wuc in asp.net page, it gives initialize error: "Object reference not set to an instance of an object." WEB USER CONTROL: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack...
I'm trying to figure out how to display a "Saved" message on the screen (with a fadeout effect courtesy of JQuery) whenever an AJAX call is made from a control that actually saves the form. The form is relatively complicated and has 5 seperate UpdatePanels where some--but not all--of the controls will do a post-back that will save the fo...
I am always confused with the different ways of expressing nulls. There is the null reference type (aka "null"). Then I've seen that throughout my application, developers have used MinValue to represent nulls. Ex: Double.MinValue or DateTime.MinValue except for a String for which they use "null" Then there is System.DBNull (and System.D...
I'm writing a client/server (as many of you probably already know!). The server is going to be sending data to the client. However, the client can connect once and after that it never attempts to connect again once the connection has been terminated. Similarly, once the server has sent it's message it will ignore future attempts to conne...