<?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>Configuration and Deployment</title><link>http://forums.asp.net/26.aspx</link><description>Configuring and deploying ASP.NET applications - web.config, \bin, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Compile Error In Temp cs file - NEW Question</title><link>http://forums.asp.net/thread/2661623.aspx</link><pubDate>Fri, 03 Oct 2008 15:17:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2661623</guid><dc:creator>TATWORTH</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2661623.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2661623</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You would be better to mark this thread ans answered and open a new one for your new question!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Compile Error In Temp cs file - NEW Question</title><link>http://forums.asp.net/thread/2661556.aspx</link><pubDate>Fri, 03 Oct 2008 14:47:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2661556</guid><dc:creator>Annette08</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2661556.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2661556</wfw:commentRss><description>&lt;p&gt;Thank you for your help!&amp;nbsp;&lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;
&lt;p&gt;I did try clearing out the temp files but found that there were extra brackets in my code that caused the complier to interpret my code in this manner.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Maybe you can help me with something else.&amp;nbsp; I have been trying for days to make my graphic file that is stored in my database view in a viewer control.&amp;nbsp; The viewer control is written in java script.&lt;/p&gt;
&lt;p&gt;My application processes a query and the results show up in a gridview control.&lt;/p&gt;
&lt;p&gt;When a user selects one of the records in the gridview control, I want the contents of my &amp;quot;dwg image&amp;quot; file to display in the viewer window.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have the application working to the point that I can pull a &amp;quot;dwg image&amp;quot; file through a file input control and display it in the viewer.&amp;nbsp; Now I just need it to work with the gridview control. I&amp;#39;m coding is C#.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the java script for a ViewDrawing button event handler.&amp;nbsp; I want to do this when I select a record in the gridview.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;clientEventHandlersJS&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;language&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; ViewDrawing_onclick() &lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;font size="2"&gt; filepath = document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;txtDwgFilePath&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;font size="2"&gt; dwgViewerCtrl= document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;dwgViewerCtrl&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;dwgViewerCtrl.PutSourcePath(filepath.value)&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is how far I got on my selected index changed event.&amp;nbsp; I&amp;#39;m getting an error when I&amp;nbsp;use&amp;nbsp;&amp;quot;dt&amp;quot;&amp;nbsp;.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; GridView1_SelectedIndexChanged1(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;EventArgs&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;System.Data.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;DataTable&lt;/font&gt;&lt;font size="2"&gt; dt = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; System.Data.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;DataTable&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; GridView1_SelectedIndexChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;EventArgs&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Control&lt;/font&gt;&lt;font size="2"&gt; DWGControl = FindControl(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;dwgViewerCtrl&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;font size="2"&gt; (System.Data.SqlClient.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;SqlConnection&lt;/font&gt;&lt;font size="2"&gt; myConnection = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; System.Data.SqlClient.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;SqlConnection&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;ConfigurationManager&lt;/font&gt;&lt;font size="2"&gt;.ConnectionStrings[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;DetailsDBFConnectionString3&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;].ConnectionString))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;System.Data.SqlClient.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;SqlCommand&lt;/font&gt;&lt;font size="2"&gt; command = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; System.Data.SqlClient.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;SqlCommand&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;SELECT detail_ID, detail_dwg from [Detail_info]&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, myConnection);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;System.Data.SqlClient.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;SqlDataAdapter&lt;/font&gt;&lt;font size="2"&gt; ada = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; System.Data.SqlClient.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;SqlDataAdapter&lt;/font&gt;&lt;font size="2"&gt;(command);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;ada.Fill(dt);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Compile Error In Temp cs file</title><link>http://forums.asp.net/thread/2661508.aspx</link><pubDate>Fri, 03 Oct 2008 14:28:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2661508</guid><dc:creator>Annette08</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2661508.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2661508</wfw:commentRss><description>&lt;p&gt;thank you for your help.&amp;nbsp;&lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt;&amp;nbsp; I found that there were extra brackets on my page which caused the compiler to interpret the code in this manner.&amp;nbsp; It&amp;#39;s strange that the error wasn&amp;#39;t red marked before the page was built.&lt;/p&gt;</description></item><item><title>Re: Compile Error In Temp cs file</title><link>http://forums.asp.net/thread/2660909.aspx</link><pubDate>Fri, 03 Oct 2008 09:13:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2660909</guid><dc:creator>TATWORTH</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2660909.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2660909</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The solution that I have found to this is:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Re-boot the PC&lt;/li&gt;&lt;li&gt;Clear out &lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;You may also need to clear out C:\Documents and Settings\[USERNAME]\Local Settings\Temp&lt;br /&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;</description></item><item><title>Re: Compile Error In Temp cs file</title><link>http://forums.asp.net/thread/2658488.aspx</link><pubDate>Thu, 02 Oct 2008 06:34:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2658488</guid><dc:creator>ankit.sri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2658488.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2658488</wfw:commentRss><description>&lt;p&gt;What is the return Type of your Method &lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;pre&gt;&lt;font color="red"&gt;public ma_catalog_aspx()  &lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;There should be a Type definition of this Method either a Void type if you dont want to return any value like below:&lt;/pre&gt;&lt;pre&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;pre&gt;&lt;font color="red"&gt;public void ma_catalog_aspx() {&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;//Put your code here&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;}&amp;nbsp;&lt;/pre&gt;&lt;/font&gt; Let me know if this works&lt;/pre&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Compile Error In Temp cs file</title><link>http://forums.asp.net/thread/2658038.aspx</link><pubDate>Wed, 01 Oct 2008 22:31:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2658038</guid><dc:creator>Annette08</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2658038.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2658038</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I don&amp;#39;t understand why I&amp;#39;m getting this error.&amp;nbsp; This page has been able to build numerous times without this problem.&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;
&lt;h1&gt;Server Error in &amp;#39;/MA-Test&amp;#39; Application. 
&lt;hr /&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;i&gt;Compilation Error&lt;/i&gt; &lt;/h2&gt;
&lt;p&gt;&lt;/span&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Compiler Error Message: &lt;/b&gt;CS1518: Expected class, delegate, enum, interface, or struct&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
&lt;table class="" bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=""&gt;&lt;code&gt;&lt;pre&gt;Line 298:        
Line 299:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
&lt;font color="red"&gt;Line 300:        public ma_catalog_aspx() {
&lt;/font&gt;Line 301:            string[] dependencies;
Line 302:            ((global::System.Web.UI.Page)(this)).AppRelativeVirtualPath = &amp;quot;~/MA_Catalog.aspx&amp;quot;;&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;&lt;font face="Verdana"&gt;Source File:&lt;/font&gt;&lt;/b&gt; c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ma-test\d549fadb\ebd380fd\App_Web_ma_catalog.aspx.cdcab7d2.dk94kct3.0.cs &amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;font face="Verdana"&gt;Line:&lt;/font&gt;&lt;/b&gt; 300 &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>