This is a discussion on How to run an external script from a C# behind? within the Microsoft .NET forums, part of the Programming Talk category; Hi,
I will try to make my question as simple as possible.
I have a website build in .NET (using ...
I will try to make my question as simple as possible.
I have a website build in .NET (using C#). It displays a list of products that are retrieved from a DB. Within the itemtemplate of that Datalist (that displays the products) I also put a LinkButon that executes a code and this Linkbutton acts as an ADD to Cart button. The code that is being executed retrieves the product's name and price and saves these values into 2 session variables.
Then I have the following HTML tag that puts the values (name, price -now saved in the Session Variables) into a Button:
a Javascript then executes an external code (since I am using an external Shopping Cart):
My problem is that I can click on the LinkButton that I created but I also have to click on the button I just pasted above.. only then will my 'name and price' values be passed to the external shopping cart.
What I want to do is automatically call this Javascript from C# behind (After the 'Add to Cart' Linkbutton is executed)
Please I need this urgently, any help will be very much appreciated.