Showing posts with label following. Show all posts
Showing posts with label following. Show all posts

Wednesday, March 28, 2012

Virtual Earth v4/ASP.NET AJAX v1.0 Beta 2 Bug

Hi All,

I ran into a bug with the Virtual Earth v4/ASP.NET AJAX v1.0 Beta 2 combination in which I receive the following error:

Sys.InvalidOperationException: Object Microsoft already exists and is not a namespace.

The following is a simple reproducible case. I would really appreciate it if someone from Microsoft could confirm that they are aware of this bug and provide status.

I have also posted this message in the Virtual Earth forum in reply to SpeedOfSPin's post(http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=897625&SiteID=1) regarding this bug as I am not sure in which team's product the issue resides.

This is not an issue if I revert back to using Virtual Earth v3 but obviously I would prefer to be able to make use of v4.

1<%@dotnet.itags.org. Page Language="C#" %>23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
45<script runat="server">
67</script>
89<html xmlns="http://www.w3.org/1999/xhtml">
10<head id="Head1" runat="server">
11 <title>Virtual Earth v4/ASP.NET AJAX v1.0 Beta 2 Bug</title>
12 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1314 <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script>
1516 <script type="text/javascript">
17 function pageLoad()
18 {
19 var map = new VEMap('map');
20 map.LoadMap();
21 }
22 </script>
2324</head>
25<body>
26 <form id="form1" runat="server">
27 <asp:ScriptManager ID="ScriptManager1" runat="server">
28 </asp:ScriptManager>
29 <div id="map" style="position: relative">
30 </div>
31 </form>
32</body>
33</html>
34
Thanks a lot,I'm also having this issue. Has anyone found a work around?
Anyone? MSFT?

I'm struggling with this as well. Here's another thread regarding the issue:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=897625&SiteID=1

I hope this gets resolved soon.


Monday, March 26, 2012

Visual Studio doesnt recognize(see) ATLAS from LAN!

When I try to open a website from server(LAN) I get following error within VS 2005:

Error 1 Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site. ...

but the site works properly anyway... This error just annoys me, I can't see any Intellisence code for atlas components...

I have installed VS on server and installed Atlas components there too. VS shows Atlas tags properly when I launch VS from server, but doesn't do that when I try to open the same project from another computer.

The other computer has installed VS 2005 too...

Can anyone answer how to solve this?

hello.

i think this has been reported here...if i'm not mistaken, it only works without any problems when you open a local project.

