C# - Provide Users Of Ecommerce Website With A Breadcrumb Trail
Jun 27, 2009I am looking for a best practice to provide users of my ecommerce website with a breadcrumb trail. Current Site Setup:
[Code]...
I am looking for a best practice to provide users of my ecommerce website with a breadcrumb trail. Current Site Setup:
[Code]...
I would like to give permission to use this project to say, 10 users. The following code is fine for a single user. How can I write conditional code to provide the access to other nine users?
Submit button
If txtUsername.Text <> "Mahajan" Or txtPassword.Text <> "mh745" Then
MsgBox "Access Denied! Either Username or Password is incorrect!", vbOKOnly + vbCritical, "Security Login"
txtUsername.Text = ""
txtPassword.Text = ""
[code]....
I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:
<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"
[code].....
How can I provide an error message if the user does not provide a value in my textbox. I found this example, but it doesn't work in my
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e_
As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
[code]....
It says that Error Provider1 is not declared. How do I do this the right way?
Scenario: We have a website that is viewed both internally and externally. When an error occurs the users are displayed with a detailed error page(Stack trace etc). Problem: The external customers do not need that much information about the error. We are looking to have the external customers see a message instead. Ex. Please contact Administrator. Also if possible we would like to log this message in our SQL database.
Note: I'm assuming I make a custom error page like - Implementing a Custom Error page on an ASP.Net website. but how do I determine whether or not the user is internal/external? Also is this the best way to approach the problem?
im trying to input a registration/login code into an ecommerce application whereby a customer shall be able to create a new account using their unique email, first name, surname, and a password. If the customer has an account, s/he will be able to purchase items by logging into the system using his/her email and password
View 8 RepliesIm currently trying to set up breadcrumbs on my site, Ive tried two different approaches and the max I have seem to get is only 3 levels on the breadcrumbs. Is there a limit to it?
Home> Hello World > Good Bye Home> World > Good Bye > Forever E.g. I never seem to be able to get Forever to show on the breadcrumb. Is there a limit?
Im trying to make a program which would check for users from text file on a certain website I can populate the list box, and loop through it's items here is the code i came up with so far and it doesnt work properly, it pops out first item in the listbox, and last item only, even though that they shouldnt be popped out
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If Not ListBox1.Items.Count < 2 Then
[code].....
(this is supposed to check every user, and if user doesnt exist, website will return page not found, else user exists and his name is added to listbox2)
I am using wicked code sqlsitemapprovider or it's VB version. Most of the things are going OK! But when I wanted to hide some of the nodes from appearing on menu while staying shown on sitemappath I cannot figure it out. I tried to change the sqlsitemapprovider code but was unsuccessfull. I have found David Sussman's (from sp.net) answer. but it was for a .sitemap file. So how can I manage to do the same with the sql sitemap provider mentioned above.[code]...
View 2 RepliesDoes anying one have any codes or suggests
View 16 RepliesI was hoping that the various controls for WinForms in VB.Net 2008 would have a property such as OldValue and NewValue that I could pull from the Change property.
I'm wanting to write a generic code that will save the OldValue, NewValue, name of field and name of table, and date of change directly to a simple Audit table.
Items aren't changed often, but we need to be able to trace the history of changes to certain fields. I've got the code written for saving to the table, but I'm not finding anything that will show me the two values I need.
I get the NewValue from the changed property but how can I locate the OldValue for date/time pickers, text boxes, check boxes are the main items on the forms.
How To Create Audit Trail Of Record Changes In A Form In Vb Net?I get the NewValue from the changed property but how can I locate the OldValue for date/time pickers, text boxes, check boxes are the main items on the forms.
View 1 RepliesI have a form with a picture box that moves on form load with timer but the picture shows a trail when moving
Private Sub TimerBottomBun1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerBottomBun1.Tick
Dim Loc As Point
[Code]......
I want to make a 30-day trail in visual basic 2008 i found this software Active Lock Software but how do i use it.
View 12 RepliesUsing a timer, am making a rectangle platform move from left to right. The problem is that it leaves a trail of itself and I believe this is down to refreshing or something. here is the timer code if your interested:
If shaperet = False Then
Timer2.Start()
platform.Left -= 4
[Code]......
Iv been making a Tron game for the past week and im stuck.What is the best way to draw the trail behind the "bike".
i have two arrays called StartPoint() and Endpoint(). Both of the arrays are constantly updated with every change of direction.
I need the trail to follow the bike and once the player changes direction, it needs to stop and start in the new direction.
I'm trying to create a 'trial version' for a software of mine, currently it is pay-only. Basically the most efficient way I can think of is to simply change the startup form of the trial version after 15 days. The new startup form will simply be a request to register.
-How can I change the startup form after 15 days?
-How can I ensure that this cannot be changed afterwards (so it isn't easily pirated).
I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.
I get this error
HTML
There is already an open DataReader associated with this Command which must be closed first.
Here is my code
vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",
[CODE]...
1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.
2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.
1. I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back. 2. Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only. Any alternative way to achive the target is just fine.
View 1 RepliesProvide URL in a toolstrip? I mean to URL that will be displayed as a link.
View 4 RepliesI cannot figure out how to get this call to work.I have searched EVERYWHERE.MSDN is no help at all and the only thing I can find is this vb6 code that doesn't work in .net.I tried to convert it over but I've had no luck.Specifically I'm trying to get the path of the "All Users" Desktop and the "All Users" Start Menu.It would rock if anyone could help me out with this one.
View 5 RepliesI'm writing a custom DAL (VB.NET) for an ordering system project. I'd like to explain how it is coded now, and receive some alternate ideas to make coding against the DAL easier/more readable. The DAL is part of an n-tier (not n-layer) application, where each tier is in it's own assembly/DLL.
The DAL consists of several classes that have specific behavior. For instance, there is an Order class that is responsible for retrieving and saving orders. Most of the classes have only two methods, a "Get" and a "Save," with multiple overloads for each. These classes are marked as Friend and are only visible to the DAL (which is in it's own assembly).
In most cases, the DAL returns what I will call a "Data Object." This object is a class that contains only data and validation, and is located in a common assembly that both the BLL and DAL can read.To provide public access to the DAL, I currently have a static (module) class that has many shared members. A simplified version looks something like this:
Public Class DAL
Private Sub New
End Sub
Public Shared Function GetOrder(OrderID as String) as OrderData
[code].....
This cleans it up a bit, but it leaves a lot of classes that only have references to other classes, which I don't like for some reason.Without resorting to passing DB specific instructions (like where clauses) from BLL to DAL, what is the best or most common practice for providing a single point of access for the DAL?
In my propertygrid having one custom property ..suppose some text is there in this item.i want user to allow only delete the item.nothing more like editing ,backspace nothing..only provide delete key option to this property item..
View 4 Repliesi have a problem and my project is stop now so i must solve this problem i have a listbox in my project and simple is; so this infos are irregular. i getting this infos with a loop into listbox. i want this infos be sub-bottom.
View 2 RepliesWe build a class (i.e. Server) and create a LOAD method that loads a dataset with all the details of that object.We need all that information sometimes... but what about when we only need one piece of data from that object (i.e. webserviceUrl).Should we build classes with a bunch of scalar methods that get back single pieces of data as opposed to only getting ALL the data and then only taking what we need?It's a waste to get all the data when we dont always need all of it but it also will take longer to write the extra methods..
View 2 RepliesI want to provide a textbox in my windows forms application (in vb.net) that will be masked in time format and validate for time in 12hr format. It should also auto complete i.e if user enters 6 and clicks tab then it should make the text to 6:00 am.
View 3 RepliesI have a need to provide mouse coordinates and click details to the sub-classes of an application. The details are stored in a typed variable in the main class, as they are not processed when the event occurs.
What is the correct way of getting the classes to refer to variables in the parent class that instigated them? I realise this is not standard practise, but at this stage in the project I am converting code from a procedural language and need to do this as an intermediary step. Using the mouse events is also not possible, as this is a DirectX-oriented real-time program, and some things still have to be processed procedurally. They have to be stored via the event and then processed manually.
I may have dozens of instances of the classes, so distributing the mouse data every time it changes is not a good option. Ideally, the class should be able to retrieve the data when it needs it.
Is there a efficient way to provide an Enumarable<SomeType> or a collection that implements INotifyCollectionChanged but that can only be changed from the inside of the providing class.
The following example shows what I mean, but has the disadvantage that the caller can cast the IEnumerable<SomeType> back and then manipulate my internal collection, what I really would dislike:
[Code]...
When I build my VB.NET 2008 Express Edition project I get the following error
The designer loader did not provide a root domponent but has not indicated why
I though this meant that I need to put my Acces mdb in the root folder of the project but that didn't help. why I'm getting this error? If I click on more information I get an message saying information not found.