Create Dynamic Expression Tree

How do I convert this Lambda To Expression tree in C# var FieldName="SomeDynamicField"; var param = "SomeParam" //Lambda to beCreated x=>x.FieldName!=null && x.FieldName.ToLower().Contains(param ) I have tried this so far private stat...
more »

2017-05-14 18:05 (1) Answers

CORS doesn't work on ASP.NET Core 1.1

I am trying to enable "*" CORS headers on application startup: public void ConfigureServices(IServiceCollection services) { services.AddMvc(opts => { opts.Filters.Add(new AuthorizationFilterFactory()); }); services.AddCor...
more »

2017-05-14 17:05 (0) Answers

Boostrap table footer not displaying at the bottom

I have a Bootstrap responsive table in my AspNet Web API project which not showing me foot text within the table. My foot text shows on the top of the page outside table. I mean I'm trying to keep the footer of bootstrap modal to bottom but I can't, ...
more »

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

Entity Framework not creating table correctly

I am working on creating a .NET Web Application and have just discovered Entity Framework. I am very new to this and have been going through a tutorial using Code First Migration. I am trying to seed data into a few tables and one of them is not ge...
more »

2017-05-13 05:05 (0) Answers

Can't Publish Because of Intellisense Errors

In VS 2015, I have a solution that builds and debugs just fine. But, when I go to publish it, it won't let me because of 60 intellisense errors. I've found a few threads like these: Visual Studio 2015: Intellisense errors but solution compiles In...
more »

2017-05-12 19:05 (0) Answers

Web API 2.0 Exception Handling

I am using Web API 2.0 to create my own project. My Api contain ability to Add , Get and book product. I Want to handle exception but there is some issue I little bit confused. I have a controller: ProdctController with action method AddProdct. ...
more »

2017-05-12 12:05 (2) Answers

How to make a dynamic label using ASP.NET?

I have a textbox and 2 label I would like to make that, whenever I change the value of the textbox: label2 = textbox * label1 I tried using textbox_TextChanged but it requires me to click anywhere outside the textbox first. Is there any way to m...
more »

2017-05-12 11:05 (1) Answers

Websocket with javascript

So basically I want to create websocket from api that need using websocket to create some alert, so far I have try using ClientWebsocket and it work as I expected but sometimes not, something like this public static async Task<ListenerContent>...
more »

2017-05-11 23:05 (0) Answers

Load one-to-many model

I have such models: public partial class Goods { public decimal good_id { get; set; } public string good_name { get; set; } public virtual ICollection<Description> description { get; set; } } public partial class Description { ...
more »

2017-05-11 09:05 (3) Answers

Kentico UniPager in custom UserControl

In my aspx file I have the cms:UniView control, and cms:UniPager for it. This works fine. Now I want to move the cms:UniPager control to another place. I'm placing it into my custom UserControl and replace cms:UniPager in the aspx file by this custom...
more »

2017-05-11 09:05 (0) Answers

Check single row checkboxlist

i create a table row will auto generate data from sql and bound in by backend code. Is it a way check that user has click or not by using javascript? The row is create as below: <tr> <td align="right" class="formLine">Brand Type:<...
more »

2017-05-11 08:05 (2) Answers

ASP.net Token Based Authentication

I have a web application built using ASP.NET MVC 5. I would like to know if i were to use a token based authentication as opposed to a session-based authentication(forms authentication) (using OWIN as the authentication middle-ware), do i need to a...
more »

2017-05-11 05:05 (0) Answers

MVC Video streaming to mobile web browsers

Hi guys i want to stream a video from my Azure blob via a ASP.NET MVC web application to users on desktop browsers and of course mobile browsers. What i have build so far is a ASP.NET MVC Application that serves the website and a WebApi service tha...
more »

2017-05-10 11:05 (1) Answers

Bindig ListBox selection to model properties

I've been struggling to bind a MultiSelectList from Html helper to a specific model. Model In my model I have something like this: public class DefaultSelection { public SelectionItem Selection1 {get;set;} public SelectionItem Selection2 {...
more »

2017-05-09 17:05 (2) Answers