Void System.Web.UI.ScriptManager.RegisterHiddenField(System.Web.UI.Page, System.String, Sy

It code worked fine on my PC..but gettting following message on server...

'Void System.Web.UI.ScriptManager.RegisterHiddenField(System.Web.UI.Page, System.String, System.String)'

i checked this threadhttp://forums.asp.net/p/1123792/1869084.aspx#1869084

but it doesn't help me...

Updating global assembly cache of server, solved this error

Some how installation is not updating GAC..so you have to do it manually


Hi,

I have the exact same problem. Can you please tell me how you were able to clear out the GAC and update it with the latest DLL? Just like you everything works on my PC but when it gets published to servers i get that same error.

Thanks,
Kam


just copy the following DLL's fromC:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025 and paste it in folderc:\windows\assembly on server

System.Web.Extensions

System.Web.Extensions.Design

Hope it solves your problem, if not let me know


Hi,

Yup that fixed it perfectly. Thanks so much for the quick and accurate reply.

Kam

VS2005SP1 Supports ASP.NET AJAX or NOT

Hello ,

I visited the following link which describes that vs2005sp1 supports asp.net ajax,

http://blogs.msdn.com/brada/archive/2006/12/21/asp-net-ajax-support-in-visual-web-developer-sp1.aspx

My question is which version of asp.net ajax will vs2005sp1 supports and means asp.net ajax beta or asp.net ajax rc1, which or the final version.

Because the final version of asp.net ajax is not released yet so when the final version will relaes then we have to re install it again or there is no need to reinstall it when final version will be relaesed.

Byeee and TC

it will support with all ajax version. of course use latest one version ~

In the SP1 fix , it didnt do any change related to AJAX

For the AJAX version issue, there is no answer with it. I assume in the final AJAX version you will have to remove RC1 frist....just like old day


That is ok with ASP.NET AJAX RC , that is if i have installed RC then after the release of final version i have to install it but wht abt VS2005SP1 if i'll install VS2005SP1 then is there any need to install the final version of ajax, caz VS2005SP1 supports ASP.NET AJAX ?????/??

Byee and TC


both items are not really related....

VS2005 SP1 dont do much fix on library..mainly on its security and bugs..you can look microsoft site for whats in the fix.

For AJAX library...its really just the code and package. even without SP1 it will still support AJAX final release.


OK,

Thankx for reply,

Byee and TC

Saturday, March 24, 2012

Warnings at web server side

Hello,

Log of IIS 5.0 under Win 2000 Server contains the following warnings relating to PreRender of the AJAX ScriptManager:

"Exception information:
Exception type: InvalidOperationException
Exception message: Partial rendering requires a browser that supports W3C DOM Level 1.0.

Thread information:
Thread ID: 11
Thread account name: WEBSERVERA\ASPNET
Is impersonating: False
Stack trace: at Microsoft.Web.UI.ScriptManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
"

Do you have an idea what the users see in their browsers in this case? Or please give me a hint which browser I should use to test this (I think it should be a really old one)

Regards,

Di.

Hi Di,

You are right about the browser being old. For AJAX to work the browser should support XMLHttp Object.

On your pages you can run a client script which would check for this object and display a browser compatibility issue than waiting for the page to be sent to the server.

Check this link on how to check for the object in different browsers.

http://www.w3schools.com/dom/dom_http.asp

Happy programming,
Anton


Hi Anton,

Thanks for the info.

But I still want to find out what users see in their browser in the case of such warnings. How does it affect their work with the web site...

Regards,

D.


I like your enthusiasm. You can download Multiple IE fromhttp://tredosoft.com/

which has simulator from IE 3.0 onwards.

You can also download older version of Netscape fromhttp://browser.netscape.com/ns8/download/archive.jsp

but they dont have all versions but start from 4.7 onwards

Happy programming,

Anton


Thanks. Will check 'em.

Watermark and Popup Calendar issue

David, I download the lastest toolkit, and try the following code in aspx page. It is OK. But when I put it into a user control. It won't work!

The error is caused by code when clicked on popup calender:
var mydate = $("TextBox1").mydate;
The error message is Object is required

<%@dotnet.itags.org. Page Language="VB" AutoEventWireup="false" CodeFile="test2.aspx.vb" Inherits="test2" %>
<%@dotnet.itags.org. Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="atlasToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" />
<div>
<script type="text/javascript" language="javascript">
function commitScript1() {

var mydate = $("TextBox1").mydate;
if("" == mydate) {
mydate = "";
}
$object("TextBoxWatermarkBehavior_TextBox1").set_Text(mydate);
}
</script>
<asp:TextBox ID="TextBox1" runat="server" Width="150"></asp:TextBox>
<asp:Panel ID="Panel4" runat="server" CssClass="popupControl">
<atlas:UpdatePanel ID="UpdatePanel6" runat="server" Mode="Conditional" RenderMode="Block">
<ContentTemplate>
<center>
<asp:Calendar ID="Calendar3" runat="server" BackColor="White" BorderColor="#999999"
CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" Width="160px" OnSelectionChanged="Calendar3_SelectionChanged">
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<OtherMonthDayStyle ForeColor="#808080" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
</center>
</ContentTemplate>
</atlas:UpdatePanel>
</asp:Panel>
<atlasToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server">
<atlasToolkit:TextBoxWatermarkProperties TargetControlID="TextBox1" WatermarkCssClass="watermarked"
WatermarkText="<DD/MM/YYYY>" ID="TextBoxWatermarkBehavior" />
</atlasToolkit:TextBoxWatermarkExtender>
<atlasToolkit:PopupControlExtender ID="PopupControlExtender3" runat="server">
<atlasToolkit:PopupControlProperties TargetControlID="TextBox1" PopupControlID="Panel4"
Position="Bottom" ID="PopControlBehavior1" CommitProperty="mydate" CommitScript="commitScript1()" />
</atlasToolkit:PopupControlExtender> </div>
</form>
</body>
</html
CodeFile:
Partial Class test2
Inherits System.Web.UI.Page
Protected Sub Calendar3_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs)
PopupControlExtender3.Commit(Calendar3.SelectedDate.ToShortDateString())
Calendar3.SelectedDate = Nothing
End Sub
End ClassI believe this thread addresses the issue you're seeing (hard-coded ID changed by inclusion in a different naming container):http://forums.asp.net/thread/1368445.aspx

Wednesday, March 21, 2012

Web page and User control

Good morning ladies and gents. I need a help with the following scenario:
I have a web page and two user controls.
a web page(ASPX) namedWebPage.aspx
a user control(ASCX) namedUserControl1.ascx
a user control(ASCX) namedUserControl2.ascx

TheWebPage.aspx has a user controlUserControl1.ascx bind to it and then user UserControl1.ascx hasUserControl2.ascx in it.(See below)
InsideUserControl2.ascx page a have a TabContainer control namedTabs. It has a methodOnClientActiveTabChanged="ActiveTabChanged".
ActiveTabChangedis JavaScript function (see below) inside aUserControl2.ascx

function ActiveTabChanged (sender, e)
{
__doPostBack('<%= Tabs.ClientID %>',sender.get_activeTab().get_headerText());
}
So basically when you switch from one TabPanel to another it should do a post back.
My problem is that Java Script function not getting triggered; it is only fires when I put it intoUserControl1.aspx but now facing a problem like "Tabs"control not exist onUserControl1.aspx .

My question is: How can I executeActiveTabChanged function to get a post back?

Thank you for your help.

Are you sure the real Tab.ClientId is written into the client code. You might want to compare what it is actually writting (you can do this with the source view on IE).


Yes, i did compare what's in the view source and it looks fine to me.

Thanks for reply