Kurkula

1

votes
0

answer
254

views

Asp.Net Core MVC chart control namespace issue

I am working on asp.net core mvc web application and trying to add chart on page. I used the below code to display basic chart but it fails asking for a missing chart namespace. I tried with few namespaces but it didnt work. Where should I add namespace and what may be the exact namespace for make c...
Kurkula
1

votes
0

answer
69

views

Deploying Asp.Net MVC core application on Godaddy Linux Hosting

Is there any option to make Asp.net Mvc core application work in godaddy or other providers linux hosting?
Kurkula
1

votes
0

answer
28

views

Reading Axios Get params in Asp.Net MVC controller

I am using axios get method and passing params to asp.net mvc controller. I can read individual values. But I am trying to read all values together as one object. I do not have a view model and I am trying to read params as generic object. What will be axios params datatype to use in c# controller a...
Kurkula
1

votes
1

answer
280

views

Displaying Description in Knockout on clicking Title

I have a asp.net mvc2 page where I display data with titles and descriptions using knockout. I want to hide descriptions and show description based on clicked title. any help would be appreciated. Also I would like to apply h1 tag to title.
Kurkula
1

votes
1

answer
531

views

Windows 8 List View repeating Columns

I am working on a Windows 8 app where I have to show 4 items in a row in list view. Right now with code I have all items are populate one below another. Could some one please guide me on logic like repeated columns in metro app ListView. My code is as below ...
Kurkula
1

votes
1

answer
891

views

ASP.NET MVC WebGrid add headers

How can I add headers column names with spaces to my asp.net mvc webgrid? Could some one throw some idea on this? var str= 'ProjectID,ProjectTitle,ProjectDescription'; var headers = 'Project ID,Project Title,Project Description'; string[] columns = str.Split(','); string[] hdrs = headers.Split(',');...
Kurkula
1

votes
1

answer
3.4k

views

Jquery UI modal Dialog blocking background screen

I know this is very common question. I have to post it after researching solution on google alot. I am trying to open a Dialog with JqueryUI. I am trying to block background screen on opening dialog. I can get the dialog but I am unable to do the blocking background screen event after trying below s...
Kurkula
1

votes
2

answer
383

views

Asp.Net MVC placeholder to hide in edit mode

