<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><id>tag:blogger.com,1999:blog-4787736313741503239</id><updated>2012-03-17T19:11:56.370-07:00</updated><category term="C#" /><category term="VB.NET" /><category term="JAVASCRIPT" /><title type="text">C# Delight</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://csharp-delight.blogspot.com/" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/CDelight" /><feedburner:info uri="cdelight" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-6392019360205097916</id><published>2009-11-02T16:27:00.001-08:00</published><updated>2009-11-02T16:27:35.963-08:00</updated><title type="text">vb.net</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/q270LrGEPNSCDTIxA6NWqOk_gQ0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q270LrGEPNSCDTIxA6NWqOk_gQ0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/q270LrGEPNSCDTIxA6NWqOk_gQ0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q270LrGEPNSCDTIxA6NWqOk_gQ0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;input id="gwProxy" type="hidden"&gt;&lt;!--Session data--&gt;&lt;input onclick="jsCall();" id="jsProxy" type="hidden"&gt;&lt;div id="refHTML"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-6392019360205097916?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/yFX3gdJKLLU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/6392019360205097916/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/11/vbnet.html#comment-form" title="37 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/6392019360205097916" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/6392019360205097916" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/yFX3gdJKLLU/vbnet.html" title="vb.net" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>37</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/11/vbnet.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-5154075903264650242</id><published>2009-11-02T15:33:00.000-08:00</published><updated>2009-11-02T15:37:44.272-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title type="text">ADO error message</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/inq5WpHHlsduHeL1-4zfJUGAxx4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/inq5WpHHlsduHeL1-4zfJUGAxx4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/inq5WpHHlsduHeL1-4zfJUGAxx4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/inq5WpHHlsduHeL1-4zfJUGAxx4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I found these messages on the internet and really help me to figure out whats the cause of the error.&lt;br /&gt;&lt;br /&gt;'Case -2147483647 '~ Not implemented&lt;br /&gt;'Case -2147483646 '~ Ran out of memory&lt;br /&gt;'Case -2147483645 '~ One or more arguments are invalid&lt;br /&gt;'Case -2147483644 '~ No such interface supported&lt;br /&gt;'Case -2147483643 '~ Invalid pointer&lt;br /&gt;'Case -2147483642 '~ Invalid handle&lt;br /&gt;'Case -2147483641 '~ Operation aborted&lt;br /&gt;'Case -2147483640 '~ Unspecified error&lt;br /&gt;'Case -2147483639 '~ General access denied error&lt;br /&gt;'Case -2147483638 '~ The data necessary to complete this operation is not yet available.&lt;br /&gt;'Case -2147467263 '~ Not implemented&lt;br /&gt;'Case -2147467262 '~ No such interface supported&lt;br /&gt;'Case -2147467261 '~ Invalid pointer&lt;br /&gt;'Case -2147467260 '~ Operation aborted&lt;br /&gt;'Case -2147467259 '~ Unspecified error&lt;br /&gt;'Case -2147467258 '~ Thread local storage failure&lt;br /&gt;'Case -2147467257 '~ Get shared memory allocator failure&lt;br /&gt;'Case -2147467256 '~ Get memory allocator failure&lt;br /&gt;'Case -2147467255 '~ Unable to initialize class cache&lt;br /&gt;'Case -2147467254 '~ Unable to initialize RPC services&lt;br /&gt;'Case -2147467253 '~ Cannot set thread local storage channel control&lt;br /&gt;'Case -2147467252 '~ Could not allocate thread local storage channel control&lt;br /&gt;'Case -2147467251 '~ The user supplied memory allocator is unacceptable&lt;br /&gt;'Case -2147467250 '~ The OLE service mutex already exists&lt;br /&gt;'Case -2147467249 '~ The OLE service file mapping already exists&lt;br /&gt;'Case -2147467248 '~ Unable to map view of file for OLE service&lt;br /&gt;'Case -2147467247 '~ Failure attempting to launch OLE service&lt;br /&gt;'Case -2147467246 '~ There was an attempt to call CoInitialize a second time while single threaded&lt;br /&gt;'Case -2147467245 '~ A Remote activation was necessary but was not allowed&lt;br /&gt;'Case -2147467244 '~ A Remote activation was necessary but the server name provided was invalid&lt;br /&gt;'Case -2147467243 '~ The class is configured to run as a security id different from the caller&lt;br /&gt;'Case -2147467242 '~ Use of Ole1 services requiring DDE windows is disabled&lt;br /&gt;'Case -2147467241 '~ A RunAs specification must be \ or simply 0x80004018 -2147467240 The server process could not be started. The pathname may be incorrect.&lt;br /&gt;'Case -2147467239 '~ The server process could not be started as the configured identity. The pathname may be incorrect or unavailable.&lt;br /&gt;'Case -2147467238 '~ The server process could not be started because the configured identity is incorrect. Check the username and password.&lt;br /&gt;'Case -2147467237 '~ The client is not allowed to launch this server.&lt;br /&gt;'Case -2147467236 '~ The service providing this server could not be started.&lt;br /&gt;'Case -2147467235 '~ This computer was unable to communicate with the computer providing the server.&lt;br /&gt;'Case -2147467234 '~ The server did not respond after being launched.&lt;br /&gt;'Case -2147467233 '~ The registration information for this server is inconsistent or incomplete.&lt;br /&gt;'Case -2147467232 '~ The registration information for this interface is inconsistent or incomplete.&lt;br /&gt;'Case -2147467231 '~ The operation attempted is not supported.&lt;br /&gt;'Case -2147418113 '~ Catastrophic failure&lt;br /&gt;'Case -2147024891 '~ General access denied error&lt;br /&gt;'Case -2147024890 '~ Invalid handle&lt;br /&gt;'Case -2147024882 '~ Ran out of memory&lt;br /&gt;'Case -2147024809 '~ One or more arguments are invalid&lt;br /&gt;'Case -2147217920 '~ Invalid accessor&lt;br /&gt;'Case -2147217919 '~ Creating another row would have exceeded the total number of active rows supported by the rowset&lt;br /&gt;'Case -2147217918 '~ Unable to write with a read-only accessor&lt;br /&gt;'Case -2147217917 '~ Given values violate the database schema&lt;br /&gt;'Case -2147217916 '~ Invalid row handle&lt;br /&gt;'Case -2147217915 '~ An object was open&lt;br /&gt;'Case -2147217914 '~ Invalid chapter&lt;br /&gt;'Case -2147217913 '~ A literal value in the command could not be converted to the correct type due to a reason other than data overflow&lt;br /&gt;'Case -2147217912 '~ Invalid binding info&lt;br /&gt;'Case -2147217911 '~ Permission denied&lt;br /&gt;'Case -2147217910 '~ Specified column does not contain bookmarks or chapters&lt;br /&gt;'Case -2147217909 '~ Some cost limits were rejected&lt;br /&gt;'Case -2147217908 '~ No command has been set for the command object&lt;br /&gt;'Case -2147217907 '~ Unable to find a query plan within the given cost limit&lt;br /&gt;'Case -2147217906 '~ Invalid bookmark&lt;br /&gt;'Case -2147217905 '~ Invalid lock mode&lt;br /&gt;'Case -2147217904 '~ No value given for one or more required parameters&lt;br /&gt;'Case -2147217903 '~ Invalid column ID&lt;br /&gt;'Case -2147217902 '~ Invalid ratio&lt;br /&gt;'Case -2147217901 '~ Invalid value&lt;br /&gt;'Case -2147217900 '~ The command contained one or more errors&lt;br /&gt;'Case -2147217899 '~ The executing command cannot be canceled&lt;br /&gt;'Case -2147217898 '~ The provider does not support the specified dialect&lt;br /&gt;'Case -2147217897 '~ A data source with the specified name already exists&lt;br /&gt;'Case -2147217896 '~ The rowset was built over a live data feed and cannot be restarted&lt;br /&gt;'Case -2147217895 '~ No key matching the described characteristics could be found within the current range&lt;br /&gt;'Case -2147217894 '~ Ownership of this tree has been given to the provider&lt;br /&gt;'Case -2147217893 '~ The provider is unable to determine identity for newly inserted rows&lt;br /&gt;'Case -2147217892 '~ No nonzero weights specified for any goals supported, so goal was rejected; current goal was not changed&lt;br /&gt;'Case -2147217891 '~ Requested conversion is not supported&lt;br /&gt;'Case -2147217890 '~ lRowsOffset would position you past either end of the rowset, regardless of the cRows value specified; cRowsObtained is 0&lt;br /&gt;'Case -2147217889 '~ Information was requested for a query, and the query was not set&lt;br /&gt;'Case -2147217888 '~ Provider called a method from IRowsetNotify in the consumer and NT&lt;br /&gt;'Case -2147217887 '~ Errors occurred&lt;br /&gt;'Case -2147217886 '~ A non-NULL controlling IUnknown was specified and the object being created does not support aggregation&lt;br /&gt;'Case -2147217885 '~ A given HROW referred to a hard- or soft- deleted row&lt;br /&gt;'Case -2147217884 '~ The rowset does not support fetching backwards&lt;br /&gt;'Case -2147217883 '~ All HROWs must be released before new ones can be obtained&lt;br /&gt;'Case -2147217882 '~ One of the specified storage flags was not supported&lt;br /&gt;'Case -2147217881 '~ The comparison operator was invalid&lt;br /&gt;'Case -2147217880 '~ The specified status flag was neither DBCOLUMNSTATUS_OK nor DBCOLUMNSTATUS_ISNULL&lt;br /&gt;'Case -2147217879 '~ The rowset cannot scroll backwards&lt;br /&gt;'Case -2147217878 '~ Invalid region handle&lt;br /&gt;'Case -2147217877 '~ The specified set of rows was not contiguous to or overlapping the rows in the specified watch region&lt;br /&gt;'Case -2147217876 '~ A transition from ALL* to MOVE* or EXTEND* was specified&lt;br /&gt;'Case -2147217875 '~ The specified region is not a proper subregion of the region identified by the given watch region handle&lt;br /&gt;'Case -2147217874 '~ The provider does not support multi-statement commands&lt;br /&gt;'Case -2147217873 '~ A specified value violated the integrity constraints for a column or table&lt;br /&gt;'Case -2147217872 '~ The given type name was unrecognized&lt;br /&gt;'Case -2147217871 '~ Execution aborted because a resource limit has been reached; no results have been returned&lt;br /&gt;'Case -2147217870 '~ Cannot clone a command object whose command tree contains a rowset or rowsets&lt;br /&gt;'Case -2147217869 '~ Cannot represent the current tree as text&lt;br /&gt;'Case -2147217868 '~ The specified index already exists&lt;br /&gt;'Case -2147217867 '~ The specified index does not exist&lt;br /&gt;'Case -2147217866 '~ The specified index was in use&lt;br /&gt;'Case -2147217865 '~ The specified table does not exist&lt;br /&gt;'Case -2147217864 '~ The rowset was using optimistic concurrency and the value of a column has been changed since it was last read&lt;br /&gt;'Case -2147217863 '~ Errors were detected during the copy&lt;br /&gt;'Case -2147217862 '~ A specified precision was invalid&lt;br /&gt;'Case -2147217861 '~ A specified scale was invalid&lt;br /&gt;'Case -2147217860 '~ Invalid table ID&lt;br /&gt;'Case -2147217859 '~ A specified type was invalid&lt;br /&gt;'Case -2147217858 '~ A column ID was occurred more than once in the specification&lt;br /&gt;'Case -2147217857 '~ The specified table already exists&lt;br /&gt;'Case -2147217856 '~ The specified table was in use&lt;br /&gt;'Case -2147217855 '~ The specified locale ID was not supported&lt;br /&gt;'Case -2147217854 '~ The specified record number is invalid&lt;br /&gt;'Case -2147217853 '~ Although the bookmark was validly formed, no row could be found to match it&lt;br /&gt;'Case -2147217852 '~ The value of a property was invalid&lt;br /&gt;'Case -2147217851 '~ The rowset was not chaptered&lt;br /&gt;'Case -2147217850 '~ Invalid accessor&lt;br /&gt;'Case -2147217849 '~ Invalid storage flags&lt;br /&gt;'Case -2147217848 '~ By-ref accessors are not supported by this provider&lt;br /&gt;'Case -2147217847 '~ Null accessors are not supported by this provider&lt;br /&gt;'Case -2147217846 '~ The command was not prepared&lt;br /&gt;'Case -2147217845 '~ The specified accessor was not a parameter accessor&lt;br /&gt;'Case -2147217844 '~ The given accessor was write-only&lt;br /&gt;'Case -2147217843 '~ Authentication failed&lt;br /&gt;'Case -2147217842 '~ The change was canceled during notification; no columns are changed&lt;br /&gt;'Case -2147217841 '~ The rowset was single-chaptered and the chapter was not released&lt;br /&gt;'Case -2147217840 '~ Invalid source handle&lt;br /&gt;'Case -2147217839 '~ The provider cannot derive parameter info and SetParameterInfo has not been called&lt;br /&gt;'Case -2147217838 '~ The data source object is already initialized&lt;br /&gt;'Case -2147217837 '~ The provider does not support this method&lt;br /&gt;'Case -2147217836 '~ The number of rows with pending changes has exceeded the set limit&lt;br /&gt;'Case -2147217835 '~ The specified column did not exist&lt;br /&gt;'Case -2147217834 '~ There are pending changes on a row with a reference count of zero&lt;br /&gt;'Case -2147217833 '~ A literal value in the command overflowed the range of the type of the associated column&lt;br /&gt;'Case -2147217832 '~ The supplied HRESULT was invalid&lt;br /&gt;'Case -2147217831 '~ The supplied LookupID was invalid&lt;br /&gt;'Case -2147217830 '~ The supplied DynamicErrorID was invalid&lt;br /&gt;'Case -2147217829 '~ Unable to get visible data for a newly-inserted row that has not yet been updated&lt;br /&gt;'Case -2147217828 '~ Invalid conversion flag&lt;br /&gt;'Case -2147217827 '~ The given parameter name was unrecognized&lt;br /&gt;'Case -2147217826 '~ Multiple storage objects can not be open simultaneously&lt;br /&gt;'Case -2147217825 '~ The requested filter could not be opened&lt;br /&gt;'Case -2147217824 '~ The requested order could not be opened&lt;br /&gt;'Case -2147217823 '~ Bad tuple&lt;br /&gt;'Case -2147217822 '~ Bad coordinate&lt;br /&gt;'Case -2147217821 '~ The given axis was not valid for this Dataset&lt;br /&gt;'Case -2147217820 '~ One or more of the given cell ordinals was invalid&lt;br /&gt;'Case -2147217819 '~ The supplied columnID was invalid&lt;br /&gt;'Case -2147217817 '~ The supplied command does not have a DBID&lt;br /&gt;'Case -2147217816 '~ The supplied DBID already exists&lt;br /&gt;'Case -2147217815 '~ The maximum number of Sessions supported by the provider has already been created. The consumer must release one or more currently held Sessions before obtaining a new Session object&lt;br /&gt;'Case -2147217806 '~ The index ID is invalid&lt;br /&gt;'Case -2147217805 '~ The initialization string does not conform to specification&lt;br /&gt;'Case -2147217804 '~ The OLE DB root enumerator did not return any providers that matched an of the SOURCES_TYPEs requested&lt;br /&gt;'Case -2147217803 '~ The initialization string specifies a provider which does not match the currently active provider.&lt;br /&gt;'Case -2147217802 '~ The specified DBID is invalid&lt;br /&gt;'Case -2147217814 '~ Invalid trustee value&lt;br /&gt;'Case -2147217813 '~ The trustee is not for the current data source&lt;br /&gt;'Case -2147217812 '~ The trustee does not support memberships/ collections&lt;br /&gt;'Case -2147217811 '~ The object is invalid or unknown to the provider&lt;br /&gt;'Case -2147217810 '~ No owner exists for the object&lt;br /&gt;'Case -2147217809 '~ The access entry list supplied is invalid&lt;br /&gt;'Case -2147217808 '~ The trustee supplied as owner is invalid or unknown to the provider&lt;br /&gt;'Case -2147217807 '~ The permission supplied in the access entry list is invalid&lt;br /&gt;'Case -2147217801 '~ The ConstraintType was invalid or not supported by the provider.&lt;br /&gt;'Case -2147217800 '~ The ConstraintType was not CONSTRAINTTYPE_FOREIGNKEY and cForeignKeyColumns was not zero&lt;br /&gt;'Case -2147217799 '~ The Deferrability was invalid or the value was not supported by the provider&lt;br /&gt;'Case -2147217792 '~ The MatchType was invalid or the value was not supported by the provider&lt;br /&gt;'Case -2147217782 '~ The UpdateRule or DeleteRule was invalid or the value was not supported by the provider&lt;br /&gt;'Case -2147217781 '~ The pConstraintID did not exist in the data source&lt;br /&gt;'Case -2147217780 '~ The dwFlags was invalid&lt;br /&gt;'Case -2147217779 '~ The rguidColumnType pointed to a GUID that does not match the object type of this column or this column was not set&lt;br /&gt;'Case -2147217778 '~ The requested URL was out-of-scope&lt;br /&gt;'Case -2147217776 '~ The provider could not drop the object&lt;br /&gt;'Case -2147217775 '~ There is no source row&lt;br /&gt;'Case -2147217774 '~ The OLE DB object represented by this URL is locked by one or more other processes&lt;br /&gt;'Case -2147217773 '~ The client requested an object type that is only valid for a collection&lt;br /&gt;'Case -2147217772 '~ The caller requested write access to a read-only object&lt;br /&gt;'Case -2147217771 '~ The provider could not connect to the server for this object&lt;br /&gt;'Case -2147217770 '~ The provider could not connect to the server for this object&lt;br /&gt;'Case -2147217769 '~ The attempt to bind to the object timed out&lt;br /&gt;'Case -2147217768 '~ The provider was unable to create an object at this URL because an object named by this URL already exists&lt;br /&gt;'Case -2147217767 '~ The provider could not drop the object&lt;br /&gt;'Case -2147217766 '~ The provider was unable to create an object at this URL because the server was out of physical storage&lt;br /&gt;&lt;br /&gt;&lt;input id="gwProxy" type="hidden"&gt;&lt;!--Session data--&gt;&lt;input onclick="jsCall();" id="jsProxy" type="hidden"&gt;&lt;div id="refHTML"&gt;&lt;/div&gt;&lt;input id="gwProxy" type="hidden"&gt;&lt;!--Session data--&gt;&lt;input onclick="jsCall();" id="jsProxy" type="hidden"&gt;&lt;div id="refHTML"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-5154075903264650242?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/B2Zkcve27k4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/5154075903264650242/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/11/ado-error-message.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/5154075903264650242" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/5154075903264650242" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/B2Zkcve27k4/ado-error-message.html" title="ADO error message" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/11/ado-error-message.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-3298700957883915541</id><published>2009-03-23T12:15:00.000-07:00</published><updated>2009-03-23T12:22:39.467-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title type="text">Dataset to Datarow in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HgrD_cmddNJg_qJR1irgMlcEEPk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HgrD_cmddNJg_qJR1irgMlcEEPk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HgrD_cmddNJg_qJR1irgMlcEEPk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HgrD_cmddNJg_qJR1irgMlcEEPk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;dsStyle as my Dataset&lt;br /&gt;row for my Datarow.&lt;br /&gt;&lt;br /&gt;Dataset dsStyle = // already assigned some records then i want it to get those data display to the page. also if you want to put it on the option box you can do that also.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; results.Append("All Style");&lt;br /&gt;                   foreach (DataRow row in dsStyle.Tables[0].Rows)&lt;br /&gt;                   {&lt;br /&gt;                       results.Append("" + DB.RowField(row, "CATEGORYCODE").ToString() + "");&lt;br /&gt;                   }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-3298700957883915541?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/ifSm8fkw_Os" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/3298700957883915541/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/dataset-to-datarow-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/3298700957883915541" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/3298700957883915541" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/ifSm8fkw_Os/dataset-to-datarow-in-c.html" title="Dataset to Datarow in c#" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/dataset-to-datarow-in-c.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-2218890923236397664</id><published>2009-03-18T15:56:00.001-07:00</published><updated>2009-03-18T15:59:04.130-07:00</updated><title type="text">How to remove the last Letter or char in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6ZzD4PLYgVwyscxyYNup7Nlg0Kc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6ZzD4PLYgVwyscxyYNup7Nlg0Kc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6ZzD4PLYgVwyscxyYNup7Nlg0Kc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6ZzD4PLYgVwyscxyYNup7Nlg0Kc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;//I have here a sample text&lt;br /&gt;&lt;br /&gt;string m_Value = "Testing 1| Testing 2 | Testing 3 |";&lt;br /&gt;&lt;br /&gt;//and then i want to remove the   last char " |"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;string m_NewValue = m_Value.Substring(0, m_Values.Length - 2);&lt;br /&gt;&lt;br /&gt;the output will be:&lt;br /&gt;&lt;br /&gt;"Testing 1| Testing 2 | Testing 3"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope this help..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-2218890923236397664?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/JtFavXipL0w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/2218890923236397664/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-remove-last-letter-or-char-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/2218890923236397664" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/2218890923236397664" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/JtFavXipL0w/how-to-remove-last-letter-or-char-in-c.html" title="How to remove the last Letter or char in c#" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-remove-last-letter-or-char-in-c.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-7539187863313343528</id><published>2009-03-18T14:46:00.000-07:00</published><updated>2009-03-18T14:48:39.898-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title type="text">How to get the Current IP in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BvW4yJJFn3bkep2LNS1VJ2nBhvk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BvW4yJJFn3bkep2LNS1VJ2nBhvk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BvW4yJJFn3bkep2LNS1VJ2nBhvk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BvW4yJJFn3bkep2LNS1VJ2nBhvk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;string m_currentIP = HttpContext.Current.Request.UserHostAddress;&lt;br /&gt;&lt;br /&gt;Hope this help.. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-7539187863313343528?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/R_LQhevE-XM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/7539187863313343528/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-get-current-ip-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/7539187863313343528" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/7539187863313343528" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/R_LQhevE-XM/how-to-get-current-ip-in-c.html" title="How to get the Current IP in c#" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-get-current-ip-in-c.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-1543267554660190474</id><published>2009-03-11T15:33:00.000-07:00</published><updated>2009-03-11T15:34:34.842-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVASCRIPT" /><title type="text">Redirection url onclick event using javascript</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HLS-EWlb8zLRpVzFwvmmEM0BqeY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HLS-EWlb8zLRpVzFwvmmEM0BqeY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HLS-EWlb8zLRpVzFwvmmEM0BqeY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HLS-EWlb8zLRpVzFwvmmEM0BqeY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;You'll just need to have an event onclick and pleace the function redirectURL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function redirectUrl()&lt;br /&gt;{&lt;br /&gt;window.location = "http://ehamak.blogspot.com";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope this help..:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-1543267554660190474?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/VKLPZ95edUE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/1543267554660190474/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/redirection-url-onclick-event-using.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/1543267554660190474" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/1543267554660190474" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/VKLPZ95edUE/redirection-url-onclick-event-using.html" title="Redirection url onclick event using javascript" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/redirection-url-onclick-event-using.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-7446508688758109344</id><published>2009-03-11T15:31:00.002-07:00</published><updated>2009-03-11T15:32:37.919-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET" /><title type="text">How to get the available fonts style on the server in vb.net</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/u434-4m3VuGnp-bbMfopjfR3qRM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u434-4m3VuGnp-bbMfopjfR3qRM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/u434-4m3VuGnp-bbMfopjfR3qRM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u434-4m3VuGnp-bbMfopjfR3qRM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Get all available fonts on the server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub LoadFonts()&lt;br /&gt;          Dim installed_fonts As New InstalledFontCollection&lt;br /&gt;          Dim font_families() As FontFamily = installed_fonts.Families()&lt;br /&gt;&lt;br /&gt;          ' Display the font families.&lt;br /&gt;          For Each font_family As FontFamily In font_families&lt;br /&gt;              ' font_family.Name &amp;amp; ", "&lt;br /&gt;              ddlFontName.Items.Add(font_family.Name)&lt;br /&gt;          Next font_family&lt;br /&gt;      End Sub&lt;br /&gt;&lt;br /&gt;Hope this help you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-7446508688758109344?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/MpRzFbSFgGY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/7446508688758109344/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-get-available-fonts-on-server-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/7446508688758109344" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/7446508688758109344" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/MpRzFbSFgGY/how-to-get-available-fonts-on-server-in.html" title="How to get the available fonts style on the server in vb.net" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-get-available-fonts-on-server-in.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-436306776003599660</id><published>2009-03-11T15:31:00.001-07:00</published><updated>2009-03-11T15:31:10.657-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET" /><title type="text">How to validate textbox to numeric values only vb.net</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5sJSHISWNkR2Cpu7zjY9YD22i4E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5sJSHISWNkR2Cpu7zjY9YD22i4E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5sJSHISWNkR2Cpu7zjY9YD22i4E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5sJSHISWNkR2Cpu7zjY9YD22i4E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;This will validate inputed value on the textbox is not a numeric and set it to empty textbox.&lt;br /&gt;&lt;br /&gt;If Not (IsNumeric(Me.txtY.Text)) Then&lt;br /&gt;               Me.txtY.Text = String.Empty&lt;br /&gt;               Me.txtY.Focus()&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Hope this will help you to validate you textbox control.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-436306776003599660?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/gKSnbxCPT80" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/436306776003599660/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-validate-textbox-to-numeric.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/436306776003599660" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/436306776003599660" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/gKSnbxCPT80/how-to-validate-textbox-to-numeric.html" title="How to validate textbox to numeric values only vb.net" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-validate-textbox-to-numeric.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-7036740816510613643</id><published>2009-03-11T15:29:00.000-07:00</published><updated>2009-03-11T15:30:21.044-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET" /><title type="text">Show message box in vb.net</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/plNvDaAgdIDZioD-nUHiOp7UjSs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/plNvDaAgdIDZioD-nUHiOp7UjSs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/plNvDaAgdIDZioD-nUHiOp7UjSs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/plNvDaAgdIDZioD-nUHiOp7UjSs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;This is just sample messagebox code using vb.net language. I place this in the onclick button and prompt it during save. the code looks like this one.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim rstResult As DialogResult&lt;br /&gt;&lt;br /&gt;rstResult = MessageBox.Show("Are you sure want to update?", _&lt;br /&gt;                                                               "Business Card", _&lt;br /&gt;                                                                   MessageBoxButtons.YesNo, _&lt;br /&gt;                                                                   MessageBoxIcon.Question)&lt;br /&gt;&lt;br /&gt;                   If rstResult = DialogResult.Yes Then&lt;br /&gt;                                   // do some action here. is the user selected Yes and nothing is no.&lt;br /&gt;                   End If&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-7036740816510613643?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/9cgjTqTENe0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/7036740816510613643/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/show-message-box-in-vbnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/7036740816510613643" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/7036740816510613643" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/9cgjTqTENe0/show-message-box-in-vbnet.html" title="Show message box in vb.net" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/show-message-box-in-vbnet.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-5651888934187784595</id><published>2009-03-11T14:23:00.002-07:00</published><updated>2009-11-02T16:12:50.201-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title type="text">How to split in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/u23Vf-_CLqaVVUk_V9KXlmAyjiw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u23Vf-_CLqaVVUk_V9KXlmAyjiw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/u23Vf-_CLqaVVUk_V9KXlmAyjiw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u23Vf-_CLqaVVUk_V9KXlmAyjiw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;private void SplitNo()&lt;br /&gt;  {&lt;br /&gt;      // string seperated by colons ';'&lt;br /&gt;      string items = "1---&gt;;2---&gt;;3---&gt;;4---&gt;;5---&gt;";&lt;br /&gt;      string[] collection = new string[4];&lt;br /&gt;      // define which character is seperating fields&lt;br /&gt;      collection = items.Split(';');&lt;br /&gt;&lt;br /&gt;      for (int x = 0; x &lt; collection.Length; x++)         {             Response.Write(collection[x] + "&lt;br /&gt;");&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;Sample Output:&lt;br /&gt;&lt;br /&gt;1---&gt;&lt;br /&gt;2---&gt;&lt;br /&gt;3---&gt;&lt;br /&gt;4---&gt;&lt;br /&gt;5---&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-5651888934187784595?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/usMp2F6ljPU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/5651888934187784595/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-split-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/5651888934187784595" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/5651888934187784595" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/usMp2F6ljPU/how-to-split-in-c.html" title="How to split in c#" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-split-in-c.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-4851974806095579188</id><published>2009-03-11T14:23:00.001-07:00</published><updated>2009-03-11T14:25:49.563-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title type="text">How to store and retrive cookie in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fhiRj0-zy-nhZ1O3vAHfWHa1htE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fhiRj0-zy-nhZ1O3vAHfWHa1htE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fhiRj0-zy-nhZ1O3vAHfWHa1htE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fhiRj0-zy-nhZ1O3vAHfWHa1htE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;cookie["Name"] = "Kiko Salva"&lt;br /&gt;cookie.Expires = DateTime.Now.AddYears(1);&lt;br /&gt;Response.Cookies.Add(cookie);&lt;br /&gt;&lt;br /&gt;// To retrieve&lt;br /&gt;&lt;br /&gt;lblName.Text = "&lt;b&gt;Cookie Created.&lt;/b&gt;";&lt;br /&gt;lblName.Text += "New Customer: " + cookie["Name"];&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-4851974806095579188?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/hodmjxfRk0Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/4851974806095579188/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-store-and-retrive-cookie-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/4851974806095579188" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/4851974806095579188" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/hodmjxfRk0Y/how-to-store-and-retrive-cookie-in-c.html" title="How to store and retrive cookie in c#" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-store-and-retrive-cookie-in-c.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-8804727798231492236</id><published>2009-03-11T14:22:00.001-07:00</published><updated>2009-03-11T14:26:00.681-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title type="text">How to remove char and leave number in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FfyBzcvrSg1uoedL2ghwzr3AkKM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FfyBzcvrSg1uoedL2ghwzr3AkKM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FfyBzcvrSg1uoedL2ghwzr3AkKM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FfyBzcvrSg1uoedL2ghwzr3AkKM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Regex.Replace Method&lt;br /&gt;&lt;br /&gt;Within a specified input string, replaces strings that match a regular expression pattern with a specified replacement string.&lt;br /&gt;&lt;br /&gt;ex.&lt;br /&gt;// assigning value into the string xvalue.&lt;br /&gt;string xvalue = "199 RemoveText";&lt;br /&gt;&lt;br /&gt;// removing character and leave numbers&lt;br /&gt;decimal  value = (decimal)Regex.Replace(xvalue, @"[\D]", "");&lt;br /&gt;&lt;br /&gt;//As the result:&lt;br /&gt;199&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-8804727798231492236?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/vVYIUn72VmA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/8804727798231492236/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-remove-char-and-leave-number-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/8804727798231492236" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/8804727798231492236" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/vVYIUn72VmA/how-to-remove-char-and-leave-number-in.html" title="How to remove char and leave number in c#" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-remove-char-and-leave-number-in.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-5287425667109688524</id><published>2009-03-11T14:18:00.001-07:00</published><updated>2009-03-11T14:26:11.851-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title type="text">How to create a folder and check if exist on the directory in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kV7bAGybY3NiR0aDQDUpHaQLsYM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kV7bAGybY3NiR0aDQDUpHaQLsYM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kV7bAGybY3NiR0aDQDUpHaQLsYM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kV7bAGybY3NiR0aDQDUpHaQLsYM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;First i need to create a form with 1 textbox, button and a label in my page. I named the textbox as txtFolderName, button btnCheckandCreate and the label as lblMessage so now, I need to put the event in my button on click.. on the onclick eventon the button i need to put the code.&lt;br /&gt;&lt;br /&gt;protected void btnCheckandCreate _Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;   lblMessage.Text = "";&lt;br /&gt;&lt;br /&gt;   if (!System.IO.Directory.Exists(@"c:\" + txtFolderName.Text.ToUpper()  + ""))&lt;br /&gt;   {&lt;br /&gt;   System.IO.Directory.CreateDirectory(@"c:\" + txtFolderName.Text.ToUpper() + "");&lt;br /&gt;   lblMessage.Text = txtFolderName.Text + " Folder successfully created.";&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;{&lt;br /&gt;   lblMessage.Text = txtFolderName.Text + " is not available";&lt;br /&gt;   }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-5287425667109688524?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/HHlq55DXrLU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/5287425667109688524/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-create-folder-and-check-if-exist.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/5287425667109688524" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/5287425667109688524" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/HHlq55DXrLU/how-to-create-folder-and-check-if-exist.html" title="How to create a folder and check if exist on the directory in c#" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-create-folder-and-check-if-exist.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-6661473516815643586</id><published>2009-03-11T14:14:00.000-07:00</published><updated>2009-03-11T14:26:24.328-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title type="text">How to get current Page in c#</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ExIy5VyrWiEknvIozrcQnaDyjvg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ExIy5VyrWiEknvIozrcQnaDyjvg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ExIy5VyrWiEknvIozrcQnaDyjvg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ExIy5VyrWiEknvIozrcQnaDyjvg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Try this one.&lt;br /&gt;&lt;br /&gt;string url = Page.Request.Path;&lt;br /&gt;&lt;br /&gt;hope this help.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="title"&gt;&lt;br /&gt;&lt;!----&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-6661473516815643586?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/44Z5OSZu9mk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/6661473516815643586/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/03/how-to-get-current-page-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/6661473516815643586" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/6661473516815643586" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/44Z5OSZu9mk/how-to-get-current-page-in-c.html" title="How to get current Page in c#" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/03/how-to-get-current-page-in-c.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4787736313741503239.post-4664482511247695628</id><published>2009-02-10T17:49:00.000-08:00</published><updated>2009-02-10T22:02:20.697-08:00</updated><title type="text">.net codes</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/n55J6iMBOtqG70C53P1faAXjXeA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n55J6iMBOtqG70C53P1faAXjXeA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/n55J6iMBOtqG70C53P1faAXjXeA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n55J6iMBOtqG70C53P1faAXjXeA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Talk about standard coding, samples , techniques and many more.&lt;br /&gt;watch out for new post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4787736313741503239-4664482511247695628?l=csharp-delight.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/CDelight/~4/0MxmXa3E7bE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharp-delight.blogspot.com/feeds/4664482511247695628/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://csharp-delight.blogspot.com/2009/02/net-codes.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/4664482511247695628" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4787736313741503239/posts/default/4664482511247695628" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/CDelight/~3/0MxmXa3E7bE/net-codes.html" title=".net codes" /><author><name>Leslie C. Parba</name><uri>http://www.blogger.com/profile/04208200437365163052</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharp-delight.blogspot.com/2009/02/net-codes.html</feedburner:origLink></entry></feed>

