Showing posts with label item. Show all posts
Showing posts with label item. Show all posts

Monday, March 26, 2012

How do I change a labels text (twice) in an UpdatePanel?

Hey,

I would like for a user to click an 'Add to Cart' Button, a message appears 'Adding Item to Cart ...', and then the message changes to 'Item added to Cart' when finished. I have under the AddToCart_Click event changing the label to 'Adding to Shopping Cart ...' then the code to actually add the item to the shopping cart and then changing the label to 'Item added to Cart.' However, only the last label is seen (Item added to Cart). Any suggestions on how to do this? Should I use 2 Update Panels? Or, how do I tell it to display both labels?

Thanks,
Beej

Hi

I am not sure about this, but please check Update progress or timer control from Ajax.Net. It may help you.

regards

Anuraj.P


I would suggest using the UpdateProgress component from the AjaxControlToolkit. What you specify in the ProgressTemplate tag of the UpdateProgress control will be visible during the callback, in your case the message 'Adding item to cart...'


SplashMan:

Hey,

I would like for a user to click an 'Add to Cart' Button, a message appears 'Adding Item to Cart ...', and then the message changes to 'Item added to Cart' when finished. I have under the AddToCart_Click event changing the label to 'Adding to Shopping Cart ...' then the code to actually add the item to the shopping cart and then changing the label to 'Item added to Cart.' However, only the last label is seen (Item added to Cart). Any suggestions on how to do this? Should I use 2 Update Panels? Or, how do I tell it to display both labels?

Thanks,
Beej

hi,

Subscribe to add_beginRequest and add_endRequest events of the Sys.WebForms.PageRequestManager like so:

<script type="text/javascript">
//<![CDATA[
var prm = Sys.WebForms.PageRequestManager.getInstance();
var displayLabel= $get("displayText");

prm.add_beginRequest(function(){
displayLabel.innerHTML = "Adding Item To Cart ...";
});

prm.add_endRequest(function(){
displayLabel.innerHTML = "Item added to Cart ...";
});
//]]>
</script>

hth

Saturday, March 24, 2012

How Datagrid rows items drag and drop into another datagrid footer template ....

Hi all...

I am using ATLAS + ASP.NET + C#... i have a requirement like, i wants to drag an datagrid item from one column... and drops into another datagrid footer control. i am new to Atlas technology...Please help me, if anybody have the ATLAS information to learn more abt ATLAS please send me to thisbasavareddygopsen@dotnet.itags.org.rediffmail.com...

Regards,

Basawareddy

HI,

i am sorry dont have a reply to your query, but will surely work out to find it out. But i too have a query, i hope u might be able to help me out.

I am also using ATLAS + ASP.NET+ C#...for developing on of the web based applications. The issue that we are facing right now is that we are not able to get pop up error messages when we are using Atlas, can you help me out to educate me that is it possible to integrate pop up error messages while using Atlas, if YES then please let me know how...

Thanks a lotSmile

Prakhar Saxena