We have a section of our site that allows you to add items to a cart, nothing to sell.. just keep while you are on the site and can go back to..
On the page that you have that ability to add items, i also have a label that displays the number of items.. Now that we are going to go live with this, thay have moved the count to the menu, but the menu is within the Site.Master file, so its not being populated. But it works fine on the page where you can add items..
So what can i do to accomplish the task of displaying the total number from my master file, right now you can only see the accurate number on the page you add to cart.. once you select another page, you dont have it anymore..
This is within my event for the "Add to Cart" button, this works, because the label is on this page. But now the label is within the master file and even though the below works, the number doesnt update on the menu .
how can i cart items for shopping cart application ...i am really new to web development and i want to create a shopping cart and want to cart items in it. how should i cart items.
In my online shop, users can search products,each product have a link called add to shopping cart, users can add to the list many products like anonymous user, the question is.How can i do,for not to lose the product list, when user make Log in or create one account in my site
I am working on Shopping Cart its almost done. But i need small help from you guys.In my application final Step when customer try to CheckOut the products cart should be email with attachment as a PDF.
This application developed using vb.net.
I have completed till the checkout page. After that i am not geting any Idea how to send the cart Items to email as a PDF.
I tried to convert the webpage, repeater control to pdf but no luck...I can't spend money on thirdpaty tools.
Even i tried free One itextsharp but i could not get it..
check out page has the following
1.products on a repeater control and some labels.and other server controls.
2.Images company Logo
Can any one tell me how to send the cart items as email in pdf format.
Is there any other best way to send sales Quotation to customers on products.
i've a songs website, where i'm adding items to cart for users who are logged in, but when a song is deleted from the website the users still have the cart info still intact, i'd like the songs in the cart also too be deleted when the song from the website is gone, how may i accomplish this ?
I have an Add to Cart button on a Content Page. It works perfectly well.
I HAD a View Cart button on the Content Page, also. It worked perfectly well.
Problem...
As the View Cart button isn't linked to any specific page/product, I moved it to my Master page and the code behind to my MasterPage.aspx.vb file. Upin doing that, Visual Studio complained: "Name 'ClientScript' is not declared".
I know noting about JavaScript and have been working with code copied and pasted from these forums for months but now in adjusting my code so it works from the Master Page.
Here is code: first for the Add to Cart button in the Content Page, then for the View Cart button in the Mater Page (just the code behind)...
i am new to MVC 2 and i am trying to create a shopping cart system , now i am in delima either to use the User Control to display the Product with add to cart button dynamically or to use the controller to get the data and create a new view page.
kindly suggest also what i dont know is how to get the dynamic data in the view page in MVC 2.
I am working on masterPage/sub masterpages, all worked fine until this morning.When I open a .aspx which uses masterpages, in the design view it shows the error message..
I've checked both master pages several times, all tags are matched and visual stuido itself doesn't indicate any errors. Also in debug mode the html page is generated without any problems..
My computer system froze on me, the mouse froze, cntrl-alt-del, did nothing, so I reset it. Did a disk check, and now everything seems fine except for my master Page html code which I was in the middle of editing when it happened. The VB code-behind file is still ok, the designer file still shows ok with all of the controls in it, but I can't get into desgn or source view. It just opens and gives a whole page of hesixecimal code such as as:
Spent ages trying to get this right but am struggling now. I have a list box and textbox, I can happily enter Email addresses into the textbox which are saved into a text file and populated in a list box. I want to be able to select a list item and delete it, along with it's record in my text file. I was going to do it by on the delete list item / button click, it delete's the text file and then writes and a new one with the remaining list items in the list box. Unfortunately it's re-writing the file but either not including the remaining list items. Here's some examples of what I've changed and what populates the text file:
StreamWriter1.WriteLine(Addresses.Items); - System.Web.UI.WebControls.ListItemCollection StreamWriter1.WriteLine(Addresses.Text); - A blank line?!?
The code is below. The reason I wouldn't allow the user to delete the first list item is because I thought the code was working ok but for some reason putting in a blank line to start with, and if I deleted the line it'd delete all file content. No, I don't know why I thought that either.
[Code]....
where I've gone wrong? I've not actually slept since I woke up at 8am yesterday. It's now 11am... today.
how can i fix my menu that is not showing a dynamic items... it only says "Expand ****"... suddenly that problem showed up... and also a skip navigation link showed too..
Is there a convenient way to change the style of a menu item in an MVC master page? I want to show which menu item is currently being active. So far, the only way I could think of was a brute force way, to duplicate the menu in multiple master pages, and mark one as selected:
I would like to display the following information for each "Camera" (in the format below) on my web page in an HTML table. All the data is contained in one table in my database:
For Camera = Canon (e.g.):
Type (Text via asp:Label) Lens Size (Text via asp:Label) Storage (Text via asp:Label) Max. video resolution (Text via asp:Label) Max. photo resolution (Text via asp:Label) Weight (Text via asp:Label) Dimensions (Text via asp:Label) Sensor (Text via asp:Label)
...where (Text) is the value retrieved from the database for the given Camera. advise on the best way to retrieve this data? The only method I can think of (from my limited experience!) is to have a separate VB function for each value, to run separate SELECT queries for each field, and then to set the (Text via asp:Label)
value accordingly. I am already doing this for datagrid retrieves etc. For example:[Code]....
BUT... I know there must be a better method for the above requirement!
I hv created menu using sitemap xmldatasource now i want to display that based on Category or Roles. I have Created 4 Category in my sql Server 2005. when particular user logged in based on his Category menu nodes should display.
I would like to display students and their grades with a GridView and LinqToSQL like this:
[Code]....
I found this topic but it doesn't answer my question: http://forums.asp.net/t/1557987.aspx
I have a many-to-many relationship between students and assignments called "grades".The grade for the assignment is stored in that table in a "gradeNumber" column.The many-to-many relationship seems to be a problem.I tried adding a TemplateField to my grid:
[Code]....
It doesn't work: ...student does not contain a property with the name grade.
It does work when I use class.name however to get a student's class he is in.In code students .grade[0].something works however My LINQ entities are extended with custom code to allow me to retrieve studentx.Assignments or assignmentx.Students.(I would also like to specify which assignments should be displayed in the grid.)
as Paypal offer "Add to cart" and "view cart" the two options which I need the most.And the biggest issue is that I am creating a website for a printing company. so they want a file to be uploaded with each product example a photoshop file but paypal does not give any upload file system.If I give upload file control before the user go to paypal page but every product should have an uploaded file and I don't know that how many products the user selected in paypal cart.
I hate tables - don't want to use tables, unless I have tabular data to display. A menu is not tabular data (as far as I am concerned.) I was elated to see that in asp.net 4 - the menu control renders as a <ul> <li>, instead of as a table. However - try as I might, I can not get a horizontally orientated Menu to split into even columns, and text align center. FYI - I don't use fixed width - so I can't just set a width to 1000 - and separate it into even columns. Besides that, I want it to change width dynamically, based on the number of "columns (menuItems)" there are. Is it possible to spread out the <li> menu items evenly across the space I provide for them in their containing div or will I have to quite using menu controls, and start using JQuery Menu's?
I will have a gridview with checkboxes and some amount fields. I would like to display the sum of the amount in gridview footer depending on the checked items by the user.