cannot expand

jagguy
jagguy used Ask the Experts™
on
my panel collapses and expands on my computer but I uploaded to  this website and it doesnt ?

I dont know why my local PC works and the website doesnt as they say it is my paths but I cant see it
http://208.81.130.41/$sitepreview/mrt.com/master7/home.aspx
<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender2" runat="server"
                TargetControlID="Panel4" 
        ExpandControlID ="Panel3" 
         CollapseControlID ="Panel3"
          Collapsed ="true" 
        AutoCollapse="false"
         TextLabelID="Lable1"
          ExpandedText ="(Hide Details....)"
         CollapsedText ="(show details)"
           SuppressPostBack ="true"
             AutoExpand="false"
        >
             
       
        </cc1:CollapsiblePanelExtender>
         <asp:Panel ID="Panel3" runat="server" CssClass ="collapsePanelHeader" 
              Width="321px">
        Yr8 News.....(click)
    </asp:Panel>
    <asp:Panel ID="Panel4" runat="server"  CssClass ="collapsePanel" Width="331px">
        <asp:Label ID="Label2" runat="server" Text="Label"> </asp:Label>
       <asp:HyperLink ID="HyperLink2" runat="server">HyperLink</asp:HyperLink>
    
     
    </asp:Panel>
       

   Dim totalrecords As Integer

        Dim da As New SqlDataAdapter

        Dim command As SqlCommand
        command = New SqlCommand
    



        command.Connection = Myconn

     

        command.CommandText = " select top 6 t.news" & _
                 "   from (select *, row_number() " & _
                 " over(partition by year order by date desc) as rown from news) t" & _
                " where(rown = 1) "

        da.SelectCommand = command

        da.Fill(ds, "news")

        Label4.Text = ds.Tables(0).Rows(0).Item(0)
        Label5.Text = ds.Tables(0).Rows(1).Item(0)
        Label6.Text = ds.Tables(0).Rows(2).Item(0)
        Label1.Text = ds.Tables(0).Rows(3).Item(0)
        Label2.Text = ds.Tables(0).Rows(4).Item(0)
        Label3.Text = ds.Tables(0).Rows(5).Item(0)

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Are you building for ASP.Net framework 3.5 on local? and the remote is only 2.0?

This is an Ajax component, which is included in 3.5, but for 2.0 the Ajax control toolkit would need to be installed.

Commented:
hey jagguy,
Are you still having problem.
What is the Asp.net version that is available in the hosted site.

Thanks and regards,
venki

Author

Commented:
I am not sure but I will find out .
http://www.planetsmb.com/
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Yes speak to them. Eventhough many hosting companies advertise 3.5, they do not go back and upgrade many of the existing servers (I found this annoyance myself).
By the way - if that is the case, then you can still use many of the Ajax controls, you have to download Ajax Control Toolkit for 2.0 (http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=11121)

The Ajax Control Toolkit main page is here (which provides the link above) -> http://www.asp.net/ajax/AjaxControlToolkit/Samples/

Then you need to make sure you have entries in your web.config to reference the Ajax Toolkit assemblies. (google 'ajax control toolkit 2.0 web.config').

Author

Commented:
I have no idea because I dont touch JS? Got sent this message

We have both ASP.NET 2.0 and 3.5.  Your site is configured to use both at the current time.

When we have seen these issues in the past it is typically path related.

When reviewing your page a javascript error is displaying:

'Sys' is undefined

Searching for this error indicates that your web.config is not properly configured.

I would recommend doing a search for this error ('Sys' is undefined asp.net ajax) to gain insight on resolving the issue.
If that is the case check your web.config out and make sure it has all the entries, if you choose the create an 'Ajax enabled web site' template  in VIsual Studio it should have put them in for you.

It should have settings as per: http://www.asp.net/AJAX/documentation/live/ConfiguringASPNETAJAX.aspx

Author

Commented:
how come it works on my PC?

