Design site map page [closed] - asp.net

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I need to design a site map page of my website in asp.net.
I am confused whether to use custom site map and retrieve information from database, or directly retrieve information from database and bind it to hyperlink...
Please help.

The benefit of using a custom site map provider is that you can use it with the SiteMapPath, Menu, and TreeView controls. You also get access to security trimming, which is nice if your site map changes based upon permissions.
The downside is it can be fairly rigid when it comes to query strings, and you have to jump through the provider model hoops just to retrieve some data from the database.
I would say to use the custom provider if you plan on displaying the sitemap in multiple ways (Menu, SiteMapPath, etc) or need security trimming. If you don't, follow KISS, and just do your basic data access with hyperlinks.

Related

Paid Membership Pro [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am trying to make a custom login area and registration area with subscription plans to be paid.
I used several plugins to design it. But I couldn't.
Then I installed Paid membership Pro Plugin and now, I can't understand how it works.
I want to know to
How to make a login area.
How to make a registration area with selecting subscription plan. (Please be kind to post your answer with how to design a registration area even without selecting subscription plan.)
Does it saves the user login details.
how to design a page to edit the profile.
creating a payment gateway.
I wish you would know answer any of the above questions. Please be kind to share your knwoledge.
This is better done when you employ someone to do it for you. There are lots of WordPress login & registration form... You can use any of them that works best with your theme.

I'm creating an ASP.NET website for selling furniture and I am confused about creating my database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
My Asp template
I'm creating my first ASP.NET website for selling furniture and I am confused about creating my database. I want to sell products for many categories like bedrooms, and every user can add products to cart; here is my master page template
I introduce you a simple database design for the issue using 4 proposed tables in the following:
Persons; to keep your users info in it.
ProductCategories; to keep the product groups in it as mentioned like bedroom.
Products; to keep the all products with their categories.
Carts; actually this is not mandatory, you can manage this by cookies.
Note: This proposal is very very basic and simple, so it can be extended by your needs.
Here is the mentioned tables with their fields(in the minimum) as graphical interface in the Microsoft SQL Server design:

Displaying Database info in rows of boxes/divs [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to display different messages from a database in rows of divs, it's for a portion of the site where people will be able to share stories. I want it to look like rows of post-it notes with the stories on them, then if they want to read more they can click on one and it goes to a detailed view of it. It's an ASP.net application, so I've been using VB for a lot of the other stuff.
It's a pretty simple database, with two-three fields (PK, Story, name) and I think it will use a page load event. Just not sure how to access the data. Previously I dealt with displaying grids and rows, but now I want something more organic.
I'm not an ASP guy, but the question seems a little vague. When pulling the data, you'll want to truncate the info from the database for the front page and then link to a full page with all of the info from that post.
For the display, you could use the help of the jQuery masonry plugin.

ASP.NET MVC 4 Roles [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
what is the best way to manage roles in MVC 4? I found this tutorial:
http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-7
but I want to be flexible and add the back office user the power to create and assing roles to registred user.
Many thanks
The ASP.NET Configuration site mentioned in that tutorial does not even work with SimpleMembershipProvider.
You will need a few custom pages to do the following:
List users
Create/Edit user where you display a list of roles.
Then you can just use the built-in functions such as:
Roles.RoleExists(role)
Roles.CreateRole(role);
Roles.IsUserInRole(username, role)
Roles.AddUserToRole(username, role);
This assumes you are using a built-in provider and the data tables generated by ASP.NET. You can also inherit from the RoleProvider class and implement your own methods.
I don't think that the framework provides an out of the box solution for managing users and roles. It should however be quite easy to roll your own, especially if you use the new SimpleMembership provider.
You can also take a look at the SecurityGuard project, which seems quite nice, but I haven't tried it yet.

How do I make dynamic content with dynamic navigation? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I'm creating an ASP.NET web site where all pages hang off a database-driven tree-hierarchy. Pages typically present HTML content. But, some will execute programming.
Examples:
a "contact us" form
a report generator
How should I represent/reference the programming within the database? Should I have a varchar value of a Web User Control (.ascx) name? Or a Web Form (.aspx) name? Something else? Or should it just be an integer or other such ID in a dictionary within my application?
Can I make an ASP.NET Site Map Provider with this structure?
See more information here: Which is the best database schema for my navigation?
You might consider inserting placeholders like <my:contact-us-form/> in the database on specific pages; that way the database can describe all the static text content instead of completely replacing that database-driven content with an .ascx control.
Our development team has had success with defining the name of a Web User Control in the database. Upon page load it checks too see what controls to dynamically load from the database.
We use Web User Controls instead of Web Forms in order to ensure we can use the control on any page.
You can also dynamically build a site map using ASP.Net's provider. CodeProject has a good example.

Resources