I can't figure out a good design for this.
I have an edit product page. It allows you to change basic product details, product name etc.
Then I have a function to upload images of the product.
I also have a small page for adding different prices based on date ranges for the product.
What I can't figure out, is how to have these on the same page so as not to have a billion tiny pointless pages when I would much rather have them all on one page.
ASP.net webforms seems to only allow 1 form per page!
ASP.NET Webforms allows only one form per page, but you can create interesting UIs without hitch.
Here is an Open Source Codeplex Project ShoppingCart.NET, download it and check the Product Catalog CMS section. That will help you to learn the trick...
All the best
You don't need more than one form. You just hook up a button_click event for the different buttons on the page, such that only the relevant code is executed when the user clicks one of the buttons.
Related
I have a site with a master page and a number of content pages. I do a search for data in one page and then in another. Often the selected result from the first page should populate some of the search criteria in another. How can I switch back to the previous page and retain the search results?
I have the site working when the user controls are all applied to the one default.aspx page, but the page is just getting too big.
I use a Telerik RadTab with RadPageview in the single page and an asp ContentPlaceHolder in the master/content page.
I understand your problem. Having everything on one page means the search is remembered but your performance suffers. You want to change it to separate pages but still retain the search.
I've written a Navigation framework that will help you, http://navigation.codeplex.com/
In the documentation I build a sample web project that has a search page with a Hyperlink from each search result going to a details page. Then there is a link on the details page that goes back to the search page and retains all the searching (and paging) information and restores the search results exactly as before.
Let me know if you're interested and want any help with it.
just a quick one, are you aware of any wordpress form plugins that allow me to create a form and depending on which options they select, it will display a certain bit of information that submits to a selected email.
Im trying to achieve a web request form for clients and would like them to be able to fill out information as well as select a check box for a certain amount of questions. For example,"would you like to update your own content?"
if they check this box, i would like the form to render all the information in the form and then depending on which checkbox is selected it will give me a bit of content that is different. im trying to automate a proposal template so it writes all this content in an email so i can quickly do proposals for websites etc.
Yes, gravity forms does this. And it's very easy too.
http://www.gravityforms.com/
It is called 'conditional logic'. You enable this on a field, which will display conditional drop downs which you can choose previous 'multiple choice' questions to base your conditions on.
Think you have to pay for this plugin but you could probably find version 4 as a download somewhere to demo before you buy.
You won't be disappointed.
I'm trying to create a portfolio website where students can log in, choose from a selection of templates and then edit the content.
The users page is already set up but contains no html or asp.net.
I want to have it so that when the user selects the template and clicks the button, the code from that template is then written into their page.
Any ideas how I could do this?
Creating physical pages is not a good idea.
What you rather can do is to have your "pages" in the database and expose them through a url facade built on url rewriting.
A simplest example would be - you have a table, PAGES with Name and Body. Pages can be accessed with ShowPage.aspx?page=PageName. However, a facade exposes them as Pages/PageName.aspx which is internally rewritten into the ShowPage.aspx?page=PageName.
It doesn't really matter if you code agains WebForms or MVC, the general idea remains the same.
YetAnotherForum 1.9.55 Customization , WindowsXpSp2
When user clicks on particular topic from the Last Forum Topic page or other page, he/she will be directed to details of topic(as below). I could not understand what ascx page being used for this page, I want to set Anonymous instead of User Name on this page(Topic details page).
I did post this query on YAF's customization forum but did not get any response so far.
YAFForumLink
The ascx page your looking for is DisplayPost.ascx, and it's in the controls folder, and in order to modify i guess that you have to change the code in the page source and not the code behind, and to give you a hint cause i have done a lot of customization, your best option in locating any page you want to to view the page source or use the "Inspect Element" option and try to locate a control id or a css class and search for it in the entire solution until you find what you want.
I have an ASP.NET application where View.aspx page will display the details of each products in a shopping cart.The page displays dynamic data(Ex: For each product id,the content will be different).Now i want to track the unique page views of each product.What are the best solutions to approach this problem ? I am already using google analytics.But i wanna custom solution/code for my web app,so that i can know how many hits came for each product
I have create a Statistical database, and I create a table, that have the product id, and the total views, for each product.
So every time a product is view by a user, I find in the table, this product line-id, and I am updating this values.
I think that is sound and it is simple.
How ever this is the base idea, you can improve it by your ideas.
http://www.google.com/analytics/ Set up each product with its on URL, or write it in the tracker dynamically. Also this has nothing to do with programming.