<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
	<configSections>
		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
				<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
				<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
					<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
					<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
					<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
					<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
				</sectionGroup>
			</sectionGroup>
		</sectionGroup>
	</configSections>
	<appSettings/>
	<connectionStrings>
		<add name="test1ConnectionString" connectionString="Data Source=JAGGUY2-1PD810A\SQLEXPRESS;Initial Catalog=test1;Persist Security Info=True;User ID=jagguy4;Password=mexican" providerName="System.Data.SqlClient"/>
	</connectionStrings>
	<system.web>
		<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions 
            where data loss can occur. 
            Set explicit="true" to force declaration of all variables.
        -->
		<compilation debug="true" strict="false" explicit="true">
			<assemblies>
				<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
				<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
		</compilation>
		<pages>
			<namespaces>
				<clear/>
				<add namespace="System"/>
				<add namespace="System.Collections"/>
				<add namespace="System.Collections.Generic"/>
				<add namespace="System.Collections.Specialized"/>
				<add namespace="System.Configuration"/>
				<add namespace="System.Text"/>
				<add namespace="System.Text.RegularExpressions"/>
				<add namespace="System.Linq"/>
				<add namespace="System.Xml.Linq"/>
				<add namespace="System.Web"/>
				<add namespace="System.Web.Caching"/>
				<add namespace="System.Web.SessionState"/>
				<add namespace="System.Web.Security"/>
				<add namespace="System.Web.Profile"/>
				<add namespace="System.Web.UI"/>
				<add namespace="System.Web.UI.WebControls"/>
				<add namespace="System.Web.UI.WebControls.WebParts"/>
				<add namespace="System.Web.UI.HtmlControls"/>
			</namespaces>
			<controls>
				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
				<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			</controls>
		</pages>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
	
		<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
		<httpHandlers>
			<remove verb="*" path="*.asmx"/>
			<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
		</httpHandlers>
		<httpModules>
			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		</httpModules>
	</system.web>
	<system.codedom>
		<compilers>
			<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
				<providerOption name="CompilerVersion" value="v3.5"/>
				<providerOption name="WarnAsError" value="false"/>
			</compiler>
			<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
				<providerOption name="CompilerVersion" value="v3.5"/>
				<providerOption name="OptionInfer" value="true"/>
				<providerOption name="WarnAsError" value="false"/>
			</compiler>
		</compilers>
	</system.codedom>
	<!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
	<system.webServer>
		<validation validateIntegratedModeConfiguration="false"/>
		<modules>
			<remove name="ScriptModule"/>
			<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		</modules>
		<handlers>
			<remove name="WebServiceHandlerFactory-Integrated"/>
			<remove name="ScriptHandlerFactory"/>
			<remove name="ScriptHandlerFactoryAppServices"/>
			<remove name="ScriptResource"/>
			<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		</handlers>
	</system.webServer>
	<runtime>
		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
			<dependentAssembly>
				<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
				<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
			</dependentAssembly>
			<dependentAssembly>
				<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
				<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
			</dependentAssembly>
		</assemblyBinding>
	</runtime>
</configuration>

Open in new window

There are a bunch of includes on your page - which you shouldnt need if you have everything in your web.config:

<script src="/WebResource.axd?d=FWq75rcYJO9RSBeQjoD77A2&amp;t=633834051844060961" type="text/javascript"></script>


<script src="/ScriptResource.axd?d=gXHEJAqUUnXVtTlxRDkmFs0dbY4Y7PCRGx7pAa1RAD2RwjXMvE713L0mmQx2PkUabuk0H3GF-xd8aWA8TirkhdeQsKfDpawcUcs8xuP2ne01&amp;t=ffffffffdb2d990b" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=gXHEJAqUUnXVtTlxRDkmFs0dbY4Y7PCRGx7pAa1RAD2RwjXMvE713L0mmQx2PkUaRdpH79EkxY6NPLS1szBSkIhZ7xqQxYOdV8yZb7ec1pA1&amp;t=ffffffffdb2d990b" type="text/javascript"></script>

