<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag '#Develop'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=%23Develop&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag '#Develop'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Anti Frame Breaker Code</title><link>http://forums.asp.net/thread/3416659.aspx</link><pubDate>Mon, 21 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3416659</guid><dc:creator>sandeep_1111</dc:creator><description>&lt;p&gt;Hi all&lt;br /&gt;&lt;br /&gt;Need help on frame breaker code.&lt;br /&gt;&lt;br /&gt;i have a page with two frames in it.the pages are built in PHP.&lt;br /&gt;the
first page displays page from my site whereas the second frame displays
page from the other site for which i do not have control on.&lt;br /&gt;&lt;br /&gt;but
for some sites that do have a frame breaker code in them, those pages
open in the parent window rather than opening in the frame.&lt;br /&gt;&lt;br /&gt;have tried the security TAG in Iframe but it works only in IE.&lt;br /&gt;for mozilla its of no use.&lt;br /&gt;&lt;br /&gt;tried a few things but to no effect.&lt;br /&gt;&lt;br /&gt;tried from this link&lt;br /&gt;&lt;a href="http://coderrr.wordpress.com/2009/02/13/preventing-frame-busting-and-click-jacking-ui-redressing/"&gt;http://coderrr.wordpress.com/2009/02/13/preventing-frame-busting-and-click-jacking-ui-redressing/&lt;/a&gt;[&lt;a href="http://coderrr.wordpress.com/2009/02/13/preventing-frame-busting-and-click-jacking-ui-redressing/" target="_blank" title="New Window"&gt;^&lt;/a&gt;]&lt;br /&gt;&lt;br /&gt;is it even possibe to do so.&lt;br /&gt;&lt;br /&gt;Pls help&lt;br /&gt;Thanks in Advance. &lt;img src="http://www.codeproject.com/script/Forums/Images/smiley_smile.gif" alt="Smile" align="top" /&gt; &lt;br /&gt;&lt;br /&gt;Sandeep&lt;/p&gt;</description></item><item><title>How to punt retreived image from database in a image or any other appropriate control</title><link>http://forums.asp.net/thread/3206122.aspx</link><pubDate>Tue, 02 Jun 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3206122</guid><dc:creator>lucky_winni</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi , &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; I am able to save image in the database and also able to retrive it on the web form , but the size comes out to be big and as equal to the original size , I need to display a single image in for of a thumbnail or in a small control like a passport size picture , but I am not able to find the right control and the right syntax , If anyone can supply the small code based on my code will be really thankfull&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is my code to retrive the file from the database&amp;nbsp;&lt;/p&gt;&lt;p&gt;using System;&lt;br /&gt;using System.Collections;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.ComponentModel;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Data.SqlClient;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.SessionState;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;&lt;br /&gt;public partial class ViewImage : System.Web.UI.Page&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;//string ImageId = Request.QueryString[&amp;quot;img&amp;quot;];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;string sqlText = &amp;quot;SELECT img_data, img_contenttype FROM Image WHERE img_pk = &amp;quot; + 2;&lt;br /&gt;&lt;br /&gt;SqlConnection connection = new SqlConnection(@&amp;quot;Server=PC\SQLEXPRESS;Database=master;Trusted_Connection=True;&amp;quot;);&lt;br /&gt;SqlCommand command = new SqlCommand( sqlText, connection);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connection.Open();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlDataReader dr = command.ExecuteReader();&lt;br /&gt;&amp;nbsp; if ( dr.Read()) &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //TextBox1.Text = dr[&amp;quot;img_contenttype&amp;quot;].ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.ContentType = dr[&amp;quot;img_contenttype&amp;quot;].ToString();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.BinaryWrite((byte[])dr[&amp;quot;img_data&amp;quot;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp; // TextBox1.Text = ((byte[])dr[&amp;quot;img_data&amp;quot;]);//I need a control here SO that I can get the image in small size &lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; connection.Close();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;} &lt;/p&gt;&lt;p&gt;Thank s &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to use Visual Studio 2008 Team System</title><link>http://forums.asp.net/thread/3189560.aspx</link><pubDate>Wed, 27 May 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3189560</guid><dc:creator>malikabid</dc:creator><description>please help me out in configuring the vsts 2008 for multiple developers working on the same projet.

