Showing posts with label toolkit. Show all posts
Showing posts with label toolkit. Show all posts

Saturday, March 24, 2012

Atlas Toolkit WEB Server Deployment Issue

Hi,

Not sure if I am heading down the right track here (could be a totally unrelated issue) but hoping someone can put me on the right path.. Following are the steps I have taken...
developed a web app on my local machine using Atlas.NET and the Atlas toolkit that has been made available, using the VS.NET 2005 dev environment.on local machine using the built in web server that is packaged with Visual Studio, my app works fine.I have copied the app to a web server, ran the AtlasSetup.msi on the server (server does not have VS.NET 2005 installed on it - just on my machine).Open the app from the server from my local machine (using the locally installed VS.NET 2005) and get issues relating to the Atlas control toolkit - such as Element 'modalpopupextender' is not a known element. This is a standard accross all the toolkit elements I have used.
This is where I am stuck. I thought I would have to install something from the toolkit on the server but cannot find anything on this (I have looked) but it all seems geared around enablement within VS.NET 2005.

Does anyone know how to have my application recognise the toolkit components I have used or are these issues caused by something completelky different.

Thanks....I think you also need to be sure that AtlasControlToolkit.dll and Microsoft.AtlasControlExtender.dll from the Atlas Control Toolkit (SampleWebSite\bin) are present in your web server's bin directory along with Microsoft.Web.Atlas.dll.
Thanks for the response David. Unfortunately I dont think that is it as these files are already present on the WEB server (in the BIN directory). Im sure its something simple I am not doing but as yet nothing is coming to mind (I am new to a lot of this stuff so thats not surprising). Any other ideas?
You could try using VS 2005's "Publish Web Site" to publish your site to the web server in a different location - if that works (and it should since it works for you with VS 2005!), then maybe that'll help you identify the problem with the original location?
Thanks again David.. Did the trick (well, sort of).. Not getting the errors now but part of the application connects to an Oracle database and am gettingaSystem.Data.OracleClient.OracleException: ORA-12541: TNS:no listener. This came after sorting out an issue related to the security on the Ora92 folder on the server - fixed that through some guidance from various forums but are now stuck with this TNS No listener issue..

This is quite strange (to me anyway) as I can log onto the server where the application is installed and connect to Oracle through Sql+ (using the same credentials as used in my application). I also can run the application on my local machine without any issues so I know my connect details are OK. So although the error sounds a bit like a red herring, we are trying to pinpoint any issues with the Oracle software on the server? A bit lost..

Anyways - thanks again, you have been a big help...

Atlas Toolkit Use

Do you i need to create a new atlas project to be able to use the atlas controls or can i just add a dll or something and use them in my existing projects?Add the dlls as reference to your project, modify your web.config to include those entries as included with the sample site web.config included with the Atlas download. Then just make sure you do the proper reference for your apsx or ascx and likewise for you code files (see one of the example pages for the declaratives / syntax...

Atlas toolkit Rating Demonstration

What a great extention for the toolkit. I am going to use it in my logs and polls. I took some time and created several other graphics for the rating and with a few modification of the css file was able to get them to look farely nice. I made three new ones for now: Baskeball, baseball, and hearts. Go to my blog at

http://fitness1st.net/blog to download the files.

The sample fit into the toolkit sample web. Replace the image folder, Ratings folder, and the StyleSheet.css and it should work fine. I did not re-implement the hotness rating however.

Thanks for such a fun tool.

T

Thanks !

Can I add you 3 nice samples in Toolkit Sample ?


Yes you may use them.


I am having difficulting with changing the CurrentRating above 5, when I also change the MaxRating to above 5. Is this a bug?

I have created a Physical Activity Calculator which I am going to turn into a physical activity log/journal when I am done. The ap is just a shell at the moment, but you will get the idea of how I am using the rating scale as a slider. I wish we had a slider in the toolkit. Well anyway...

http://fitness1st.net/fitlog/log/default.aspx

Enjoy!

Please let me know about the error

ATLAS ToolKit problem

Hi,

I am using watermark textbox in my application but it gives javascript error while execution.

What should be the problem ?

Please help me.

Thank You,
Bhavin Gajjar

I give you an example about how to use watermark textbox.Wish this will help you.You can post your javascript error messages and your code here.I suggest you to do web application development using asp.net 2.0.There are many new features in asp.net which are convenient to do WAD.

<atlas:ScriptManager id="ScriptManager1" EnablePartialRendering="true" runat="Server"></atlas:ScriptManager>

<atlas:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
First name:
<asp:TextBox ID="TextBox1" CssClass="unwatermarked" Width="150" runat="server"></asp:TextBox>
<br />
Last name:
<asp:TextBox ID="TextBox2" CssClass="unwatermarked" Width="150" runat="server"></asp:TextBox>
<br />
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" />
<br />
<br />
<asp:Label ID="Label1" runat="server"></asp:Label>
</ContentTemplate>
</atlas:UpdatePanel>

<atlasToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server">
<atlasToolkit:TextBoxWatermarkProperties TargetControlID="TextBox1" WatermarkText="Type First Name Here" WatermarkCssClass="watermarked" />
<atlasToolkit:TextBoxWatermarkProperties TargetControlID="TextBox2" WatermarkText="Type Last Name Here" WatermarkCssClass="watermarked" />
</atlasToolkit:TextBoxWatermarkExtender>


Hi,

Thank you for update still not get solution.

Below is HTML script.

<%@.PageLanguage="C#"AutoEventWireup="true"CodeFile="PostTopic.aspx.cs"ValidateRequest="false"Inherits="PostTopic" %>
<%@.RegisterAssembly="AtlasControlToolkit"Namespace="AtlasControlToolkit"TagPrefix="cc1" %>
<%@.RegisterAssembly="FredCK.FCKeditorV2"Namespace="FredCK.FCKeditorV2"TagPrefix="FCKeditorV2" %>
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headrunat="server">
<title>Demo Water mark</title><linkhref="StyleSheet.css"rel="stylesheet"type="text/css"/>
</head>

<body><formid="form1"runat="server"><div>

<atlas:ScriptManagerID="ScriptManager1"EnablePartialRendering="true"runat="server"></atlas:ScriptManager>

<tableborder=0align=centerwidth="80%"cellpadding=0cellspacing=0><tbody><tr><td>

Topic Heading :

<atlas:UpdatePanelID="UpdatePanel1"runat="server">
<ContentTemplate>
<asp:TextBoxID="TextBox1"CssClass="unwatermarked"runat="server"></asp:TextBox>
</ContentTemplate>
</atlas:UpdatePanel>

<cc1:TextBoxWatermarkExtenderID="TextBoxWatermarkExtender1"runat="server">
<cc1:TextBoxWatermarkPropertiesTargetControlID="TextBox1"WatermarkText="Bhavin"WatermarkCssClass="watermarked"/>
</cc1:TextBoxWatermarkExtender>

</td>

</tr>

<tr>

<td>

Content : <BR>

<fckeditorv2:fckeditorid="FCKeditor2"runat="server"BasePath="FCKeditor/"></fckeditorv2:fckeditor>

</td></tr><tr><td>
<asp:ButtonID="btnSubmit"runat="server"Font-Bold="True"Text="Submit"/> <asp:ButtonID="btnCancel"runat="server"Font-Bold="True"Text="Cancel"/>
</td></tr><tr><td> </td></tr><tr><td>Topic Posted:</td></tr><tr><td><asp:LabelID="lblComment"runat="server"></asp:Label>
</td></tr></tbody></table></div></form></body>
</html>

===========

This is my code n Other things are working only script i get is " }" missing but then i tried to compile but got getting.
Next i enter text to text box n it prompt error like "Sys" is undefined.

What is wrong.

Help me.

Thank you.


Hi Bhavin,

If you're seeing "Sys" is undefined, then there's a problem loading your "Atlas" scripts. Can you get any other "Atlas" related pages in your project to work? Also, have you modified the TextboxWatermarkBehavior.js file in anyway that could cause an error?

Thanks,
Ted

Hi,

i have only 1 page in my project as i was testing ATLAS first time.

The script i sent you is what i am having on my page and i have not changed any thing in script files.

Thank you.


Hi Bhavin,

Then my guess would be that you created a regular ASP.NET site instead of an "Atlas" site which could explain why the "Atlas" scripts aren't getting loaded. Perhaps you could try creating a new project and follow along with theSetup Your Environment andUsing a Sample Extender Walkthroughs.

Thanks,
Ted

Atlas Toolkit Extender- Controls - Intellisense

hi,

I just tried the new Atlas- toolkit and it is really amazing. but one other amazing fact (beside the controls) is the intelli-sense of the extender- controls.

there is nothing included in the project (for example .xsd- files like in many other solutions) and the thing just works.

can someone please tell me how to do that in my own custom controls?

ollifant
Yeah, I would like to know how to do this as well =)

Thanks. :)

Intellisense just uses reflection, so if your markup matches your object hierarchy, you'll get this for free. If you add some magic attributes

For example:

[ParseChildren(ChildrenAsProperties =true, DefaultProperty ="SubObjects")][PersistChildren(false)]public class MyControl : Control {public bool Visible {get;set;} [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [PersistenceMode(PersistanceMode.InnerDefaultProperty)]public SubObjectCollection SubObjects {get;};}public SubObjectCollection : List {}public class SubObject {public bool Enabled {get;set};public bool Name {get;set;}}

Should give you Intellisense on:

<cc1:MyControl runat="server"><cc1:SubObject Enabled="False" Name="MyName"/></cc1:MyControl>

Thanks Shawn

This is more or less the example from the MSDN (with some typos ;), but still, it doesnt work with the intellisense, nore does it give any clue how to have more than one property that is recognised...Huh?

It has removed the stupid warnings from the IDE though; yay :D
Hi GSpies,

When you say more than one property, are you talking about more than one nested element inside the control? If that's what you're getting at then you can use[PersistenceMode(PersistenceMode.InnerProperty)] on several different properties so they all appear.

Thanks,
Ted

Atlas Toolkit Calendar

Does anyone know how to change the selected date in the calendar through client side javascript? I want to verify the date selected is today or later and if it is not then I want to reset the date in the calendar to today's date.

Thanks,

Eric

I don't think you can do that without a postback, you can put that calendar between an UpdatePanel and will look like is client side. Otherwise you may have to use another control. There are plenty on the web

I finally figured it out. The ajax toolkit calendar control, and some of the otehr controols, has a BehaviorID property which can be assigned any value I guess. I called it 'CalBehavior1'. Once that was done, I looked in the JS source file for the control in the source code of the AjaxControlToolKit. In that JS file, I saw the various methods and properties that are exposed on the client side. I have an OnClientDateSelectionChanged event handler attched to the control, so everytime the user selects a date I have some JS code that verifies the selected date is today or later. To set the date in the calender to today, I do the following:

$find(

'CalBehavior1').set_selectedDate($find('CalBehavior1').get_todaysDate());


I finally figured it out while looking at the rounded corners example in the sample website of the Ajax Control Toolkit. The Ajax Toolkit Calendar control, and some of the other controls, has a BehaviorID property which can be assigned any value I guess. I called it 'CalBehavior1'. Once that was done, I looked in the JS source file for the control in the source code of the AjaxControlToolKit. In that JS file, I saw the various methods and properties that are exposed on the client side. I have an OnClientDateSelectionChanged event handler attched to the control, so everytime the user selects a date I have some JS code that verifies the selected date is today or later. To set the date in the calender to today, I do the following:

$find('CalBehavior1').set_selectedDate($find('CalBehavior1').get_todaysDate());

Yea!!!

Eric

Atlas Toolkit

Has the atlas toolkit been updated with the latest June release?

I'm not sure what you mean, but you can download the June release here:

http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=AtlasControlToolkit


this is exactly what i was looking for, I just wasn't sure because the atlas toolkit website doesn't have the 3 new controls on it.http://atlas.asp.net/atlastoolkit/

Atlas to Ajax Control Toolkit

I have been reading the posts for Cascading Drop Down Lists for quite a few days now and trying to run the sample. However when I try to do the sample on my own I donot see the cascading drop down properties in the Behavior group of the Drop Down list. The video talks about some properties whereas the article of how to do it talks different.

Utterly confused. Also after copying the solution I can see a Method Error 500 which is not documented either. Any help would be appreciated.

Regards

Vinit

I believe the video and article (although not aware of the article - which is a gripe of mine - I hate the video tutorials as I do not watch them (not enough bandwidth and attention span - prefer just the copy and paste from articles method myself)... are based ON atlas and not the new Beta...

I have everything installed as per your directions. However I am unable to run the methods and everything seems to have changed. Not sure but after changing some namespaces I started getting the Method Error 500 and Method Error 12030. I can populate the Make drop down using the Page Method Webservice method but the other drop downs are not getting populated.

Moreover I found some post for adding the ScriptService attribute to the class which i did too but does not work :-(

Help appreciated


This usually means one of the following;

* Your method is not accessible (it's not public, it's not marked with ScriptService (class) or ScriptMethod(method))

* You've got the name of the service path wrong

* You've got the method name wrong

* The method name doesn't have the exact same parameters and parameter naming that the component is expecting


I'm having this problem, getting the Method Error 500. I have ScriptService and ScriptMethod in the proper places, my parameter names are correct, and I am calling the correct method name. Everything runs fine on my development machine, but when I copy the files over to my server it doesn't work. Is there something I should have on the server? I am reading a database using a dataset's table adapter. I have tried everything I've read on the posts. I've even tried just passing back bogus data from the method and not even reading the database, but I still get the same thing.

I did put the sample from the How do I series for the CDD and it worked fine. So why can't I even get to the web service if I can with the sample? I don't recall doing anything differently.

Please Help!


These all happen due to 500 or 12030 or both, please elaborate

I have given the physical path to my web service like this

<ajaxToolkit:CascadingDropDownID="CascadingDropDown1"

runat="server"

TargetControlID="ddlMake"

Category="Make"

PromptText="Select a manufacturer"

ServicePath="../WebSite6/Service.asmx"

ServiceMethod="GetCarMakes">

</ajaxToolkit:CascadingDropDown>

See the service path tag - Am i to give the name of the web service only? cause when i give the name, it says file not found (but it doesn't stop debugging & continue loading the project) - In this case, the error is 500 (when no physical address is given, only web service name)

Other wise when i give the physical path, it gives error 12030?

Can this ever work???????????????

Atlas Slow first time load

Hey guys,

I hope this is the right forum for posting this. I'm using Ajax 1.0 and the ASP.NET AJAX Control Toolkit.

The problem that I'm having is that the very first time I visit the page, or when the page has been sitting idle for 20 minutes, it takes about 25 seconds before it comes up. After it loads up once, I can refresh and it loads up within less then a second. I have enabled Trace output, and it tells me that the page is loading up in .5xxxx seconds, but from a users perspective when they hit the page, it takes 25 seconds. This happens with the ASP.NET AJAX Control Toolkit sample website as well.

I have set<compilationdebug="false">and it's had no effect. The server that it's on is a new Intel Woodcrest on a RAID 5, so it should be plenty fast enough. Compiling it in Visual Studio takes 1-2 seconds.

I'm not sure what's going on, but for about 23 of the 25 seconds there is no CPU utilization going on. Here is a picture of Task Manager to show what's going on. The stuff in the red box shows when I refreshed the page after I restarted IIS.

Free Image Hosting at www.ImageShack.us

Anyone have any ideas on what's going on during the 20 seconds of the CPU not doing anything?

Thanks,

-Will

Hmmm, that's a new one. Some questions. Do you see this behavior with a standard ASP.NET application? Are you sure the pause is on the server side and not the client side (e.g. is your browser proxy configured right, etc.)? Is the server busy doing something else? Maybe check disk activity during that 20s.

Thanks for the response.

I do not see it with a standard ASP.NET application, but I've only tried out a very basic application. I have tested this on 2 different web servers that we have. I get the same pause when I view it on a browser on the server, or on another computer targeting an Ajax Control Tooklit page. I have also looked at disk I/O as well during the pause. There is some but it's very minimal. I've disabled the Virus scanner to see if it's causing anything. The only things really installed on them, because I just built it, are Windows 2003 Enterprise Edition, Mcafee Virus Scan, IIS 6.0, Visual Studio 2005, Ajax v1.0, and the Ajax Control Toolkit.

I'm suprised, that other people aren't experiencing this. I've experienced it on 2 computers now. I thought it had something to do with having .NET 3.0 RC1 and the orcas stuff, but I just did a brand new clean install on another machine and I'm getting the exact same pause.

Any other advice or suggestions would be appreciated.

Thanks


Hi, i am having the same problem. It seems that the page is trying to download the whole toolkit dll every time the page loads. I am on a 56k connection and the page takes about 2 mins to open. The same happens when i try to open this site (asp.net site). Has any solution been found for this?? Thanks.


Could you maybe get a complete trace with Fiddler so we can get an idea what's going on?


I'm currently working on a client issue involving a ASP.NET Website. This site initially takes 25 seconds to load on a Windows Server 2003 OS.

The same ASP.NET Website loads 2 seconds initially on a Windows Server 2000 OS. The website uses the Reports Server control for report viewing.

Perhaps a previous post gives a hint in the direction I might take to figure this out! (i.e., DLL Load Time)!

Stay posted!


After my ASP.NET website sits idle for more than 20 mins the next request is very slow. The reason is that the application domain is flushed from IIS and the application needs to be recompiled. I found this utility to be handy.http://www.spikesolutions.net/ViewSolution.aspx?ID=c2b7edc0-5de1-4064-a432-05f6eded3b82

Wednesday, March 21, 2012

Atlas quirk in IE 6

Hello all,
First time Atlas user over here, and I just wanted to say that I'm damn impressed with the toolkit.. that and I've noticed a graphical quirk in IE when using Atlas.

I currently have a master page with everything positioned in CSS (menus, background, content etc). I have a small section of my default webpage use atlas to update a a label from a textbox after I click a submit button (basically: lblChat.text=TextBox1.text;). The thing works fine in firefox, however, in IE 6 when I click on the submit button the background of the webpage flashes to grey for a second (the page doesn't refresh though, just the background disappears for a second).

I have set the background of the webpage in a CSS file as follows:
body
{
background-image: url(Images/background.jpg);
background-attachment: fixed;
}

Any idea why this is happening?

Thanks.

Styles are re-sent to the page on any callback, to enable the serv-erside processing to change the stylesheet as well as the data. So if the background is set via CSS, this will refresh, and may cause a flicker as the browser re-paints.

It does seem like a pain in situations like yours, but it is really handy being able to change the styles for the whole page without having to re-query the data for the whole thing (when you want that behaviour).

Richard.