For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
The navigation capabilities in Bootstrap are comprehensive but the defaults don't suit the colour scheme of the website I am developing. They appear very difficult to tailor, particularly the colours of things like
on hover, on focus
etc. There are a lot of changes to be made to make sure it works under all circumstances. The other complication is that I have two nav bars, both of which will have their own colour scheme. I know I could re-code my own navigation in HTML and CSS, but that seems to be against the benefits of using Bootstrap. I don't want to have to also encode the collapsing the nav bar on phones.
Are there ways to control the colours that I haven't discovered?
In the data access layer, stored proc is called, it fills the WorkQueueBE object and returns the result.
I need to write unit tests for this legacy code. I reckon i need to do some refactoring to introduce unit testing here.
Can someone please suggest how to move ahead, so that i can make the code loosely coupled.
Your code isn't really unit-testable as it stands. If you look at Microsoft Fakes you might be able to use that to mock your business layer as that can even mock static objects. If you want to do it "properly" then you'll need your BusinessLayer object to implement an interface (IBusinessLayer) and use inversion of control to pass an instance of your BusinessLayer or WorkQueueBEManager to your calling class. Rather than calling BusinessLayer.WorkQueueBEManager.GetItemByID(wqID) as you are now, you'll call the instance
BusinessEntity.WorkQueueBE be = this.businessLayer.WorkQueueBEManager.GetItemByID(wqID);
(where this.businessLayer is IBusinessLayer and populated via IoC) In your unit tests you then pass in a mocked version of BusinessLayer. If you google unit testing asp.net code you should find some specific examples of this stuff.
the code directly calls the dataaccess layer. This makes it untestable. What i want to acheieve is to start testing these methods, and create mock for data access layer so that it can return hardcoded values while testing.
But how do i proceed with that ? Create interface, implement them in data access layer ? If anyone can cite an example on how to implement it.
There are an infinite number of ways to make a contact form. It all depends on what you want. You may just need to add some input controls and then use the SMTP[^] class in the System.Net namespace to send the email, if you want email.
It all depends on what you want.
There are only 10 types of people in the world, those who understand binary and those who don't.