the problem is :
we are two guys using ms windows xp sp2, with Visual Studio 2008 Team System installed on both systems. the systems are connected on LAN.
we are working on same ASP.Net website, but are unable to do it as a team..
please help me to configure it......

thx</description></item><item><title>Re: calculate number of months between two dates - vb.net</title><link>http://forums.asp.net/thread/3124067.aspx</link><pubDate>Tue, 28 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3124067</guid><dc:creator>wsdesa</dc:creator><description>&lt;p&gt;
 
  Normal
  0
  
  
  false
  false
  false
  
   
   
   
   
   
  
  MicrosoftInternetExplorer4
 

 
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:&amp;quot;Times New Roman&amp;quot;;
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}

&lt;b&gt;I create a better and more accurate method.&lt;/b&gt;

&lt;/p&gt;&lt;p&gt;&lt;b&gt;Try this people it&amp;#39;s the best.&lt;/b&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;
 
  Normal
  0
  &lt;/u&gt;
  &lt;/u&gt;
  false
  false
  false
  
   &lt;/u&gt;
   &lt;/u&gt;
   &lt;/u&gt;
   &lt;/u&gt;
   &lt;/u&gt;
  
  MicrosoftInternetExplorer4
 

   
&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; Methord to calculate no of months between two dates&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; Creater:- Sasanka Fernando&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; Email:- wsdesa@gmail.com&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;&amp;lt;param name=&amp;quot;startDate&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;&amp;lt;param name=&amp;quot;endDate&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;&amp;lt;returns&amp;gt;&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; number of months as an integer &lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;&amp;lt;/returns&amp;gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;
&lt;span style="color:blue;"&gt;int&lt;/span&gt; monthDifference(&lt;span style="color:teal;"&gt;DateTime&lt;/span&gt;
startDate, &lt;span style="color:teal;"&gt;DateTime&lt;/span&gt; endDate)&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;{&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; This is to set date to &amp;quot;0001/01/01&amp;quot;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:teal;"&gt;DateTime&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt; systemStartDate = &lt;span style="color:blue;"&gt;new&lt;/span&gt;
&lt;span style="color:teal;"&gt;DateTime&lt;/span&gt;();&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt; Time span to set the total time
difference&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:teal;"&gt;TimeSpan&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt; timeDifference;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt;This if condition to avoid the minus
value for Time difference&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt; (endDate &amp;gt; startDate)&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;{&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-left:0.5in;text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;timeDifference =
endDate.Subtract(startDate);&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;}&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;else&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;{&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-left:0.5in;text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;timeDifference =
startDate.Subtract(endDate);&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt;This is to generate a date from the
systemStartDate&amp;nbsp; &lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:teal;"&gt;DateTime&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt; generatedDate =
systemStartDate.Add(timeDifference);&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:gray;"&gt;///&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:green;"&gt;Substract 1 because the systemStartDate
is &amp;quot;0001/01/01&amp;quot;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt; noOfYears = generatedDate.Year - 1;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt; noOfMonths = generatedDate.Month - 1;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;noOfMonths = noOfMonths + (noOfYears * 12);&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="text-indent:0.5in;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;return&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt; noOfMonths;&lt;/span&gt;&lt;/p&gt;

&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;}&lt;/span&gt;</description></item><item><title>Re: calculate number of months between two dates - vb.net</title><link>http://forums.asp.net/thread/3123915.aspx</link><pubDate>Tue, 28 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3123915</guid><dc:creator>wsdesa</dc:creator><description>&lt;br /&gt;</description></item><item><title>Re: Shopping Cart to paypal</title><link>http://forums.asp.net/thread/3096461.aspx</link><pubDate>Thu, 16 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3096461</guid><dc:creator>ai8850</dc:creator><description>&lt;p&gt;Good info links, Thx man&lt;/p&gt;</description></item><item><title>Update server side not working</title><link>http://forums.asp.net/thread/3024518.aspx</link><pubDate>Fri, 20 Mar 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3024518</guid><dc:creator>carlos.</dc:creator><description>&lt;p&gt;&amp;nbsp;I am getting started on dot net app... and my update process ( Update_User ) don&amp;#39;t seem to work, i get the id from other web form then i load the data on some text box so i can edit the info, i am not using sessions .... here is my code&lt;br /&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;b id="2"&gt;2    &lt;/b&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Configuration;&lt;br /&gt;&lt;b id="3"&gt;3    &lt;/b&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Data;&lt;br /&gt;&lt;b id="4"&gt;4    &lt;/b&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Data.SqlClient;&lt;br /&gt;&lt;b id="5"&gt;5    &lt;/b&gt;
&lt;b id="6"&gt;6    &lt;/b&gt;&lt;span class="kwd"&gt;public&lt;/span&gt; partial &lt;span class="kwd"&gt;class&lt;/span&gt; UpdateUser : System.Web.UI.Page&lt;br /&gt;&lt;b id="7"&gt;7    &lt;/b&gt;{&lt;br /&gt;&lt;b id="8"&gt;8    &lt;/b&gt;    &lt;span class="kwd"&gt;public string&lt;/span&gt; User_Id;&lt;br /&gt;&lt;b id="9"&gt;9    &lt;/b&gt;    &lt;span class="kwd"&gt;private&lt;/span&gt; SqlConnection cn;&lt;br /&gt;&lt;b id="10"&gt;10   &lt;/b&gt;
&lt;b id="11"&gt;11   &lt;/b&gt;    &lt;span class="kwd"&gt;protected void&lt;/span&gt; Update_User(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;&lt;b id="12"&gt;12   &lt;/b&gt;    {&lt;br /&gt;&lt;b id="13"&gt;13   &lt;/b&gt;          &lt;b&gt;  cn = &lt;span class="kwd"&gt;new&lt;/span&gt; SqlConnection(ConfigurationManager.ConnectionStrings[&lt;span class="st"&gt;&amp;quot;CONN&amp;quot;&lt;/span&gt;].ConnectionString);&lt;br /&gt;&lt;/b&gt;&lt;b id="14"&gt;14   &lt;/b&gt;&lt;b&gt;            SqlCommand cmdas = &lt;span class="kwd"&gt;new&lt;/span&gt; SqlCommand(&lt;span class="st"&gt;&amp;quot;UPDATE Users SET User_Code = @User_Code, Name = @Name, Superior = @Superior, User_Tipe = @User_Tipe, Register_Date = @Register_Date,User = @User,Password = @Password Where User_Id =&amp;quot;&lt;/span&gt; + User_Id, cn);&lt;br /&gt;&lt;/b&gt;&lt;b id="15"&gt;15   &lt;/b&gt;&lt;b&gt;           &lt;br /&gt;&lt;/b&gt;&lt;b id="16"&gt;16   &lt;/b&gt;&lt;b&gt;            cmdas.Parameters.Add(&lt;span class="st"&gt;&amp;quot;@User_Code&amp;quot;&lt;/span&gt;, SqlDbType.Int).Value = txtUser_Code.Text;&lt;br /&gt;&lt;/b&gt;&lt;b id="17"&gt;17   &lt;/b&gt;&lt;b&gt;            cmdas.Parameters.Add(&lt;span class="st"&gt;&amp;quot;@Name&amp;quot;&lt;/span&gt;, SqlDbType.VarChar).Value = txtName.Text;&lt;br /&gt;&lt;/b&gt;&lt;b id="18"&gt;18   &lt;/b&gt;&lt;b&gt;            cmdas.Parameters.Add(&lt;span class="st"&gt;&amp;quot;@Superior&amp;quot;&lt;/span&gt;, SqlDbType.VarChar).Value = txtSuperior.Text;&lt;br /&gt;&lt;/b&gt;&lt;b id="19"&gt;19   &lt;/b&gt;&lt;b&gt;            cmdas.Parameters.Add(&lt;span class="st"&gt;&amp;quot;@User_Tipe&amp;quot;&lt;/span&gt;, SqlDbType.VarChar).Value = ddlUser_Tipe.Text;&lt;br /&gt;&lt;/b&gt;&lt;b id="20"&gt;20   &lt;/b&gt;&lt;b&gt;            cmdas.Parameters.Add(&lt;span class="st"&gt;&amp;quot;@Register_Date&amp;quot;&lt;/span&gt;, SqlDbType.DateTime).Value = Convert.ToDateTime(txtRegister_Date.Text);&lt;br /&gt;&lt;/b&gt;&lt;b id="21"&gt;21   &lt;/b&gt;&lt;b&gt;            cmdas.Parameters.Add(&lt;span class="st"&gt;&amp;quot;@User&amp;quot;&lt;/span&gt;, SqlDbType.VarChar).Value = txtUser.Text;&lt;br /&gt;&lt;/b&gt;&lt;b id="22"&gt;22   &lt;/b&gt;&lt;b&gt;            cmdas.Parameters.Add(&lt;span class="st"&gt;&amp;quot;@Password&amp;quot;&lt;/span&gt;, SqlDbType.VarChar).Value = txtPassword.Text;&lt;br /&gt;&lt;/b&gt;&lt;b id="23"&gt;23   &lt;/b&gt;      &lt;br /&gt;&lt;b id="24"&gt;24   &lt;/b&gt;            cn.Open();&lt;br /&gt;&lt;b id="25"&gt;25   &lt;/b&gt;            cmdas.ExecuteNonQuery();&lt;br /&gt;&lt;b id="26"&gt;26   &lt;/b&gt;            cn.Close();&lt;br /&gt;&lt;b id="27"&gt;27   &lt;/b&gt;            Response.Redirect(&lt;span class="st"&gt;&amp;quot;Users.aspx&amp;quot;&lt;/span&gt;);&lt;br /&gt;&lt;b id="28"&gt;28   &lt;/b&gt;    }&lt;br /&gt;&lt;b id="29"&gt;29   &lt;/b&gt;
&lt;b id="30"&gt;30   &lt;/b&gt;    &lt;span class="kwd"&gt;protected void&lt;/span&gt; Get_Data()&lt;br /&gt;&lt;b id="31"&gt;31   &lt;/b&gt;    {&lt;br /&gt;&lt;b id="32"&gt;32   &lt;/b&gt;        &lt;span class="kwd"&gt;if&lt;/span&gt; (User_Id != &lt;span class="kwd"&gt;null&lt;/span&gt;)&lt;br /&gt;&lt;b id="33"&gt;33   &lt;/b&gt;        {&lt;br /&gt;&lt;b id="34"&gt;34   &lt;/b&gt;            SqlCommand cmdas = &lt;span class="kwd"&gt;new&lt;/span&gt; SqlCommand(&lt;span class="st"&gt;&amp;quot;SELECT * FROM Users WHERE Status = 1 AND User_Id = &amp;quot;&lt;/span&gt; + User_Id, cn);&lt;br /&gt;&lt;b id="35"&gt;35   &lt;/b&gt;            cn.Open();&lt;br /&gt;&lt;b id="36"&gt;36   &lt;/b&gt;            cmdas.ExecuteNonQuery();&lt;br /&gt;&lt;b id="37"&gt;37   &lt;/b&gt;            SqlDataReader dr = cmdas.ExecuteReader();&lt;br /&gt;&lt;b id="38"&gt;38   &lt;/b&gt;
&lt;b id="39"&gt;39   &lt;/b&gt;            &lt;span class="kwd"&gt;if&lt;/span&gt; (dr != &lt;span class="kwd"&gt;null&lt;/span&gt;)&lt;br /&gt;&lt;b id="40"&gt;40   &lt;/b&gt;                &lt;span class="kwd"&gt;if&lt;/span&gt; (dr.HasRows)&lt;br /&gt;&lt;b id="41"&gt;41   &lt;/b&gt;                {&lt;br /&gt;&lt;b id="42"&gt;42   &lt;/b&gt;                    &lt;span class="kwd"&gt;while&lt;/span&gt; (dr.Read())&lt;br /&gt;&lt;b id="43"&gt;43   &lt;/b&gt;                    {&lt;br /&gt;&lt;b id="44"&gt;44   &lt;/b&gt;                        txtUser_Code.Text = Convert.ToString(dr.GetValue(1));&lt;br /&gt;&lt;b id="45"&gt;45   &lt;/b&gt;                        txtName.Text = dr.GetString(2);&lt;br /&gt;&lt;b id="46"&gt;46   &lt;/b&gt;                        txtSuperior.Text = dr.GetString(3);&lt;br /&gt;&lt;b id="47"&gt;47   &lt;/b&gt;
&lt;b id="48"&gt;48   &lt;/b&gt;                        &lt;span class="kwd"&gt;for&lt;/span&gt; (&lt;span class="kwd"&gt;int&lt;/span&gt; i = 0; i &amp;lt; 2; i++)&lt;br /&gt;&lt;b id="49"&gt;49   &lt;/b&gt;                        {&lt;br /&gt;&lt;b id="50"&gt;50   &lt;/b&gt;                            &lt;span class="kwd"&gt;if&lt;/span&gt; (ddlUser_Tipe.SelectedItem.Value == dr.GetString(4))&lt;br /&gt;&lt;b id="51"&gt;51   &lt;/b&gt;                            {&lt;br /&gt;&lt;b id="52"&gt;52   &lt;/b&gt;                                ddlUser_Tipe.SelectedIndex = i;&lt;br /&gt;&lt;b id="53"&gt;53   &lt;/b&gt;                                &lt;span class="kwd"&gt;break&lt;/span&gt;;&lt;br /&gt;&lt;b id="54"&gt;54   &lt;/b&gt;                            }&lt;br /&gt;&lt;b id="55"&gt;55   &lt;/b&gt;                            &lt;span class="kwd"&gt;else&lt;/span&gt;
&lt;b id="56"&gt;56   &lt;/b&gt;                            {&lt;br /&gt;&lt;b id="57"&gt;57   &lt;/b&gt;                                ddlUser_Tipe.SelectedIndex += 1;&lt;br /&gt;&lt;b id="58"&gt;58   &lt;/b&gt;                            }&lt;br /&gt;&lt;b id="59"&gt;59   &lt;/b&gt;                        }&lt;br /&gt;&lt;b id="60"&gt;60   &lt;/b&gt;                        txtRegister_Date.Text = ((DateTime)dr.GetValue(5)).ToString(&lt;span class="st"&gt;&amp;quot;dd/MM/yyyy&amp;quot;&lt;/span&gt;);&lt;br /&gt;&lt;b id="61"&gt;61   &lt;/b&gt;                        txtUser.Text = dr.GetString(6);&lt;br /&gt;&lt;b id="62"&gt;62   &lt;/b&gt;                        txtPassword.Text = dr.GetString(7);&lt;br /&gt;&lt;b id="63"&gt;63   &lt;/b&gt;                    }&lt;br /&gt;&lt;b id="64"&gt;64   &lt;/b&gt;                }&lt;br /&gt;&lt;b id="65"&gt;65   &lt;/b&gt;            cn.Close();&lt;br /&gt;&lt;b id="66"&gt;66   &lt;/b&gt;        }&lt;br /&gt;&lt;b id="67"&gt;67   &lt;/b&gt;    }&lt;br /&gt;&lt;b id="68"&gt;68   &lt;/b&gt;    &lt;span class="kwd"&gt;protected void&lt;/span&gt; Page_Load(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;&lt;b id="69"&gt;69   &lt;/b&gt;    {&lt;br /&gt;&lt;b id="70"&gt;70   &lt;/b&gt;        cn = &lt;span class="kwd"&gt;new&lt;/span&gt; SqlConnection(ConfigurationManager.ConnectionStrings[&lt;span class="st"&gt;&amp;quot;CONN&amp;quot;&lt;/span&gt;].ConnectionString);&lt;br /&gt;&lt;b id="71"&gt;71   &lt;/b&gt;        User_Id = Request.QueryString[&lt;span class="st"&gt;&amp;quot;Id&amp;quot;&lt;/span&gt;];&lt;br /&gt;&lt;b id="72"&gt;72   &lt;/b&gt;
&lt;b id="73"&gt;73   &lt;/b&gt;        Get_Data();&lt;br /&gt;&lt;b id="74"&gt;74   &lt;/b&gt;
&lt;b id="75"&gt;75   &lt;/b&gt;    }&lt;br /&gt;&lt;b id="76"&gt;76   &lt;/b&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;thanks in advanced. &lt;i&gt;Carlos&lt;/i&gt;&lt;/p&gt;</description></item><item><title>Calling Java web service with C#</title><link>http://forums.asp.net/thread/2804035.aspx</link><pubDate>Fri, 12 Dec 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2804035</guid><dc:creator>akhilkumars</dc:creator><description>
hi  friends..

I would like to use a java web service in my c# application. when the java webservice returns a string it is available in the c# or j# application but when it returns an arraylist it is not available. i need a result set from web service. I iterate through result set and append the content to arraylist. But when I returns the arraylist it is not available in c#. I think it is because in c# arraylist does not implement ISerialisable interface but in java it does. so How can i get the array list in c# as a return type of java webservice
</description></item><item><title>Visual Studio does not compile includes that use context variables.</title><link>http://forums.asp.net/thread/2594712.aspx</link><pubDate>Tue, 02 Sep 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2594712</guid><dc:creator>gromag</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi all, &lt;/p&gt;&lt;p&gt; This is taking me 2 days now &lt;img src="http://forums.asp.net/emoticons/emotion-8.gif" alt="Indifferent" /&gt;, I&amp;#39;ve searched this and several other forums but I cannot find any significant help. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;ve got an ASP.NET project which I&amp;#39;m trying to import into Visual Studio 2008. &lt;/p&gt;&lt;p&gt;The project was developed in the open source &amp;quot;#Develop&amp;quot; IDE and it compiles fine there. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I imported all files by following &amp;#39;&lt;i&gt;File\Open\Web site&lt;/i&gt;&amp;#39; in Visual Studio and this was fine.&lt;/p&gt;&lt;p&gt;When I compile, though, I get several errors all like the following:&lt;/p&gt;&lt;p&gt;&lt;i&gt;&amp;nbsp;Error&amp;nbsp;&amp;nbsp; &amp;nbsp;8&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#39;ASP.partials_client_partial_include_aspx&amp;#39; &lt;b&gt;does not contain a definition for&lt;/b&gt; &amp;#39;name_appendix&amp;#39;&amp;nbsp;&amp;nbsp; &lt;/i&gt;&lt;/p&gt;&lt;p&gt;The variable &amp;#39;&lt;i&gt;name_appendix&lt;/i&gt;&amp;#39; is declared in the aspx file that includes &lt;i&gt;client_partial_include_aspx&lt;/i&gt;. Visual Studio is trying to compile these includes without considering the context they are in.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I know that user controls would have served better the purpose, and I swear, if I could go back I would use them instead! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;...But now I&amp;#39;m stuck with 221 errors and several dozen of includes. &lt;img src="http://forums.asp.net/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I hope somebody can help. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Many thanks,&lt;/p&gt;&lt;p&gt;Giuseppe &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>