I have a asp.net mvc application with page where i am showing project title in a textbox with place holder. How can I hide this when project controls are in edit mode? @Html.TextBoxFor(model => model.Title, new { @placeholder = 'Project Title', @Value = @Model.Title == null ? 'New Project Title' : M...
Kurkula
1

votes
1

answer
592

views

Jquery remove background color on first and last rows in a table

I am trying to remove background color on click for tables first and last rows. I am trying in the below way. Any optimized way to handle this so that I can call only one time? //Except First row $('#tblNames').on('click', 'tr:not(:first-child)', function () { var state = $(this).hasClass('highlight...
Kurkula
1

votes
1

answer
556

views

Jquery jump on a div and getting down

I am trying to create a smooth jump on to a div and get down of the div once div is completed. Could some one guide me on smooth jumping effect with jquery. Here is my fiddle $(document).keydown(function(pk){ var pos = $('#box').position(); if(pk.keyCode == '37') { $('#box').css('left',pos.left - 5...
Kurkula
1

votes
1

answer
497

views

Jquery Show div on Clicking scrollbar

I am trying to hide a div if I click any where on page and not inside the div. But If i click on Scrollbar for that div, I am unable to stop div hiding. What might be the issue? Here is my fiddle Expectation: Do not hide div if I move scroll bar.(In Internet explorer) var $container = $('.toolbarCon...
Kurkula
1

votes
1

answer
76

views

java script function inside razor block

I am calling a EditDetails javascript function on click only if user has Admin permissions else disabling the button. I see the error 'Cannot implicitly convert type bool to string ' at the javascript function name. What may be the issue?
Kurkula
1

votes
1

answer
252

views

Sharepoint webservice rename a folder

I am trying to use sharepoint webservice to rename a folder. I tried the below code to create a folder which works fine. But I am unable to find the webmethod related to renaming folder. Any help would be highly appreciated. Web Service used http://myservicelink:100/_vti_bin/Dws.asmx Dws objDws = ne...
Kurkula
1

votes
1

answer
268

views

Sql Query to update a column that contains other column data

I am new to sql queries. I am trying to do the below operation and could not achieve the functionality successfully. Any point would help. I have a table with name column and alias column. There are few names with alias included in them I am trying to filer names which have alias included in that c...
Kurkula
1

votes
1

answer
2k

views

Sql Azure Export to CSV

I am trying to export Sql Azure table to CSV. When I right click on Database I see Tasks / Export Datatier application. Where Can I see the option to export data to csv from Sql Azure?
Kurkula
1

votes
1

answer
291

views

Including material ui in Reactjs app

I am trying to include cdn link for my react js app. What would be the link to include material ui. http://www.material-ui.com/#/ First React App var destination = document.querySelector('#container'); ReactDOM.render( My First App, destination);
Kurkula
1

votes
2

answer
25

views

Javascript Navigate between pages with data

I have 2 pages and I am trying to navigate from page 2 to page 1. Is there any option to bind object from page 2 to page 1 element with plain javascript? The below is the basic algorithm I am trying. I am trying to check if that is possible or not and implement based on some pointers. Page 1 code Pa...
Kurkula
1

votes
1

answer
401

views

Reference to Type 'Route' claims it is defined in 'System.web'

I am trying to add a area to my application but it throws the below error at context.MapRoute I have system.web and system.web.mvc dlls referred in my application. What may be the issue? My application is targeting .Net core 2.0 Any pointers please?
Kurkula
1

votes
2

answer
225

views

Cross-Site Request Forgery Asp.net core .cshtml pages

I ran code quality analysis tool fortify on my web application and it warns me 'Cross-Site Request Forgery' on my edit and create cshtml pages. I created asp.net core mvc web application by auto generating code via entity framework models. so the generated forms are working fine for crud operations....
Kurkula
1

votes
2

answer
5.5k

views

capturing jquery Radiobutton list selected values

I am trying to get value of selected item using JQuery in a radio button list. I have 2 radio button lists and I am getting value from 1st radio button list with out any issues. But When I select 2nd dropdown, It shows the same first dropdown result in alert. Please suggest $('# input').change(func...
Kurkula
1

votes
1

answer
2.5k

views

mvc3 search results with Jquery

I am working on a Asp.Net MVC3 webapplication.I have a textbox and a button. I use a MVC WebGrid to display data in UI based on the search string. I am trying to pull mvc webgrid with out page postback using jquery. I need some help in Jquery code to populate data with out post back. What I am doing...
Kurkula
1

votes
1

answer
885

views

Resharper warnings as Visualstudio errors

Is there any way to show all resharper code review warnings as errors in Visual Studio 2012? I tried checking options in Resharper tab in VS2012 but could not figure it out. Any help would be highly appreciated.
Kurkula
1

votes
2

answer
905

views

jQuery assigning values to dropdown in a table

I am trying to assign values to dropdown list in a table by looping each row. I got struck in some place where the tr looping is not correct. Some thing like $('#myTable tr').each(function() Any help would be highly appreciated. I am trying to achieve this: Split string with comma. loop through ta...
Kurkula
1

votes
2

answer
230

views

jQuery th equals option on a table

I have a table with header th names populated dynamically as id, title, description, externalid. I am trying to find column name with jQuery as th:contans to do operation on id. But interestingly it pulls externalid instead of id. I understood that contains picks column with id, but I am wondering i...
Kurkula
1

votes
1

answer
661

views

adding placeholder to jqueryui combobox

I am trying to add placeholder to combobox from here This is what I tried but I am unable to see placeholder in combobox. Any suggestions please. $('#SelectedGroup').attr('placeholder', 'Your Text Here');
Kurkula
1

votes
1

answer
237

views

Odata url not returning count

I am trying to check total records with a filter on a odata query. But it throws error Could not find a property named '$count' on type 'Edm.Boolean'. Any suggestions? https://testodataurl.com/testService.svc/Entity?$filter=(Id eq 377 and MSF eq 'Good')/$count
Kurkula
1

votes
1

answer
130

views

Clicking on div triggers all elements with class name

I have 2 divs in my website. One with attribute clickDisabled and other with out. I am trying to click on a div and it should show warning only if its attribute has clickDisabled. But in my case both the div clicks show alert. How can I limit showing alert message to only one div with attribute clic...
Kurkula
1

votes
1

answer
2k

views

Getting expand items count with Odata v4.0.30319

I am using Odata runtime version v4.0.30319 and trying to get expanded items count in similar query http://services.odata.org/OData/OData.svc/Categories?$select=Name,Products&$expand=Products I am trying the below way. Do we have any option with odata to find out expanded items count? http://service...
Kurkula
1

votes
2

answer
939

views

csharp using sql query with special characters

I have a scenario in my csharp code where I am trying to get records with special characters / and % using sql query. I tried executing query in sql query analyzer and it worked fine after adding square brackets. Select * from tblDetails where name like '%[\]%' or name like '%[%]%' But it fails whe...
Kurkula
2

votes
3

answer
138

views

Making Asp.Net core route first and then making to React route next

I am new to react but not to asp.net core application development. I am trying to create a react application with asp.net core + react template in visual studio. I am trying to do a Asp.Net MVC route first to call controller action which has [Authorize] attribute to make sure user is authenticated....
Kurkula
1

votes
2

answer
2.6k

views

Angularjs show more ellipsis text with ng-click

I am trying to show ellipsis for div content with '...more' text. I am also trying to use ng-click to show full text on clicking '....more'. What I am trying is to add a hover class on click but having issues connecting click event to show more text. my fiddle is here Chandra is in office with his...
Kurkula
1

votes
1

answer
68

views

Display pst or universal time with javascript or jquery

I am trying to display time for a timestamp with javascript by converting it yo local time. How can I add pst or ut next to time with javascript or jquery with out other libraries? function formatTimeStamp(timeStamp) { var localDate = new Date(timeStamp).toLocaleTimeString(); return localDate; } ‎...
Kurkula
1

votes
1

answer
85

views

Calling workflow inside workflow

I am trying to read text files in a folder and read content through two work flows. Is it possible to call a workflow inside another workflow? workflow ReadFilesFromFolder { $folderPath = 'C:\Users\MyName\MyFolder' Get-ChildItem $folderPath -Filter *.txt | Foreach-Object { ReadTextFile $_.FullName...
Kurkula
1

votes
1

answer
765

views

Active directory check if user belongs to a group

I am using the below code to pull active directory groups. How can I find out if a user belongs to xyz group or not? // create your domain context PrincipalContext ctx = new PrincipalContext(ContextType.Domain); // define a 'query-by-example' principal - here, we search for a GroupPrincipal GroupPr...
Kurkula
1

votes
1

answer
170

views

Css class not working for Asp.Net MVC dropdownlist

I am trying to apply css class for asp.net mvc dropdown list. It works for editorfor case but not for dropdownlistfor case. What may be the missing part from my code? Working css class for dropdown @Html.EditorFor(model => model.role, new { htmlAttributes = new { @class = 'form-control' } }) failing...
Kurkula
1

votes
2

answer
15

views

Removing default grouping in Kendo Grid

I am trying to implement react kendo grid from this example from Kendo. I see that one column is grouped by default. I am trying to implement grouping but without one default column grouped already. How can I load data without default grouped column? I tried state = this.createAppState({ take: 10,...
Kurkula
3

votes
4

answer
156

views

ReactJs No Authorization Header is present

I am trying to get json data returned from my api call using reactjs. 1. I tried running url with valid bearer token on fiddler and it gave me correct results. 2. I tried using same url in below fetch call and used the same fiddler generated bearer token in react code. It throws 401 unauthorized er...
Kurkula
1

votes
1

answer
41

views

C# Using Dynamic string or query in lambda expression

I am trying to write a c# lambda expression with a dynamic where condition and trying to understand the type of content inside where condition. How can I call that content inside where clause dynamically? I am taking string here for example string query1 = 'p=>p.id == 1 && p.name==\'abc\' '; string...
Kurkula
1

votes
1

answer
30

views

Jquery get table row count ignoring row with class

How can I get table rows count ignoring all rows with a class? I tried the below to get all rows count from a table with certain class. This works fine. var rows= $('#myTable tbody tr.MyClass').length; When I tried to find rows length for table which do not have that class, I tried the below but it...
Kurkula
1

votes
1

answer
34

views

Is Kendo UI Core Grid open source?

I am trying to create a application which involves in heavy usage of data grid. I found in few articles that telerik kendo ui grid is free to use. As there is lot of confusion on telerik grid as open source from link 2, I am trying to check if someone really used this as open source. Is it really op...
Kurkula

View additional