<?xml version="1.0" ?><rss version="2.0" xmlns:ec="http://www.eggheadcafe.com"><channel><title>eggheadcafe.com C# .NET Unanswered Messageboard Posts</title><link>http://www.eggheadcafe.com</link><pubDate>Thu, 06 Jun 2013 07:47:09 GMT</pubDate><description>EggHeadCafe - The .NET developer's portal of choice</description><language>en-us</language><item><title><![CDATA[Expert data in excel to gridview]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10474072/expert-data-in-excel-to-gridview.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10474072/expert-data-in-excel-to-gridview.aspx]]></link><description><![CDATA[<strong style="color: #ff0000;">The .Net Framework Data Providers require Microsoft Data Access Components(MDAC). &nbsp;Please install Microsoft Data Access Components(MDAC) version 2.6 or later.</strong><br />
<br />
<span style="text-decoration: underline;">this is my code:</span><br />
<br />
<div style="text-align: left;"><span style="color: #000000; font-size: 10pt;">string constr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ txtpath.Text +";Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\"";</span></div>
<span style="color: #000000;">
<div style="text-align: left;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; OleDbConnection con = new OleDbConnection(constr);</span></div>
<div style="text-align: left;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; OleDbDataAdapter ada = new OleDbDataAdapter(" select * from [Sheet1$]", con);</span></div>
<div style="text-align: left;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; DataTable ds = new DataTable();</span></div>
<div style="text-align: left;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; ada.Fill(ds);</span></div>
<div style="text-align: left;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; gvExcel.DataSource = ds;</span></div>
<div style="text-align: left;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; gvExcel.DataBind();</span></div>
</span>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10474072/expert-data-in-excel-to-gridview.aspx" target="_self">read more</a>]]></description><pubDate>Sun, 02 Jun 2013 07:36:43 GMT</pubDate></item><item><title><![CDATA[Task parallel programming]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10474043/task-parallel-programming.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10474043/task-parallel-programming.aspx]]></link><description><![CDATA[what is task parallel programming? is it same as sync and async calls in .net ? or any difference is there?&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10474043/task-parallel-programming.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 30 May 2013 07:17:03 GMT</pubDate></item><item><title><![CDATA[Creating New Application for Kiosk  in C#.net]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10474001/creating-new-application-for-kiosk--in-cnet.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10474001/creating-new-application-for-kiosk--in-cnet.aspx]]></link><description><![CDATA[I wanna create an application using KIOSK in C# widows application. If i run my application then only tat should be accessible no other applications should be enable or any click events outside my application should not work event start menu click must be restricted.. Any help....<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10474001/creating-new-application-for-kiosk--in-cnet.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 28 May 2013 03:31:39 GMT</pubDate></item><item><title><![CDATA[How to define custom sort order based on description field sql]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473994/how-to-define-custom-sort-order-based-on-description-field-sql.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473994/how-to-define-custom-sort-order-based-on-description-field-sql.aspx]]></link><description><![CDATA[I have a department field where i need to sort the data based in description field<br />
<br />
I need to get the Science department, Social department, Games department and then get the rest of the description fiedls ascending order, I am not sure how to do that in sql I just know asc or desc order sort in the sql table for any fields/ ,ultiple fields. Please help how to achieve this.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473994/how-to-define-custom-sort-order-based-on-description-field-sql.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 27 May 2013 14:33:07 GMT</pubDate></item><item><title><![CDATA[Adding two strings]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473979/adding-two-strings.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473979/adding-two-strings.aspx]]></link><description><![CDATA[Hi,<br />
<br />
string str1 = "abcd";<br />
string str2 = "efgh";<br />
string str3 = str1 + str2;<br />
<br />
while executing "str1+str2", which method will call in string class.<br />
<br />
is it operator overloading or concat method ?<br />
or How it internally works ?<br />
<br />
Regards<br />
Lokesh.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473979/adding-two-strings.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 25 May 2013 00:48:34 GMT</pubDate></item><item><title><![CDATA[foreach adding lambda to filter property types]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473975/foreach-adding-lambda-to-filter-property-types.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473975/foreach-adding-lambda-to-filter-property-types.aspx]]></link><description><![CDATA[I have a loop<br />
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #006699; font-weight: bold;">foreach</code> <code style="color: #000000;">(PropertyInfo sourcePropertyInfo </code><code style="color: #006699; font-weight: bold;">in</code> <code style="color: #000000;">source.GetType().GetProperties())</code></span></div>
</div>
<br />
<br />
I want to filter the loop so it only loops through PropertyType of string, int, datetime, etc<br />
<br />
..basically wanting it to not loop through my user defined types.<br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473975/foreach-adding-lambda-to-filter-property-types.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 24 May 2013 15:15:16 GMT</pubDate></item><item><title><![CDATA[Open source Portal CMS for asp.net 4.0?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473927/open-source-portal-cms-for-aspnet-40.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473927/open-source-portal-cms-for-aspnet-40.aspx]]></link><description><![CDATA[Dear&nbsp;Friends<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Here i need to get help&nbsp;from yours side. I need to use Open Source , Portal&nbsp;CMS to my application. Can u tell me How i can&nbsp;achieve&nbsp;it ? Which one is best and good? How &nbsp;we can&nbsp;implement in my application ?&nbsp;&nbsp; Please Help me dear&nbsp;friends?&nbsp;<br />
<br />
&nbsp;Thanks and regards<br />
Arun &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473927/open-source-portal-cms-for-aspnet-40.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 21 May 2013 06:22:12 GMT</pubDate></item><item><title><![CDATA[Google map]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473864/google-map.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473864/google-map.aspx]]></link><description><![CDATA[How we can show image in&nbsp;Google&nbsp;map? &nbsp;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Here my&nbsp;image&nbsp;path is saved into db. and image in 1 folder. I need to get image and&nbsp;populate&nbsp;into&nbsp;Google&nbsp;map? &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Please help me its urgent for me.<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Thanks &amp; regards Arun&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473864/google-map.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 17 May 2013 07:20:15 GMT</pubDate></item><item><title><![CDATA[is it possible to implement digital compass  in our .net application?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473858/is-it-possible-to-implement-digital-compass--in-our-net-application.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473858/is-it-possible-to-implement-digital-compass--in-our-net-application.aspx]]></link><description><![CDATA[<strong>Dear friends&nbsp;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Is it possible to&nbsp;implement digital compass in our .net application? Please explain How it is possible? please&nbsp;give&nbsp;the example also?&nbsp;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Thanks &amp; Regards&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Arun Kumar</strong>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473858/is-it-possible-to-implement-digital-compass--in-our-net-application.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 17 May 2013 01:01:23 GMT</pubDate></item><item><title><![CDATA[How to change crystal report document title dynamically?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473752/how-to-change-crystal-report-document-title-dynamically.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473752/how-to-change-crystal-report-document-title-dynamically.aspx]]></link><description><![CDATA[hai , How to change crystal report document title dynamically based on my group by query condition , at the time generate two or more report&nbsp; how to use some examples....&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473752/how-to-change-crystal-report-document-title-dynamically.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 10 May 2013 01:11:04 GMT</pubDate></item><item><title><![CDATA[Binding datagridviewcombobox with database]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473702/binding-datagridviewcombobox-with-database.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473702/binding-datagridviewcombobox-with-database.aspx]]></link><description><![CDATA[i took datagridview where i have assigned its first column as name (which is a datagridview combobox) and 2nd column(datagridview textbox) as age.<br />
<br />
my database name is :student.<br />
<br />
table name is tblstudent_detail (column1: name and column2:age)<br />
<br />
i need to bind datagridview combobox with the database so that all the student name should populate in that. and when i select any name from the combobox then age should show in its corresponding coulmn that is "age"<br />
<br />
<br />
how i can perform this&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473702/binding-datagridviewcombobox-with-database.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 07 May 2013 01:44:13 GMT</pubDate></item><item><title><![CDATA[installin windows setup raising the error "unhandled exception "]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473649/installin-windows-setup-raising-the-error-unhandled-exception-.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473649/installin-windows-setup-raising-the-error-unhandled-exception-.aspx]]></link><description><![CDATA[Hai friends i am working with window. while i setup my application and installed in client laptop one error occurred . "unhandled exception is occurred in your application.if you click continue, the application will ignore this error and attempt to continue. if you click Quit ,this application will close&nbsp;immediately. &nbsp;the device is not ready"<br />
<br />
************** Exception Tesst ************<br />
System.IO.IOException: Device is not ready.<br />
<br />
could any body help me please . this is very very important to me. Thank You Friends.&nbsp;<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473649/installin-windows-setup-raising-the-error-unhandled-exception-.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 03 May 2013 02:31:50 GMT</pubDate></item><item><title><![CDATA[Compare database table schemas in visual studio 2010]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473578/compare-database-table-schemas-in-visual-studio-2010.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473578/compare-database-table-schemas-in-visual-studio-2010.aspx]]></link><description><![CDATA[Hi ,<br />
<br />
I just want to compare the schemas of the two tables which is located in two different databases.&nbsp; How can i do this in visual studio 2010.<br />
<br />
For example,&nbsp; <br />
<br />
Table 1 -&gt; located in DB1 &amp; <br />
Table 2 -&gt; located in DB2.&nbsp; (both are same table in structure wise).&nbsp; How can i compare schema for these two tables.<br />
<br />
<br />
Regards<br />
Kiruba.E&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473578/compare-database-table-schemas-in-visual-studio-2010.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 29 Apr 2013 09:12:57 GMT</pubDate></item><item><title><![CDATA[Want 2 Print docs' in multiple thread.After all thread completed then i want to go ahead]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473550/want-2-print-docs-in-multiple-threadafter-all-thread-completed-then-i-want-to-go-ahead.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473550/want-2-print-docs-in-multiple-threadafter-all-thread-completed-then-i-want-to-go-ahead.aspx]]></link><description><![CDATA[working on c#<br />
<br />
In one thread, there is while loop<br />
It performs<br />
1) getFiles<br />
2) start multiple thread to Print all files<br />
3) once all thread complete go ahead<br />
4) continue ; (whileloop)<br />
<br />
I am having problem working with.. canany one provide the solution for this..&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473550/want-2-print-docs-in-multiple-threadafter-all-thread-completed-then-i-want-to-go-ahead.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 26 Apr 2013 23:28:30 GMT</pubDate></item><item><title><![CDATA[How to shell script on linux server from C# code?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473509/how-to-shell-script-on-linux-server-from-c-code.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473509/how-to-shell-script-on-linux-server-from-c-code.aspx]]></link><description><![CDATA[code to execute shell script on linux server from C# code&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473509/how-to-shell-script-on-linux-server-from-c-code.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 25 Apr 2013 05:19:56 GMT</pubDate></item><item><title><![CDATA[I have take one combobox in datagridview coloumn and How to fetch its related database val]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473506/i-have-take-one-combobox-in-datagridview-coloumn-and-how-to-fetch-its-related-database-val.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473506/i-have-take-one-combobox-in-datagridview-coloumn-and-how-to-fetch-its-related-database-val.aspx]]></link><description><![CDATA[I have take one combobox in datagridview coloumn and How to fetch its
related database value into texbox in datagridview coloumn and also I
have to take 2 textboxes in datagridview coloumns and how to take
multiplication of that datagriview coloumn value into another textbox in
datagridview coloumn&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473506/i-have-take-one-combobox-in-datagridview-coloumn-and-how-to-fetch-its-related-database-val.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 25 Apr 2013 03:10:12 GMT</pubDate></item><item><title><![CDATA[How to Read and write  password protected folder files using C#.net code]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473494/how-to-read-and-write--password-protected-folder-files-using-cnet-code.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473494/how-to-read-and-write--password-protected-folder-files-using-cnet-code.aspx]]></link><description><![CDATA[Hi all,<br />
<br />
<br />
I have a folder Test that is having samp1.txt file ,I apply password protection using third party s/w to Test folder.Now I want to read that file using C#.net code and write it to another folder say Test2 ﻿samp2.txt file..Test,Test1 folders exist in same drive of local system...<br />
<br />
<br />
&nbsp; &nbsp;please do needful..&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473494/how-to-read-and-write--password-protected-folder-files-using-cnet-code.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 24 Apr 2013 15:09:59 GMT</pubDate></item><item><title><![CDATA[Nunit Testing]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473466/nunit-testing.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473466/nunit-testing.aspx]]></link><description><![CDATA[Hi,<br />
<br />
I wrote window service for email reading.&nbsp; What i need is, i want to test that window service.&nbsp; So i used nunit testing in my project.&nbsp; But in that, all parameters are like user defined, list value etc., so how to write test case for that.<br />
<br />
<br />
Regards<br />
Kiruba.e&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473466/nunit-testing.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 23 Apr 2013 23:35:53 GMT</pubDate></item><item><title><![CDATA[Getting error in crystal reports]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473454/getting-error-in-crystal-reports.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473454/getting-error-in-crystal-reports.aspx]]></link><description><![CDATA[when i am clicks on submit button report is appearing but after clicking on next page button it displaying the error as "Javascript runtime object is invalid" and&nbsp;&nbsp;"<span class="crExceptionText">The types of the parameter field and parameter field current values are not compatible." in crystal report plz hepl me its urgent for me.
</span><br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473454/getting-error-in-crystal-reports.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 23 Apr 2013 05:47:42 GMT</pubDate></item><item><title><![CDATA[xml files comparison]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473427/xml-files-comparison.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473427/xml-files-comparison.aspx]]></link><description><![CDATA[Hi, Actually I have a number of xml files, now I have to create only one xml file in which all the data of those xml files to be transferred in to the proper way like if a common node has different elements in more than one file then the result would be in proper way... means no&nbsp;repetition of elements...&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473427/xml-files-comparison.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 22 Apr 2013 06:15:58 GMT</pubDate></item><item><title><![CDATA[How to copy only one cell using Ctrl+C when complete row is selected?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473367/how-to-copy-only-one-cell-using-ctrlc-when-complete-row-is-selected.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473367/how-to-copy-only-one-cell-using-ctrlc-when-complete-row-is-selected.aspx]]></link><description><![CDATA[Hi,<br />
<br />
&nbsp; &nbsp;I have a dataGridView in Windows form.&nbsp;<br />
&nbsp; When user clicks a cell entire row is selected but when he tryies to copy using Ctrl+C contente of all cells are copied.<br />
&nbsp; I want to copy the content of only 2nd cell.<br />
<br />
&nbsp; How can I achieve it?&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473367/how-to-copy-only-one-cell-using-ctrlc-when-complete-row-is-selected.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 18 Apr 2013 04:07:52 GMT</pubDate></item><item><title><![CDATA[How to fire ModalPopupExtender (AjaxToolKit) when focus is set on a textbox]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473336/how-to-fire-modalpopupextender-ajaxtoolkit-when-focus-is-set-on-a-textbox.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473336/how-to-fire-modalpopupextender-ajaxtoolkit-when-focus-is-set-on-a-textbox.aspx]]></link><description><![CDATA[When prompt moves to a particular&nbsp;textbox, I wish to fire ModalPopupExtender. I know how to do it on button click event but is it possible to do the same in this case?<br>
</br>Thanks&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473336/how-to-fire-modalpopupextender-ajaxtoolkit-when-focus-is-set-on-a-textbox.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 16 Apr 2013 10:40:15 GMT</pubDate></item><item><title><![CDATA[Convert File to image.]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473334/convert-file-to-image.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473334/convert-file-to-image.aspx]]></link><description><![CDATA[Hi All,<br />
<br />
I'm working on a page which accepts files using file upload control and uploads to a directory using C#. In this scenario i'm supposed to convert the uploaded files to jpeg images and then to byte array. I could successfully do this if uploaded files are images. Can any one Plz suggest a better way to achieve this?<br />
<br />
<br />
Regards,<br />
Rajesh.<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473334/convert-file-to-image.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 16 Apr 2013 10:28:48 GMT</pubDate></item><item><title><![CDATA[Integrating Outlook appointment with windows application using c#]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473308/integrating-outlook-appointment-with-windows-application-using-c.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473308/integrating-outlook-appointment-with-windows-application-using-c.aspx]]></link><description><![CDATA[<span style="color: #000000; font-family: arial, 'liberation sans', 'dejavu sans', sans-serif; font-size: 14px; line-height: 18px; white-space: normal;">Hi i am developing a windows application in c#.net where i need to show the appointments created in outlook should be able to visible in my windows application. I am not having any idea even how to start and where to start. Please help me out with this issue what i am facing. Please give me some references where appointments of outlook are integrated in windows applications using c#.net</span>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473308/integrating-outlook-appointment-with-windows-application-using-c.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 15 Apr 2013 00:46:48 GMT</pubDate></item><item><title><![CDATA[unable to connect to remote server]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473277/unable-to-connect-to-remote-server.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473277/unable-to-connect-to-remote-server.aspx]]></link><description><![CDATA[<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">Hi</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">&nbsp;</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">I have tried creating a webservice as follows but ended up getting the exception&nbsp;</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<strong style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;">unable to connect to remote server</strong><span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">&nbsp;please check my code and tell me where I went wrong
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">string url = "https://meet66961131.adobeconnect.com/api/xml?action=common-info";</code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;</code><span style="margin-left: 3px !important;">&nbsp;</span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">HttpWebRequest r = (HttpWebRequest)WebRequest.Create(url);</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">r.Method = "Get";</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">HttpWebResponse res = (HttpWebResponse)r.GetResponse();</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">Stream sr = res.GetResponseStream();</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">StreamReader sre = new StreamReader(sr);</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;</code><span style="margin-left: 3px !important;">&nbsp;</span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">string s = sre.ReadToEnd();</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">Response.Write(s);</code></span></span></div>
</div>
</span>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473277/unable-to-connect-to-remote-server.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 11 Apr 2013 11:04:00 GMT</pubDate></item><item><title><![CDATA[How to Databind to GridView in Asp.net using SYBASE]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473262/how-to-databind-to-gridview-in-aspnet-using-sybase.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473262/how-to-databind-to-gridview-in-aspnet-using-sybase.aspx]]></link><description><![CDATA[Hi Frinds,<br />
<br />
&nbsp;&nbsp;&nbsp; How to Databind to GridView in Asp.net using SYBASE database. Please send to me sample code.<br />
<br />
<br />
Thanks<br />
Vk<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473262/how-to-databind-to-gridview-in-aspnet-using-sybase.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 10 Apr 2013 10:07:12 GMT</pubDate></item><item><title><![CDATA[what is the use of a nested class?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473227/what-is-the-use-of-a-nested-class.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473227/what-is-the-use-of-a-nested-class.aspx]]></link><description><![CDATA[what is the use of nested class and where is it useful in a real time scenario?&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473227/what-is-the-use-of-a-nested-class.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 09 Apr 2013 01:21:41 GMT</pubDate></item><item><title><![CDATA[value type and ref type]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473226/value-type-and-ref-type.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473226/value-type-and-ref-type.aspx]]></link><description><![CDATA[when everything comes from an object [system.object] how come we have value types and ref types? when object is a ref type.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473226/value-type-and-ref-type.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 09 Apr 2013 01:20:52 GMT</pubDate></item><item><title><![CDATA[Auto generation of numbers]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473206/auto-generation-of-numbers.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473206/auto-generation-of-numbers.aspx]]></link><description><![CDATA[How is it possible to generate auto increment numbers in the group footer.(i've to generate the auto increment no from 5000 onwards ).if any one knows ,please guide me how to do it through formula.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473206/auto-generation-of-numbers.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 08 Apr 2013 06:53:32 GMT</pubDate></item><item><title><![CDATA[How to redirect to main action when exception occurs in an action returning entity in MVC]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473201/how-to-redirect-to-main-action-when-exception-occurs-in-an-action-returning-entity-in-mvc.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473201/how-to-redirect-to-main-action-when-exception-occurs-in-an-action-returning-entity-in-mvc.aspx]]></link><description><![CDATA[<span style="font-family: consolas; font-size: 13px;">
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">FAQCategoryViewModel</span><span style="font-family: consolas; font-size: 13px;"> FAQCategoryPartial(Entities.Common.</span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">AdminSearchParameter</span><span style="font-family: consolas; font-size: 13px;"> searchObject, </span><span style="color: #0000ff; font-family: consolas; font-size: 13px;">int</span><span style="font-family: consolas; font-size: 13px;"> Status = 0)</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> {</p>
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #2b91af; font-family: consolas; font-size: 13px;">FAQCategoryViewModel</span><span style="font-family: consolas; font-size: 13px;"> destination = </span><span style="color: #0000ff; font-family: consolas; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">FAQCategoryViewModel</span><span style="font-family: consolas; font-size: 13px;">();</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">string</span><span style="font-family: consolas; font-size: 13px;"> recordMessage = </span><span style="color: #0000ff; font-family: consolas; font-size: 13px;">string</span><span style="font-family: consolas; font-size: 13px;">.Empty;</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">int</span><span style="font-family: consolas; font-size: 13px;"> totalRecords = 0;</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">try</span></p>
<span style="color: #0000ff; font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; font-size: 13px;">
<p> { </p>
<p> searchObject.StatusID = Status;</p>
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #2b91af; font-family: consolas; font-size: 13px;">FAQCategory</span><span style="font-family: consolas; font-size: 13px;"> source = </span><span style="color: #0000ff; font-family: consolas; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">FAQCategory</span><span style="font-family: consolas; font-size: 13px;">();</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> source.lstFAQCategory = </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">List</span><span style="font-family: consolas; font-size: 13px;">&lt;</span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">FAQCategory</span><span style="font-family: consolas; font-size: 13px;">&gt;();</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> source = ElenaModel.Web.Models.Admin.</p>
<p>&nbsp;</p>
</span>
<p><span style="color: #2b91af; font-family: consolas; font-size: 13px;">AdminModel</span><span style="font-family: consolas; font-size: 13px;">.Instance.GetFAQCategoryList(searchObject);</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> AutoMapper.</p>
<p>&nbsp;</p>
</span>
<p><span style="color: #2b91af; font-family: consolas; font-size: 13px;">Mapper</span><span style="font-family: consolas; font-size: 13px;">.CreateMap&lt;</span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">FAQCategory</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">FAQCategoryViewModel</span><span style="font-family: consolas; font-size: 13px;">&gt;();</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> destination = AutoMapper.</p>
<p>&nbsp;</p>
</span>
<p><span style="color: #2b91af; font-family: consolas; font-size: 13px;">Mapper</span><span style="font-family: consolas; font-size: 13px;">.Map(source, destination);</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p>　</p>
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> (source != </span><span style="color: #0000ff; font-family: consolas; font-size: 13px;">null</span><span style="font-family: consolas; font-size: 13px;"> &amp;&amp; source.lstFAQCategory.Count &gt; 0)</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> {</p>
<p> totalRecords = source.lstFAQCategory[0].TotalRecords;</p>
<p> }</p>
<p> destination.TotalRecords = totalRecords;</p>
<p> destination.Paging.RecordList = Common.</p>
<p>&nbsp;</p>
</span>
<p><span style="color: #2b91af; font-family: consolas; font-size: 13px;">CommonFunctions</span><span style="font-family: consolas; font-size: 13px;">.GetPageSize();</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> destination.Paging.SelectedRecordID = searchObject.Pagger.PageSize.ToString();</p>
<p> destination.Paging.Paging = ShowPagging(totalRecords, searchObject, </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">out</span><span style="font-family: consolas; font-size: 13px;"> recordMessage);</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> destination.Paging.RecordMessage = recordMessage;</p>
<p> destination.Paging.NextPageNo = searchObject.Pagger.CurrentPageIndex + 1;</p>
<p> destination.Paging.PrevoiusPageNo = searchObject.Pagger.CurrentPageIndex == 0 ? 0 : searchObject.Pagger.CurrentPageIndex - 1;</p>
<p> destination.Paging.SelectedPageNo = searchObject.Pagger.CurrentPageIndex + 1;</p>
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #008000; font-family: consolas; font-size: 13px;">// Save current search in session with new pagger setting</span></p>
<span style="color: #008000; font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; font-size: 13px;">
<p> Session[</p>
<p>&nbsp;</p>
</span>
<p><span style="color: #2b91af; font-family: consolas; font-size: 13px;">SessionKeys</span><span style="font-family: consolas; font-size: 13px;">.AdminSearch] = searchObject;</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> }</p>
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">catch</span><span style="font-family: consolas; font-size: 13px;"> (</span><span style="color: #2b91af; font-family: consolas; font-size: 13px;">Exception</span><span style="font-family: consolas; font-size: 13px;"> ex)</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> {</p>
<p> Log.Error(ex); </p>
<p> }</p>
<p> </p>
<p>&nbsp;</p>
</span>
<p><span style="color: #0000ff; font-family: consolas; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> destination;</span></p>
<span style="font-family: consolas; font-size: 13px;">
<p> }</p>
</span>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473201/how-to-redirect-to-main-action-when-exception-occurs-in-an-action-returning-entity-in-mvc.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 08 Apr 2013 02:42:05 GMT</pubDate></item><item><title><![CDATA[Precautions while setting up FTP component in a web application]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473187/precautions-while-setting-up-ftp-component-in-a-web-application.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473187/precautions-while-setting-up-ftp-component-in-a-web-application.aspx]]></link><description><![CDATA[I'm developing a FTP component in a web application. I was wondering if I need to take some precautions for security of my web app.I mean like&nbsp;getting rid of&nbsp;certain file types which are considered harmful&nbsp;like .exe etc. or is it ok to FTP these files.&nbsp;&nbsp;I don't&nbsp;mind what files are being sent&nbsp; using my FTP component as long as they don't create problem for web application which is basically a web document storage and management&nbsp;system.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473187/precautions-while-setting-up-ftp-component-in-a-web-application.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 05 Apr 2013 11:40:39 GMT</pubDate></item><item><title><![CDATA[facebook dialog not coming when i like]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473154/facebook-dialog-not-coming-when-i-like.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473154/facebook-dialog-not-coming-when-i-like.aspx]]></link><description><![CDATA[Please help!!! i have integrated facebook and when i like the facebook dialog is not appearing !!&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473154/facebook-dialog-not-coming-when-i-like.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 04 Apr 2013 04:51:10 GMT</pubDate></item><item><title><![CDATA[Blank page gets inserted during creation of word document using Word.InterOp in C#]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473076/blank-page-gets-inserted-during-creation-of-word-document-using-wordinterop-in-c.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10473076/blank-page-gets-inserted-during-creation-of-word-document-using-wordinterop-in-c.aspx]]></link><description><![CDATA[Hi,<br />
I am trying to create a new wordDoc(2010) by stitching multiple docs together. Though I am successfully able to build the final Doc there seem to be some blank pages getting inserted into the document which I am unable to get rid of. I am using the Word.Interop dll in c#. Following is a snippet of the code that I am using.<br />
<br />
<br />
var WordApp = new Application();<br />
Document adoc = WordApp.Documents.Add();<br />
foreach(var fileName in ListOfFiles)<br />
{<br />
<span class="Apple-tab-span" style="white-space: pre;">	</span>Range rng = adoc.Range(ref start, ref missing);<br />
<span class="Apple-tab-span" style="white-space: pre;">	</span>rng.InsertFile(fileName, ref missing, ref missing, ref missing, ref missing);<br />
&nbsp; &nbsp; &nbsp; &nbsp;start = WordApp.ActiveDocument.Content.End - 1;<br />
}<br />
adoc.SaveAs(targetFileName);<br />
<br />
<br />
Thanks.<br />
KC<br />
<div><br />
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10473076/blank-page-gets-inserted-during-creation-of-word-document-using-wordinterop-in-c.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 01 Apr 2013 16:38:56 GMT</pubDate></item><item><title><![CDATA[how to make intranet application to internet application]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472999/how-to-make-intranet-application-to-internet-application.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472999/how-to-make-intranet-application-to-internet-application.aspx]]></link><description><![CDATA[<br />
I have an intranet application with enabled windows authentication and disabled anonymous authentication.. How can i make this&nbsp; application for internet users, it is developed in c#.net.. For Active directory users need auto login to this system and for outside users has to enter the login details.<br />
<br />
If anyone knows this please help me.. <br />
<br />
Thanks in advance<br />
Jidhu<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472999/how-to-make-intranet-application-to-internet-application.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 26 Mar 2013 01:38:02 GMT</pubDate></item><item><title><![CDATA[string]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472996/string.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472996/string.aspx]]></link><description><![CDATA[Hi ,<br />
<br />
I would like to try the code.<br />
I am new to .net.<br />
<br />
<span style="color: #000000; font-family: arial, verdana, sans-serif; font-size: 12px; font-weight: bold; line-height: 15.59375px; white-space: normal;">If i give a string &nbsp;&ldquo;rrrrrraaassaaabbaaa&rdquo; as an input, It would generate &ldquo;r,6&rdquo; as output because &lsquo;r&rsquo; shows up the most times in a row. The character &lsquo;a&rsquo; shows up more times overall, but i am &nbsp;interested in the longest contiguous run.&nbsp;<br />
</span><br />
can any one help to write this logic.<br />
<br />
Thanks<br />
Ranjani.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472996/string.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 25 Mar 2013 14:31:56 GMT</pubDate></item><item><title><![CDATA[Denied access to write to a file in root of website from one library but not another.]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472943/denied-access-to-write-to-a-file-in-root-of-website-from-one-library-but-not-another.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472943/denied-access-to-write-to-a-file-in-root-of-website-from-one-library-but-not-another.aspx]]></link><description><![CDATA[Hi,<br />
&nbsp;<br />
I have a website on my local IIS 7.5 server. The site has two libraries. &nbsp;I will call them <strong>LibraryA</strong> and <strong><span style="white-space: normal;">Library</span>B</strong>. Both are copied to the same website sub-folder on build. <strong><span style="white-space: normal;">Library</span>A</strong> writes to a text file in the root directory of the website, and this works okay. However, when <strong><span style="white-space: normal;">Library</span>B</strong> raises an event, which triggers a call to the same file-writing function in <strong><span style="white-space: normal;">Library</span>A</strong> to write to the same text file, this fails with an exception which says access to the file is denied.<br />
&nbsp;<br />
Why does one library appear to have permissions that the other doesn't? &nbsp;And, given the fact that the actual file writing is always done by the same piece of code in&nbsp;<strong><span style="white-space: normal;">Library</span>A</strong>, I don't understand why one call should succeed and another fail.<br />
<br />
The file writing is wrapped in a <strong>lock() {}</strong> to protect against threading errors and a <strong>using() {}</strong> to ensure the file is always closed after writing.<br />
&nbsp;<br />
I have no idea what is going on here. Any help or suggestions at all would be very gratefully received.<br />
<br />
<br />
Kind wishes, Patrick&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472943/denied-access-to-write-to-a-file-in-root-of-website-from-one-library-but-not-another.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 22 Mar 2013 13:12:45 GMT</pubDate></item><item><title><![CDATA[Counting listItems in Checkboxlist in pageload not working]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472941/counting-listitems-in-checkboxlist-in-pageload-not-working.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472941/counting-listitems-in-checkboxlist-in-pageload-not-working.aspx]]></link><description><![CDATA[<p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">I have label which displays a message depending on if the checkboxlist has items or not. Now the problem is, the code takes into account the previous pageload and not the current one. <br />
What I'm trying to figure out is, if the control is rendering listItems&nbsp;on the page there should be way to catch it in pageload. I've a sqldatasource attached to this checkboxlist. Any suggestions what I'm missing or doing wrong?<br />
<br />
if</span> (CheckBoxList1.Items.Count == 0) </p>
<p>&nbsp;</p>
<p>{</p>
<p>Label1.Visible = </p>
<p>&nbsp;</p>
<p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">true</span>; </p>
<p>&nbsp;</p>
<p>Label1.Text = </p>
<p>&nbsp;</p>
<p><span style="font-family: consolas; color: #a31515; font-size: 13px;">"No files in this folder."</span>; </p>
<p>&nbsp;</p>
<p>}</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>else </p>
<p>&nbsp;</p>
<span style="font-family: consolas; font-size: 13px;">
<p>Label1.Visible = </p>
<p>&nbsp;</p>
</span>
<p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">false</span>; </p>
<p>&nbsp;</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472941/counting-listitems-in-checkboxlist-in-pageload-not-working.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 22 Mar 2013 11:17:31 GMT</pubDate></item><item><title><![CDATA[how i bridge between tally and our web application mvc3]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472923/how-i-bridge-between-tally-and-our-web-application-mvc3.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472923/how-i-bridge-between-tally-and-our-web-application-mvc3.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472923/how-i-bridge-between-tally-and-our-web-application-mvc3.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 22 Mar 2013 01:29:33 GMT</pubDate></item><item><title><![CDATA[how to make web service in json format for mobile application in c#]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472891/how-to-make-web-service-in-json-format-for-mobile-application-in-c.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472891/how-to-make-web-service-in-json-format-for-mobile-application-in-c.aspx]]></link><description><![CDATA[Hi expert,<br />
<br />
I made a web application "nekkst.com".<br />
<br />
now i want to make a mobile app for this application too.<br />
<br />
<strong>My problem is that how to make a web service in json format for login using mobile app,&nbsp;<br />
</strong><br />
<br />
Thank's&nbsp;<br />
pankaj singh<br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472891/how-to-make-web-service-in-json-format-for-mobile-application-in-c.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 20 Mar 2013 04:12:27 GMT</pubDate></item><item><title><![CDATA[Scroll bar not available for html files in IE]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472885/scroll-bar-not-available-for-html-files-in-ie.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472885/scroll-bar-not-available-for-html-files-in-ie.aspx]]></link><description><![CDATA[I am able to see scroll bar for pdf files and also for word documents but when I upload html docs there is no scroll bar available. Is it an issue with the Html docs or is it an issue with the IE browser?&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472885/scroll-bar-not-available-for-html-files-in-ie.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 19 Mar 2013 23:48:36 GMT</pubDate></item><item><title><![CDATA[there is dropdown each row of gridview i want to add diffrent value in Dropdown ??]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472881/there-is-dropdown-each-row-of-gridview-i-want-to-add-diffrent-value-in-dropdown-.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472881/there-is-dropdown-each-row-of-gridview-i-want-to-add-diffrent-value-in-dropdown-.aspx]]></link><description><![CDATA[i want to bind drop down of each row at run time with different values.<br />
i am binding vendor in grid view ,vendor belong to different country,<br />
one country can have multiple vendor,so if country has one vendor then in drop down one 1 number will bind if country has 2 vendor then in drop down 1 and 2 both number will display. <br />
&nbsp;currently i am binding datatable to grid please suggest how to do this.<br />
if u need some more information.<br />
<br />
Please help is is very argent.....<br />
thanks in advance....&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472881/there-is-dropdown-each-row-of-gridview-i-want-to-add-diffrent-value-in-dropdown-.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 19 Mar 2013 10:04:04 GMT</pubDate></item><item><title><![CDATA[How to Check if Sub-directory Exists in ASP.NET Medium Trust]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472863/how-to-check-if-subdirectory-exists-in-aspnet-medium-trust.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472863/how-to-check-if-subdirectory-exists-in-aspnet-medium-trust.aspx]]></link><description><![CDATA[Hi,<br />
<br />
<p>To emulate my hosting provider, I have set up my local IIS in Windows 7 to run <strong>Medium Trust</strong>. &nbsp;Microsoft say that, in <strong>Medium Trust</strong>, you have restricted <strong>FileIOPermission</strong>. &nbsp;This seems to be correct because I have the following entry in my <strong>\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web_mediumtrust.config</strong> file:</p>
<br />
<p>&lt;IPermission</p>
<p>&nbsp; class="FileIOPermission"</p>
<p>&nbsp; version="1"</p>
<p>&nbsp; Read="$AppDir$"</p>
<p>&nbsp; Write="$AppDir$"</p>
<p>&nbsp; Append="$AppDir$"</p>
<p>&nbsp; PathDiscovery="$AppDir$"</p>
<br />
<p>I am trying to discover if a sub-directory exists in my application's root folder.  I would have thought this would be okay, since I have <strong>PathDiscovery</strong> permission, but when I try the following:</p>
<br />
<p><strong>DirectoryInfo logFileDirectoryInfo = new DirectoryInfo( @"\logs" );</strong></p>
<br />
<p>I get a security exception, which simply says I do not have <strong>FileIOPermission</strong>.</p>
<br />
<p>Can anyone tell me what I am doing wrong? &nbsp;Is there another way to check if a sub-directory exists without causing this exception?</p>
<br />
<p>Any help or advice would be very much appreciated.</p>
<br />
<p>Kind wishes, Patrick</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472863/how-to-check-if-subdirectory-exists-in-aspnet-medium-trust.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 18 Mar 2013 15:35:52 GMT</pubDate></item><item><title><![CDATA[Force Base Application to trigger Log4Net logging in Web Application]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472852/force-base-application-to-trigger-log4net-logging-in-web-application.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472852/force-base-application-to-trigger-log4net-logging-in-web-application.aspx]]></link><description><![CDATA[In our Web Application, Notifications to users on various modules are stored in a Queue table. At the server there use to be an external executable file that runs on timer intervals and checks&nbsp;the queue table and sends un-processed notifications. This process is alienated this way from web applicaiton in order to reduce the load when saving data.<br />
<br />
Web application is supported with Log4Net logging&nbsp;that properly logs errors when&nbsp;operations are carried out directly via application interfaces. But the processes called from the external executable do not log any when error occurs.<br />
<br />
There is an important point to be noted. The external executable was written in VFP9 and to call processes from web application, a project was added to web application development solution and this project was built as COM+ (COMSVCS) so that the class methods&nbsp;in DLL are visible to be called from outside.<br />
<br />
We understand that Log4Net looks for the configuration details from&nbsp;base&nbsp;application end. In above case, it would be the external executable end. Well, having configuration setup at this end, and providing its&nbsp;detail via assembly (at COM+ project end) did not help.<br />
<br />
We are forced to think the following:<br />
(a) The problem may be because the calling end is a VFP application<br />
(b) The problem may be because the processes called via COM+ application<br />
<br />
How best you could suggest a solution to overcome this problem? In summary, we expect Log4Net to log errors regardless of the application calling end! Appreciate your valuable try on this.<br />
<br />
Thank you.<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472852/force-base-application-to-trigger-log4net-logging-in-web-application.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 18 Mar 2013 04:08:53 GMT</pubDate></item><item><title><![CDATA[To get line number during exception log]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472806/to-get-line-number-during-exception-log.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472806/to-get-line-number-during-exception-log.aspx]]></link><description><![CDATA[<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">Hi</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">&nbsp;</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">I want to log the line number where the exception has occurred in global.asax.</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">I have used the following code to get the line number but returns 0 by default&nbsp;
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">void Application_Error(object sender, EventArgs e) </code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000000;">{ </code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">// Code that runs when an unhandled error occurs</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">Exception ex = Server.GetLastError();</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">System.Diagnostics.StackTrace trace = new System.Diagnostics.StackTrace(ex, true);</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">System.Diagnostics.StackFrame fm = new System.Diagnostics.StackFrame(true);</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">string sline = trace.GetFrame(trace.FrameCount - 1).GetFileLineNumber().ToString();</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 15px !important;"><code style="color: #000000;">}</code></span></span></div>
</div>
</span><span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;"><strong>Note:</strong><span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">The following code to get linenumber works fine when I tried within try catch block</span><strong><br />
</strong></span><br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472806/to-get-line-number-during-exception-log.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 15 Mar 2013 10:41:22 GMT</pubDate></item><item><title><![CDATA[how to get ip address when a person click on a button to download any file from my website]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472777/how-to-get-ip-address-when-a-person-click-on-a-button-to-download-any-file-from-my-website.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472777/how-to-get-ip-address-when-a-person-click-on-a-button-to-download-any-file-from-my-website.aspx]]></link><description><![CDATA[Please help urgent!!!! i need to retrieve and display ip address on button click to download any file.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472777/how-to-get-ip-address-when-a-person-click-on-a-button-to-download-any-file-from-my-website.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 14 Mar 2013 02:47:32 GMT</pubDate></item><item><title><![CDATA[Pagination using string builder in C#]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472762/pagination-using-string-builder-in-c.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472762/pagination-using-string-builder-in-c.aspx]]></link><description><![CDATA[Hi i wan to incorporate pagination in the below code. Kindly help.&nbsp; Thanks in advance.<br />
<br />
Private void BindQA()<br />
{<br />
dataset dsGet=null;<br />
dsGet=obj.Getdetails(objplfaq);//<br />
stringbuilder strBuilder=new stringbuilder();<br />
<br />
if(dsGet.tables[0].rows.count &gt; 0)<br />
{<br />
strBuilder.Append("&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;");<br />
<br />
}<br />
int intcnt=0;<br />
for( int i=0;i&lt;dsGet.tables[0].rows.count;i++)<br />
{<br />
&nbsp;&nbsp;&nbsp;string &nbsp;strQues="",strAns="",strSearchtext="";<br />
&nbsp; strQues=dsGet.Tables[0].rows[i]["Q_Desc"].tostring();<br />
&nbsp;&nbsp;strAns=dsGet.Tables[0].rows[i]["Q_Desc"].tostring();<br />
<br />
if(i&gt;5)<br />
{<br />
&nbsp;&nbsp;strBuilder.Append("&lt;tr&gt;&lt;td&gt;&lt;a href='#' name ='"+intcnt.tostring()+"'&lt;/a&gt;Q:&lt;/td&gt;");<br />
&nbsp;&nbsp;&nbsp; strBuilder.Append("&lt;td&gt; +strQues+"&lt;/td&gt;&lt;/tr&gt;");<br />
&nbsp;&nbsp; &nbsp;strBuilder.Append("&lt;tr&gt;&lt;td&gt;+strAns+"&lt;/td&gt;&lt;/tr&gt;");<br />
}&nbsp;&nbsp;<br />
}<br />
strBuilder.Append("&lt;/table&gt;");<br />
sphtml.InnerHtml=strbuilder.tostring();<br />
}&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472762/pagination-using-string-builder-in-c.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 13 Mar 2013 08:01:24 GMT</pubDate></item><item><title><![CDATA[Drag and Drop file upload using asp.net]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472759/drag-and-drop-file-upload-using-aspnet.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472759/drag-and-drop-file-upload-using-aspnet.aspx]]></link><description><![CDATA[<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">Hi</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">&nbsp;</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">I want to know is there anyway of uploading files using drag and drop in .net 4.0</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">I have searched for it but ended up getting into HTML 5 drag and drop option is that a good approach to use it? Are there any other open source third party tool which supports drag and drop upload with .net 4.0?</span>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472759/drag-and-drop-file-upload-using-aspnet.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 13 Mar 2013 06:15:21 GMT</pubDate></item><item><title><![CDATA[In Excell dropdownlist how to populate data from database]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472720/in-excell-dropdownlist-how-to-populate-data-from-database.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472720/in-excell-dropdownlist-how-to-populate-data-from-database.aspx]]></link><description><![CDATA[Hi,<br />
<br />
&nbsp;I have to do Exccel upload For master form.Functional Role one column is&nbsp; there in Excel as dropdown list. dynamically i want to fill the drop down from database.can anyone halp me pls.....this is very urgent form me...pls...........<br />
<br />
<br />
<br />
<br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472720/in-excell-dropdownlist-how-to-populate-data-from-database.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 12 Mar 2013 02:34:34 GMT</pubDate></item><item><title><![CDATA[In Pageload set TreeView node to a value]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472712/in-pageload-set-treeview-node-to-a-value.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472712/in-pageload-set-treeview-node-to-a-value.aspx]]></link><description><![CDATA[<span style="font-family: consolas; font-size: 13px;">
<p>&nbsp;</p>
<p>&nbsp;</p>
</span>
<p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">TreeNodeBinding</span><span style="font-family: consolas; font-size: 13px;"> tnb = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">TreeNodeBinding</span>(); </p>
<p>&nbsp;</p>
<p>tnb.DataMember = </p>
<p>&nbsp;</p>
<p><span style="font-family: consolas; color: #a31515; font-size: 13px;">"System.Data.DataRowView"</span>; </p>
<p>&nbsp;</p>
<p>tnb.TextField = </p>
<p>&nbsp;</p>
<p><span style="font-family: consolas; color: #a31515; font-size: 13px;">"C_Name"</span>; </p>
<p>&nbsp;</p>
<p>tnb.ValueField = </p>
<p>&nbsp;</p>
<p><span style="font-family: consolas; color: #a31515; font-size: 13px;">"CategoryId"</span>; </p>
<p>&nbsp;</p>
<p>tnb.PopulateOnDemand = </p>
<p>&nbsp;</p>
<p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">false</span>; </p>
<p>&nbsp;</p>
<p>tnb.SelectAction = </p>
<p>&nbsp;</p>
<p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">TreeNodeSelectAction</span>.Select; </p>
<p>&nbsp;</p>
<p>TreeView1.DataBindings.Add(tnb);</p>
<p>　</p>
<p>TreeView1.DataSource = </p>
<p>&nbsp;</p>
<p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">HierarchicalDataSet</span><span style="font-family: consolas; font-size: 13px;">(ds, </span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"CategoryId"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"ParentCatId"</span>); </p>
<p>&nbsp;</p>
<p>TreeView1.DataBind();</p>
<p>&nbsp;</p>
<p>&nbsp;if (!this.IsPostBack) </p>
<p>&nbsp;</p>
<p>{</p>
<p>TreeNode node = TreeView1.FindNode(Request.QueryString["Cat"].ToString());</p>
<p>node.Selected = true;</p>
<p>}</p>
<p >I trying to get TreeView node to be selected based on the&nbsp;text of the node being passed from another page. The problem is i'm getting error. In debug mode I see that even after databind I dont see TreeView1 getting&nbsp;populated with nodes but TreeView is&nbsp;displaying everything&nbsp;properly on the webpage. All I want is to highlight the node as selected based on the value from other page<br />
Any help is much appreciated.<br />
Thanks</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472712/in-pageload-set-treeview-node-to-a-value.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 11 Mar 2013 13:11:00 GMT</pubDate></item><item><title><![CDATA[How to Stream Sony HDR-TD10 AVCHD 2D/3D MTS footage to PS3]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472688/how-to-stream-sony-hdrtd10-avchd-2d3d-mts-footage-to-ps3.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/csharp/2/10472688/how-to-stream-sony-hdrtd10-avchd-2d3d-mts-footage-to-ps3.aspx]]></link><description><![CDATA[<em style="color: #000000; font-family: serif; text-align: -webkit-auto; font-size: medium;">I just received the neat Sony HDR-TD10 camera and I'm trying to figure out the particulars of the MTS files that it shoots. Now I'd like to merge multiple Sony HDR-TD10 .MTS without losing quality, so that I can stream the result AVCHD footage smoothly over Wi-Fi to PS3 in full HD quality. The HDR-TD10 also shoots in 3D mode, so I'd prefer some tool that let me merge 3D .mts video as well. I'm working on iMac with OS X Mountain Lion. Thanks.</em>&nbsp;&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/csharp/2/10472688/how-to-stream-sony-hdrtd10-avchd-2d3d-mts-footage-to-ps3.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 09 Mar 2013 08:46:29 GMT</pubDate></item></channel></rss>