<script src="/ScriptResource.axd?d=M3B9D2ohD34TamPaVbY6CuTcygYuu5cA_acYJULLxV_tZMD9yj6kCk37tgEvRuLEmv331m4kCUsXAkGhPlAa8g2&amp;t=384f9958" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=M3B9D2ohD34TamPaVbY6CuTcygYuu5cA_acYJULLxV-fOFojzg3TsjjGk9kOHh-3TBt6hn1AGIyM3lmBhFfHpA2&amp;t=384f9958" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=M3B9D2ohD34TamPaVbY6CuTcygYuu5cA_acYJULLxV9ljiHbLncQt8PTlU8zsK1zt5cxcqpLIvCme5b7tLsAIg2&amp;t=384f9958" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=M3B9D2ohD34TamPaVbY6CuTcygYuu5cA_acYJULLxV-rUnAu1flTVwRohPQ9QEvwvafhEjnD5j-TT8OwlEOuSb0gN_aGfvByjdcmn5JYW9g1&amp;t=384f9958" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=M3B9D2ohD34TamPaVbY6CuTcygYuu5cA_acYJULLxV_hI5LxWxWApIMgdukzE11avVTJ7aSQp-EQ4dAWJW5Knht55xNg1-swSXn8tAAYs7Qq8QgPruHu50ndwWskdF4n0&amp;t=384f9958" type="text/javascript"></script>


Maybe try removing them, as they are not available on the server (I see errors -> Failed to load source for: http://208.81.130.41/WebResource.axd?d=FWq75rcYJO9RSBeQjoD77A2&t=633834051844060961) etc

Author

Commented:
OK I am confused again
I sent my file and so do I need to remove entries or add entries.
what should my web config look like?
Ah ok, I meant remove the entries from your aspx file. The web.config looks okay - although there can be problems if the version numbers used in the config dont match what is on the server, but if they are running standard 3.5 as you are on your local machine it should be ok, but one thing at a time and those references in the aspx file are not being found on the remote server.

So remove them from 'home.aspx', unless they are in a master page and see if it still works locally, if so try it on the remote machine.

Author

Commented:
where in my home.aspx file are these entries as I only uploaded web config ?
this is my problem . My web host says my web config is wrong and you say my home.aspx files have wrong entries. In my home.aspx file these entries are not there as you mentioned?

Commented:
Hi,
This Sys is undefined’ error most likely occurs because the actual Javascript functions which power AJAX are inaccessbile to your .aspx pages for some reason.

See if the following article helps you
http://www.akamarketing.com/blog/296-aspnet-ajax-35-error-sys-is-undefined-workaround.html

http://www.dotnetspider.com/resources/3129-Sys-undefined-ASP-NET-AJAX.aspx

Thanks and regards,
Venki

Author

Commented:
i have vs2008 and .net 3.5 so I have am not upgrading from .net 2.0 and the other link asks to look at IIS log files which I dont have access to on the web host.

I am still mo closer to solving the problem.
Ok, tell your hosting company you have used the web.config as generated by Visual Studio for Ajax Enabled Web sites - Framework 3.5, and if they can provide you with a sample web config which works on thier server.

If you view source on your web page you will see all these resource entries like (<script src="/WebResource.axd?d=FWq75rcYJO9RSBeQjoD77A2&amp;t=633834051844060961" type="text/javascript"></script>)

Basically you can tell them WebResource.axd ScriptResource.axd scripts are not found when you upload to the server, so it looks like the entries for these must be wrong in your web.config when running on their system.

Commented:
are you sure that current versions of the references are there in the hosting server.

Thanks and regards,
venki

Author

Commented:
I have told my web host I checked a few links but cant solve the issue .
They are convinced it is my web config but I havent heard back from them.

All I know is the the web host us configured for 3.5 .net

these entries get added at run time so I dont know how to alter these from my end buy I will wait to see what they say. I have complained enough.

<script src="/WebResource.axd?d=FWq75rcYJO9RSBeQjoD77A2&amp;t=633834051844060961" type="text/javascript"></script>)

Author

Commented:
they solved it.

> I found the issue.  Your directory master7 was not setup as its own ASP.NET application.  As a result, the application was looking to the root for the web.config.  Setting this up as an application resolved the issue.

Commented:
hey jagguy,
it's good to see that the problem got solved.

Thanks and regards,
Venki
Good glad you got it sorted. So it was the configuratin on thier side that was the problem, as I guess you don't have control over it.
Congrats on getting it resolved :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial