Showing posts with label created. Show all posts
Showing posts with label created. Show all posts

Monday, March 26, 2012

Atlas updatepanel triggered by user control event

I created a user control which has a imagebuttton in it, I then exposed the click event of the button to the page the user control was placed on using the following code:

Public Event ImageButton1_Click(ByVal senderAs Object,ByVal eAs EventArgs)Private Sub eventXYZ(ByVal senderAs Object,ByVal eAs System.Web.UI.ImageClickEventArgs)Handles ImageButton1.ClickRaiseEvent ImageButton1_Click(sender, e)End Sub

I can use this event from the ASPX page with no problems, however when I use the event as an Atlas trigger for the updatepanel the page always posts back. Is there any way to wire this event up to the upatepanel and avoid the postback (btw the user control was not added dynamically).

Any chance you've found a resolution to this? I'm having the same issue but with a dropdown in a user control....

Thanks.


hello.

well, not something supported out of the box...maybe this tip will help you:

http://forums.asp.net/thread/1345407.aspx

Saturday, March 24, 2012

Atlas Tools missing in VS2005 Toolbox

I have installed Atlas on a WinXP SP2 with VS2005 Standard. I have created an Atlas Web site using the template provided in VS2005, but I do not have any of the Atlas Tools showing up in the toolbox. I tried to add them in the usual way, adding a tab and then adding the tools to that tab, but no go, they do not appear. Can anyone help me get these tools to show up?

Are the controls "checked" in the Choose Toolbox Items dialog?
Can you give me a little more information? When you are on the choose toolbox items dialog box are the controls showing up? Are they there, but when you check their check box they still don't show up? If both of these things are true, have your tried resetting your toolbox?

jonesf222:

I have installed Atlas on a WinXP SP2 with VS2005 Standard. I have created an Atlas Web site using the template provided in VS2005, but I do not have any of the Atlas Tools showing up in the toolbox. I tried to add them in the usual way, adding a tab and then adding the tools to that tab, but no go, they do not appear. Can anyone help me get these tools to show up?

Hi, I am also having the same issue as yours. Were you able to fix it? Please help. Thanks.

blumonde


orphicfireball:

Can you give me a little more information? When you are on the choose toolbox items dialog box are the controls showing up? Are they there, but when you check their check box they still don't show up? If both of these things are true, have your tried resetting your toolbox?

Hi Orphic, I finally got it to work now. Thanks for the response.

blumonde


What was it?

Yes, what was it. All of us who still not have the things show up in the tool-box. What to do ? I have tried reset, restarted the computer and so on. How do I do to solve this problem ?? thanks for an answer


add the items manually to the toolbox.

Browse to the exact location and add the controls to the toolbox.

It seems to work fine for me.


thank you Kate, You know I am new to Atlas, so could you (or anybody else) be so nice and give me a hint of what the location could be called (in a standard installation) and what the controls should be called, more or less, in a standard installation.

Go to ToolBox.

Right Click Choose Items

In the .NET Framework Components click browse and once you install the atlastoolkit there will be a directly where the dlls


AtlasControlToolKit.dll and Microsoft.Web.Atlas.dll

If you select AtlasControlToolKit then the controls are highlighted and checked in the components list, click OK then the controls will be added to the toolbox.


Sorry for my late response.

There are two ways to do it. You can do it as Kate1234 suggested or you can use your file explorer to get to the installed default directory below and then drag and drop the dll file "Microsoft.Web.Atlas.dll" onto your toolbox panel. To group the controls, make sure you add a tab called "Atlas" to the toolbox(rightclick) first.

C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727\Atlas

blumonde

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 to AJAX Conversion

I am very new to Ajax and unfortunately I was kind of thrown right into the middle of it. My predecessor created a webpage using Atlas and never finished it before he left and now I need to convert it to Ajax and get it finished. I am in the process of converting it but I have come across this one section of code that I cannot seem to figure out the conversion.

PublicSub SetConfirm(ByVal buttonAs LinkButton,ByVal TextAsString,ByVal ConfirmExtenderAs AtlasControlToolkit.ConfirmButtonExtender)

ConfirmExtender.TargetProperties.Clear()

Dim propAsNew AtlasControlToolkit.ConfirmButtonProperties

prop.ConfirmText = Text

prop.TargetControlID = button.ID

ConfirmExtender.TargetProperties.Add(prop)

EndSub

If I change AtlasControlToolkit.ConfirmButtonExtender to AjaxControlToolkit.ConfirmButtonExtender like VS2005 recomends it underlines ConfirmExtender.TargetProperties in blue as well asAtlasControlToolkit.ConfirmButtonProperties. I expectedAtlasControlToolkit.ConfirmButtonProperties to be underlined but the suggested alternates don't match. I get the following options:

AjaxControlToolkit.ConfirmButtonExtender

AjaxControlToolkit.AnimationScripts

AjaxControlToolkit.ToggleButtonExtender

I would assume the first one but it when I go to fix ConfirmExtender.TargetProperties it does give me any thing even remotely close to TargetProperties.

PublicSub SetConfirm(ByVal buttonAs LinkButton,ByVal TextAsString,ByVal ConfirmExtenderAs AjaxControlToolkit.ConfirmButtonExtender)

ConfirmExtender.TargetProperties.Clear()

Dim propAsNewAjaxControlToolkit.ConfirmButtonExtender

prop.ConfirmText = Text

prop.TargetControlID = button.ID

ConfirmExtender.TargetProperties.Add(prop)

EndSub

It might be the way it is being used in the *.ascx page. Here is the code:

<asp:ImageID="Image7"runat="server"ImageUrl="~/Images/optionbullet_Lightblue-gray.gif"/>

<asp:LinkButtonID="LBtnDelete"runat="server"Text="Delete"/>

<cc1:ConfirmButtonExtenderID="LbtnDeleteExtender"runat="server"/>

Thanks in advance for the help.

Hi, check this link how to configure AJAX in web.config

http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx

Smile


You want to set the TargetControlID and ConfirmText properties. You can set that in the markup, e.g:

<cc1:ConfirmButtonExtender ID="LbtnDeleteExtender" runat="server"
TargetControlID="LBtnDelete" ConfirmText="..." />

or in code:

LbtnDeleteExterder.TargetControlID = LBtnDelete.ID;
LbtnDeleteExtenderConfirmText = "...";


Have you configure your application for AJAX..

Post it on forum, if solved your problem.


Hi,

as Scott suggested, you should set the TargetControlID and ConfirmText properties on the Extender instance. You have to get rid of TargetControlProperties instances.

Back to the "Atlas" times, a single Extender instance could be bound to multiple server controls. To do that, you had to declare multiple TargetControlProperties instances as children of the Extender instance. Each TargetControlProperties had the purpose of configuring the Extender functionality for a given server control.

Now, an Extender is associated to only one server control. Therefore, all the configuration job is done in the Extender instance. The TargetControlID property specifies the ID of the extended server control.

Atlas to Ajax Conversion

I am very new to Ajax and unfortunately I was kind of thrown right into the middle of it. My predecessor created a webpage using Atlas and never finished it before he left and now I need to convert it to Ajax and get it finished. I am in the process of converting it but I have come across this one section of code that I cannot seem to figure out the conversion. Can someone please help me?

PublicSub SetConfirm(ByVal buttonAs LinkButton,ByVal TextAsString,ByVal ConfirmExtenderAs AtlasControlToolkit.ConfirmButtonExtender)

ConfirmExtender.TargetProperties.Clear()

Dim propAsNew AtlasControlToolkit.ConfirmButtonProperties

prop.ConfirmText = Text

prop.TargetControlID = button.ID

ConfirmExtender.TargetProperties.Add(prop)

EndSub

Thanks in advance for the help.

You need to get the AJAX Control Toolkit, and use that to replace the ATLAS Control Toolkit.

If that's not it, provide a little more detail on the specific s of the problem, and we'll get it.


I just realized that it might be the way it is being used in the *.ascx page. Here is the code:

<asp:ImageID="Image7"runat="server"ImageUrl="~/Images/optionbullet_Lightblue-gray.gif"/>

<asp:LinkButtonID="LBtnDelete"runat="server"Text="Delete"/>

<cc1:ConfirmButtonExtenderID="LbtnDeleteExtender"runat="server"/>

I would really appreciate any help I can get with this.


If I change AtlasControlToolkit.ConfirmButtonExtender to AjaxControlToolkit.ConfirmButtonExtender like VS2005 recomends it underlines ConfirmExtender.TargetProperties in blue as well asAtlasControlToolkit.ConfirmButtonProperties. I expectedAtlasControlToolkit.ConfirmButtonProperties to be underlined but the suggested alternates don't match. I get the following options:

AjaxControlToolkit.ConfirmButtonExtender

AjaxControlToolkit.AnimationScripts

AjaxControlToolkit.ToggleButtonExtender

I would assume the first one but it when I go to fix ConfirmExtender.TargetProperties it does give me any thing even remotely close to TargetProperties.

PublicSub SetConfirm(ByVal buttonAs LinkButton,ByVal TextAsString,ByVal ConfirmExtenderAs AjaxControlToolkit.ConfirmButtonExtender)

ConfirmExtender.TargetProperties.Clear()

Dim propAsNewAjaxControlToolkit.ConfirmButtonExtender

prop.ConfirmText = Text

prop.TargetControlID = button.ID

ConfirmExtender.TargetProperties.Add(prop)

EndSub

Wednesday, March 21, 2012

Atlas session issue

Hi all ,

i am working of a hospital management system which we desided to develop using atlas frame work. we have created the application main to sections using atlas script call back architecture. we are using scripts to pack the user entered data to the web service and in that web service we are entering the data in to the database.

all this happening with out a post back of the page.

now comes the problem.

we are not being able to handle the user session properties. we came to know that we cant access session variables in web services.

we are in a trap now. how we can manage the session, validity and time out of a user. cose in this method there is no method to handle the time out.

we also want to share some data between pages all along the use session. how can i acheive this.

can any one help in this regard.

Hi,

If I understood your issues corretly then this may give you soluiton.

When you use session in the web service you have to set enable session property to true in the webmethod attribute

Regards,

Techwork


Hi Techwork :)

We are calling the web service functions from java script using atlas frame work, Can i access a particular session like this " setting enable session property to true "