Here I present a WebSite containing just Default.aspx. Current snippet code has to do with coloring text in an input field of a web page. The input field is an editable DIV HTML element. While the user writes, there is a partial post (an XMLHttpRequest) to the server. Then the code behind decides which parts of the input should be colored and which color should it be, and returns back to the client the input already formatted with color(s). The code behind must be as fast as possible to interfere as less as possible the user input. After the formatted …

Member Avatar
+0 forum 0

Suppose we need to populate and filter a Datagrid with the data coming from an Access table. It could be of course a table from Sql Server also. Form dataGridSelect contains two buttons and a DataGridView. Clicking the first button will populate the DataGridView the data comming from a Sql Server database. The second button does the same comming the data from an Access database. Nothing new, but once the data is fetched a Linq filters through a Regex pattern. The pattern "[^d|D]ata" tells to select the rows where the field Title has the sequence 'ata', not those [^d|D] preceeded …

Member Avatar
+0 forum 0

Saw this thread today: http://www.daniweb.com/software-development/csharp/threads/448676/derivative-integrals You may download the (free) source code from here http://xrjunque.nom.es/precis/swdownload.aspx Need to say it's all vb.net, but you can easily have a .dll (all the 'machinery' is inside a folder: just complile as a .Net's .dll). Then, to derivate say 'cos(x)': dim strToDerivate as string = "Dx(cos(x))" dim m8 as matrixParser = Mates8.matrixParser.parse(strToDerivate, "", Nothing) Label1.text = Mates8.m8.ret.toStringRetVal ' retrive & show the result: For integration: dim strToIntegrate as string = "∫(cos(x))dx" ' also "integral(cos(x))dx" does work m8 = Mates8.matrixParser.parse(strToIntegrate, "", Nothing) Label2.text = m8.ret.toStringRetVal

Member Avatar
Member Avatar
+0 forum 2

The End.