Favorite Tags
View questions based on your favorite tags across the Stack Exchange network

2 answers

MemberExpression as object of its type

I'm building Linq Extension methods. Shortly, I've built an extension method in order to create a MemberExpression looks like: public static Expression Field<T>(this object entity, string ...

2 answers | 40 secs ago by Jordi on Stack Overflow stackoverflow.com
0 answers

Algorithm for filling space between points with color

I have points from arrays which looks like this after printing: Now I need an algorith to fill space between those points. Important thing is I don't want to fill space between separate shapes. Is ...

0 answers

How to fix operand type clash : image is incomplate with varchar(max) in sql server

I have created a user defined type (with script to CREATE) given below: CREATE TABLE [dbo].[EmployeeMasters]( [ID] [int] IDENTITY(1,1) NOT NULL, [EmployeeID] [varchar](max) NOT NULL, [EmployeeFName] ...

0 answers

Using the same SqlConnection for EntityFramework and “normal” SQL calls

I have code with mixed EF and normal SQL calls. The whole thing runs on Azure, so we use ReliableSqlConnection. We are using TransactionScope and we don't have the Distributed Transaction Manager ...

0 answers

nav tab is not working only in IE browser… other tab's content is always displaying below to 1st tab

<ul class="nav panel-tabs-border panel-tabs panel-tabs-left" id="myTab"> <li class="active"> <a href="#tab2_1" data-toggle="tab">Customer Info</a> </li> ...

0 answers

Redis client in C#: saturating the pipe?

I have several components in my C# code reading and setting key/value pairs in Redis in a multi-threaded context. The following minimal example using System; using System.Threading; //Uncomment one ...

2 answers

Retrieve or Read Existing SQL File - C#

How do I retrieve or open data from existing sqlite file? I have a sqlite file with the name kamus.sqlite in asset folder. The database has columns id, word, translation. I want to show the word and ...

1 answer

What is wrong with my insert query in linq c#?

i have a table with a name logtbl(logid int, emplid int, logdate date, description varchar(50), logtime time(7), logdatetime datetime) Here is my code: public void savelogs(int idemp, ...

1 answers | 5 mins ago by redbull on Stack Overflow stackoverflow.com
1 answer

How to send push notification to more then 1000 user through GCM

I'm using asp.net c# to send push notifications to users through GCM. This is my code to send notification. string RegArr = string.Empty; RegArr = string.Join("\",\"", RegistrationID); // ...

2 answers

Using C# to create a “monthly timetable/schedule calender” in a SQL table

For context I am creating a database for a vet clinic. I have a SQL table in Microsoft SQL Server Management studio 2014 with relational model (schema) as follows:ScheduleSlot(s̲l̲o̲t̲I̲D̲, room, ...

2 answers | 8 mins ago by Bill Smyth on Stack Overflow stackoverflow.com
1 answer

How do I change connectionstring at runtime in EF7 Core?

I am building system where each customer will have it's own database. When a customer loggs in, I will use the domain name of the users email adress to decide what connectionstring it should use. ...

1 answers | 10 mins ago by Per B on Stack Overflow stackoverflow.com
3 answers

Subtract the list DateTime item with each other in c#

I have a list contain 100 DateTime variable, I want to subtract the list item with each other to see if they differ by 5minutes. Can this be achieved using LINQ. I want to subtract "i" with i+1,i+2.. ...

3 answers | 10 mins ago by Kumaran Raj K on Stack Overflow stackoverflow.com
5 answers

Empty string if null

I have this in my code: SelectList(blah, "blah", "blah", cu.Customer.CustomerID.ToString()) It gives a error when it returns null, how can I make it CustomerID is an empty string if it is null? ...

5 answers | 11 mins ago by Lasse Edsvik on Stack Overflow stackoverflow.com
2 answers

Why can't I assign (1<<31) to an ulong var? (Error 25 Constant value … cannot be converted …)

Why does this assigning produce a comile error: Constant value '-2147483648' cannot be converted to a 'ulong' and I have to use unchecked (...) for this case? ulong xDummy30 = (1 << 30); // ...

2 answers | 12 mins ago by boboes on Stack Overflow stackoverflow.com
1 answer

ASP.NET C# how to handle the page postback on menu click

I am using Obout menu I don't want to refresh the page after click on menu but when I am selecting the menu, it refreshes the whole page. Can anyone suggest the best way to fix that? I am using the ...

1 answers | 12 mins ago by A T on Stack Overflow stackoverflow.com
0 answers

How to use Epplus with cells containing few rows

I want to import some excel file using epplus the problem is that some cells contains more than one row (and that cause a problem My excel look like this (in realite their is more tests ...

2 answers

Getting DbEntityValidationException when I'm trying to update a row in a table using entity framework

I'm trying to update a row in my table bu.LastReviewCreationDate = LastReviewCreationDate;, but this action generate a DbEntityValidationException. public void ...

1 answer

How to set a breakpoint in the source code window of WinDBG for a managed application?

There's something that's driving me insane in WinDbg. I have the exact same problem of this question asked 4 years ago, which is basically: I tried to set a breakpoint using WinDbg at a source ...

1 answers | 13 mins ago by Lennox on Stack Overflow stackoverflow.com
0 answers

How to use WCF service in swift?

I have a SOAP service on the web that needs to exchange data with my application. Now we've added a certificate to secure the connection. We have handled to do the job with C# but how to use the ...

0 answers

Custom object generation for parallelization - pattern or best practice available?

I'm currently writing part of an application that generates multiple reports on a given source of imported data. The GUI spawns a loading interface and then launches one of 12-13 async Tasks ...

0 answers

The ViewData item that has the key 'myproductid' is of type 'System.Int32' but must be of type 'IEnumerable<SelectListItem>'

I have seen many solutions for this error it seems that mydropdownlist is null but trying to repopulate it isnt working so what i'm doing wrong?! the get method is working fine but in the post it is ...

2 answers

Executing some code after form closed in a Windows Form Application C#

I'm creating a C# Windows Form Application with a single form, which creates some files. But i want these to be temporary. So what i intend to do is this. All the files which are created during the ...

2 answers | 16 mins ago by Yamin Nather on Stack Overflow stackoverflow.com
2 answers

OutOfMemoryException while working with Images in WPF

I have to make some thumbnail from specific parts of a large image and save them as png/jpeg images. Here is what I'm doing: public static void Save(BitmapImage srcBitmap, Int32Rect srcRegion, Rect ...

2 answers

Using Split() without parameters, what is the default delimiter?

So I looked at the String.Split() method in C# today and I realized that you can pass it zero arguments as well which I never considered. What is the default delimiter when you use Split() without ...

2 answers | 17 mins ago by Vipar on Stack Overflow stackoverflow.com
0 answers

Unity3D : I am not able to find the solution to NullReferenceException

NullReferenceException: Object reference not set to an instance of an object TouchHandler.TouchControl () (at Assets/Script/TouchHandler.cs:78) TouchHandler.Update () (at ...

2 answers

C# converting a VBA For Each loop to C# but gives compile error

I am converting a Word VBA macro to a plugin in C#. I have so far successfully refactored all statements, methods and properties in C#, but this one gives me a hard time: For Each l In ...

2 answers | 18 mins ago by ib11 on Stack Overflow stackoverflow.com
0 answers

Retrieve query metadata in Postgres

With a C# .net application connecting to postgres using npgsql, how do I recover the just the metadata of a sql query? Is their any equivalent to the Transact SQL option FMTONLY, where the request ...

2 answers

How to implement robust thread monitoring in C#?

I have 2 tasks running parallelly and here is the task information. Task 1 - Launch and run application Task 2 - Monitor the application run duration. If it exceeds 30 mins, issue a stop command of ...

2 answers | 18 mins ago by Ram on Stack Overflow stackoverflow.com
0 answers

AJAX timeout not being followed

I am getting a 504 gateway_timeout error on my ajax call because my ajax calls a method on my controller which takes more than 60 seconds to execute (sql stored procedure), i have set the timeout in ...

5 answers

Razor View dynamic table rows

I want have a table in my view that is going to put 3 elements from my Model in each row. So the way I was going to do this is to loop through the model and inside of the foreach loop do a check on a ...

15 30 50 per page
1 2 3