Querying data from two databases in C#

I currently have a query where I am getting data from 2 different databases which is getting appended to one list called "accountbuys". My first table has three data entry(3 accounts which want to buy stocks The next table with 17 data points(17 st...
more »

2017-04-17 21:04 (2) Answers

Datetime displayed using JQuery Timeago

I am trying to display my date using the timeago plugin. This is what I have so far: <div class="container col-lg-12 col-md-12 col-xs-12 notifications-container"> @{ foreach (var n in Model.Notifications) { <div class="row"&...
more »

2017-04-17 20:04 (1) Answers

ASP.NET Logged In Template isn't working

I'm using ASP.NET Membership for a web-application and currently cannot get the LoggedIn Template to display the email address of the user once they are logged in. This is very frustrating as the login is working but the LoggedIn template just doesn'...
more »

2017-04-16 15:04 (0) Answers

ASP.Net 2015 fails to compile SignalR

I have used the following SignalR code for a year, and today it fails compilation with 121 CS0246 errors of the form "The type or namespace name 'Hub' could not be found......".Specific errors in the following snippet are: (1)HubName: "the type or n...
more »

2017-04-15 16:04 (0) Answers

Require one field or another

Basically what I'm trying to figure out is how to require at least one of two fields to be filled out in a View. In my View, I have two text fields called ISBN and ISBN13. It doesn't matter which one the user fills in as long as one of them gets fil...
more »

2017-04-15 16:04 (3) Answers

Upload image in ASP.NET MVC 5 EF6

I've had a look at some other questions and tutorials, but I'm struggling to incorporate the suggestions into my existing work. I want the user to be able to upload an image in a submission form for a new listing, my listing model looks like this; ...
more »

2017-04-14 15:04 (1) Answers

From asp.net submit long running sql query

I have a asp.net web application that needs to submit a long running sql stored procedure with parameters. It could run up to 30 minutes. How can I submit to run on the sql server as a job so the web app can continue on with something else? Is it pos...
more »

2017-04-14 14:04 (0) Answers

Lifetime of the Static variable issue in WebForm

I can't wrap my head around this issue, where I am assigning a instance to a static class and variable during Appication_Start and the variable become null after a few days. public static class IocFactory { private static IContainer _appscopeCon...
more »

2017-04-14 11:04 (0) Answers

How do I display my Products in Separate pages?

So I have a ASP.NET MVC 5 Based shopping cart project and one of the requirements is to show 8 products per page. I have 21 products in total. This is how I'm showing them at the moment: public ActionResult Index() { String SQL = "SELE...
more »

2017-04-14 09:04 (2) Answers

SignalR Page Refresh Makes Multiple Connection

I want to show some live random data on client using SignalR. Problem Is whenever I refresh the page it creates one more connection and shows multiple data. Mostly I think my approach is wrong. So what I have done. Step 1: Installed SignalR...
more »

2017-04-13 09:04 (1) Answers

C# Disable GridView Header in asp.net

How can i disable the GridView Headers? I didn't give them a Name but it still shows "colum1", "colum2" I already tried: GridView.ShowHeader = false; GridView.HeaderRow.Enable = false; But that didn't work... So how to solve this problem? My Code...
more »

2017-04-13 08:04 (1) Answers

Using timers on a .NET Server

I recently was designing a server that used Timers to monitor users that are logged into the system and do something after a given amount of time of inactivity. I am using .NET and IIS to manage the server. When I got the server reviewed I got lots o...
more »

2017-04-12 16:04 (5) Answers