Kurkula

0

votes
1

answer
24

views

ArgumentException: The 'CallbackPath' option must be provided

I implemented active directory authentication for my Asp.Net core 2 application. Every thing works fine on local but once I deployed the application to server it throws error "ArgumentException: The 'CallbackPath' option must be provided." I added call back path on my appsettings file: tried both:...
Kurkula
1

votes
2

answer
157

views

css background to radio button

I am trying to set background color to radio button with instead of using an image. I tried with checkbox and it worked. Can I try similar code for radio button also which work in all browsers? Like adding div with curves on all ends is just an idea. Please suggest My fiddle is here Test1 Test2 $('d...
Kurkula
1

votes
2

answer
2.3k

views

Chosen Dropdown cascading issue

I am using Chosen cdn to display dropdown with cascading. But I see one more extra dropdown displayed after selecting value in first dropdown. total 3 dropdowns are populated one is select group and other 2 are Select App. Out of 2 newly populated dropdowns one has app values with no chosen style an...
Kurkula
1

votes
1

answer
1.2k

views

harvest chosen plugin fails to show validation messages for asp.net mvc dropdown list

I am unable to get validation messages after changing my dropdownlist to chosen dropdown list. Chosen plugin can be found here Jquery code $('#SelectedPropertyGroup').chosen(); UI Code @Html.DropDownListFor(x => x.SelectedGroup, Model.Groups, "Select Group", new { @onchange = "javascript:Validat...
Kurkula
1

votes
3

answer
850

views

Show tooltip for disabled items

I have a div with disabled items. I am using jquery ui to display tool tip. Tool tip is shown for enabled items but not for disabled div. How can I show tooltip for disabled div also? Here is my fiddle item is enabled item is disabled #divDisabled{ opacity: 0.2; pointer-events: none; }
Kurkula
1

votes
3

answer
56

views

Looping though form for disabled controls

I have a form with input, select,radiobuttons etc where i want to check control ids with attribute [disabled=disabled] I am trying to apply class to all items at a time and planning to get output with all disabled controls separated by comma. Is my approach correct? etc., $("input[disabled]").each(f...
Kurkula
1

votes
3

answer
40

views

is string variable and string variable with string.empty same?

I have many scenarios in my application where I am declaring strings as string.empty and later dynamically adding values to it. In C#, Is string status and string status = String.Empty; same?
Kurkula
17

votes
1

answer
1.2k

views

Visual Studio toolbox code snippet

Hi I am trying to create code snippets in my tool box. I dragged code from my code view to toolbox, renamed snippet code to name exSnippet1. I am trying to find out -- > Instead of dragging and dropping Can I add code snippets to toolbox dynamically through code to below file ? ..\My Documents\Visua...
Kurkula
18

votes
4

answer
40.8k

views

asp.net mvc razor foreach loop adding id to div

I am trying to add dynamic id to div inside a foreach loop concatenated with value of variable i. It throws syntax errors. What might be the issue. Can we achieve this solution without using a for loop ? @{int i=1;} @foreach (var or in Model.Names) { @or.Name i++; }
Kurkula
2

votes
1

answer
55

views

c# datetime format unable to compare

I am trying to compare date with format I require but it always fails that FormatException: String was not recognized as a valid DateTime. I am using correct format but what may be the issue? My Sample Date format: "2018/04/13 18:56:02" string format = "yyyy/MM/dd HH:mm:ss"; //date should always be...
Kurkula
6

votes
1

answer
4k

views

Setting Gated Check-in build option in Visual Studio Online

I have added a Visual Studio project in Visual Studio Online at sitename.visualstudio.com. How do I enable a gated check-in build for all checkins in the Visual Studio Online web access portal? Do we have option to send code for review in Visual Studio Online's web access portal as well? Where can I...
Kurkula
5

votes
1

answer
8.4k

views

jquery autocomplete not filtering data

I am working on Jquery UI autocomplete to pull data and piopulate based on text I type. Data is getting populated on typing text in textbox Issue was data is not filtered based on what I typed. What would be the issue in below code $(document).ready(function (){ $("#tbxPG").autocomplete({ source:...
Kurkula
1

votes
3

answer
2.2k

views

Displaying Tooltip on right end of control with arrow background color

How do I display tool tip to right end of control with arrow facing to right end of control and change background color of arrow to red? This is what I tried $( document ).tooltip({ position: { my: "right bottom-20", at: "center top", using: function( position, feedback ) { $( this ).css( position...
Kurkula
1

votes
3

answer
675

views

jquery select size attribute changes

I am trying to add fixed height to html dropdown and it works only for first change event. How can I make it work every time on dropdown event change? Here is my code $("select#mySelect").on('focus',function(){ $('#mySelect').attr('size','5'); }); $("select#mySelect").on('change',function(){ $(...
Kurkula
20

votes
6

answer
29.9k

views

Jquery sort table data

I got struck in sorting tds in table using jquery. My Demo fiddle How can I call it for any table with id in my project? var $sort = this; var $table = $('#mytable'); var $rows = $('tbody > tr',$table); $rows.sort(function(a, b) { var keyA = $('td:eq(0)',a).text(); var keyB = $('td:eq(0)',b).text()...
Kurkula
2

votes
1

answer
6.3k

views

Adding Chosen plugin to my website

I am trying to add chosen jquery plugin from cdn at the below link. http://cdnjs.com/libraries/chosen/ I am working on a asp.net mvc application and added the scripts in layout page as below. My question is in top scripts Am I doing right code to reference sprite files ie chosen-sprite.png, chosen-s...
Kurkula
5

votes
2

answer
2.3k

views

C# string concatenation in Lambda expression

String qry = "p => p.Title == "Test" && P.Status=0; myProjects = dataAccessHelper.GetMyDetails(id). Where(Append qry string here).ToList(); I am trying to append my query string output to where in Lambda expression. It works fine if I take myProjects = dataAccessHelper.GetMyDetails(id). Where(p => p...
Kurkula
4

votes
2

answer
8.4k

views

Rich Text Area in MVC3

Do we have any Rich Textbox/Textarea options in MVC3 or do we need to use jquery RichTextbox plugins?
Kurkula
3

votes
2

answer
2.4k

views

Asp.net mvc dropdownlist add items on scrolling

I am looking for asp.net mvc dropdown list which can adds records if scrollbar is scrolled. I am completely beginner to this area. Could some one guide me on how to implement this or any reusable code such as Scroll event takes to controller,get records and append to dropdown last item. I think any...
Kurkula
6

votes
3

answer
820

views

jquery apply css to all elements except second row

I am trying to move all rows data except second row using jquery. How do I achieve that? My Fiddle $(document).ready(function() { $("#tblTest tr:nth-child(2) td").css("padding-left", "30px"); //$("#tblTest tr:not(nth-child(2)) td").css("padding-left", "30px"); });
Kurkula
1

votes
4

answer
110

views

php form to email not sending email [duplicate]

This question already has an answer here: PHP mail function doesn't complete sending of e-mail 24 answers I am new to php and trying to send email to my gmail through form. On clicking submit, i dont see any error on the page but I dont get an email. My from id and to mail id exists and from email...
Kurkula
3

votes
2

answer
6.6k

views

Jquery Adding text to a span

How can I add text to this span? What I tried till now is the following: var msg = $('#[data-valmsg-for="Classifications"]').val(); alert(msg); Could some one throw idea on this.
Kurkula
1

votes
3

answer
333

views

Declaring list with anonymous type

I am trying to declare list which has anonymous type in it. I have tried to assign list value to null and also tried to assign list to new entity list but it shows error. Any pointers? var finalEntries = new List(); var groupedItemList = _context.MyDbTableEntity .Select(k => new { name = k.name.ToSt...
Kurkula
2

votes
1

answer
2.5k

views

jquery flot graph displaying week days

I am trying to update a flot chart for one week statistics Here is my code with numbers, Can I change the x axis values to week days? similarly i am trying to show days in month for monthly graph. How to show weekday names instead of numbers $(document).ready(function () { var d1_1 = [ [1.0, 120],...
Kurkula
2

votes
2

answer
416

views

css moving div below text results

I am trying to move a div below auto complete search results. But i am unable to push the div below autocomplete results after user starts typing. I am trying to implement searchbox similar to www.microsoft.com. Any help would be highly appreciated. Here is my Fiddle code var availableTags = [ "Deta...
Kurkula
1

votes
1

answer
586

views

AngularJs simple custom service not working

I am new to angular and trying to create a new custom service and pull data on view. What may be the issue here? service data is {{serviceData}} var app = angular.module('myApp', []); app.controller('myCtrl', function ($scope, myService) { $scope.serviceData = myService.getDetails; }); app.fa...
Kurkula
2

votes
6

answer
1.3k

views

Button click does not show title in an alert when tooltip is active using jQuery UI

I am trying to show an alert with jQuery for a button click that displays the value of the title attribute in an alert. I am unable to show it, the alert message displays an empty string. Here is my trails Clicking on #btn1 shows empty title. Why is the title attribute cleared on click? Is $(documen...
Kurkula
4

votes
3

answer
788

views

Asp.Net MVC razor graph using jquery ajax call

I am trying to bind data to graph through razor. I pull data through a jquery ajax call and planning to bind the resultant data to graph. Is there any option to include razor code inside jquery success function? How can I bind count values to x,yValues in chart code? https://www.asp.net/web-pages/ov...
Kurkula
1

votes
2

answer
1.1k

views

Updating entity data to Azure storage table

I have a scenario where I insert/update data to Azure storage table 2 values MyValue and MyDate. There are few scenarios where I have to update only 1 value MyValue and not MyDate. But When I do update operation, it updates bothe the values. It changes myValue but makes MyDate to null. Is there any...
Kurkula
1

votes
1

answer
192

views

Formatting SQL Server date causes datatype issue

When I tried this SQL query select format(getdate(), 'yyyy-MM-dd HH:mm:ss.fff') I get this result: 2016-07-01 23:19:16.573 But when I try this, it throws an error: select format('2016-06-28T23:44:23.7573244Z', 'yyyy-MM-dd HH:mm') Error: Argument data type varchar is invalid for argument 1 of format...
Kurkula
2

votes
3

answer
71

views

Javascript new Date decreases date by a day

I have a scenario where I am using AngularJS to read date. Interestingly it decreases my date value by one. Why is this happening? new Date("2016-01-06T00:00:00") give me result as Tue Jan 05 2016 16:00:00 GMT-0800 (Pacific Standard Time)
Kurkula
12

votes
3

answer
42.8k

views

Angularjs toggle div visibility

I am trying to toggle a div text on click of a button. I tried taking a scope variable and toggeling classname based on the variable. Where am I making the mistake here test hello test function ctrl($scope) { $scope.state = vis; $scope.toggle = function () { state = !state; }; } .vis{ display:n...
Kurkula
2

votes
2

answer
803

views

Getting id of Asp.Net MVC Auto Complete TextBox

I have a Textbox where I am getting Json Data to show data in textbox @Html.TextBox("tbxSearch", null, new { data_url = Url.Action("GetSearchData"), data_maxValues = 10, data_valueHiddenId = "#value" }) On typing in textbox I am getting Json Data as [{"label":"ABC","value":186},{"label":"DEF","value...
Kurkula
2

votes
1

answer
44

views

Jquery issues with string as parameter

I have a jquery code where I am calling a string as parameter and using it in side the function. but it is taking parameter as integer. function CheckIsApplicable(MsNo) { var queryUrl = 'GroupEntity?$filter=(MSNumber eq ' + MsNo + ')'; } MsNo is a string and the way the odata url considers it is...
Kurkula
3

votes
1

answer
3.7k

views

C# reading Excel cell values using Microsoft.Office.Interop.Excel

I am trying to pull Excel cell values. I am able to pull a row value successfully. What should I do to pull each cell value out of the row? using Microsoft.Office.Interop.Excel; string pathToExcelFile = @"C:\Users\MyName\Desktop\Log.xls"; Application xlApp = new Application(); Workbook xlWorkbook =...
Kurkula
4

votes
1

answer
733

views

Asp.Net MVC Core enabling double escape

I am working on a asp.net mvc core application and trying to allow double escaping. My Edit url has a phone number as hyperlink (Ex: +123). I know how to do with a normal asp.net mvc application. I used to change web.config file as But I am right now on Asp.Net MVC Core application with out a web.co...
Kurkula
1

votes
5

answer
90

views

Get substring from some char inside string

I am trying to get substring ie address from the below string string test = "name: abc loc: xyz address: tfd details: ddd"; Is there any substring option to get only address details like "tfd" I am trying by splitting and I think this is not the best option to get middle string. test.Text.Split(':'...
Kurkula
1

votes
1

answer
2.1k

views

authContext.AcquireTokenByAuthorizationCode not working with latest System.IdentityModel.Clients.ActiveDirectory

I used the below code for azure active directory authentication. it fails at authContext.AcquireTokenByAuthorizationCode stating that this method does not exist. when I tried to verify it shows that in version 3.1 dll. There is authContext.AcquireTokenByAuthorizationCodeAsync method. I am unable to...
Kurkula
1

votes
1

answer
1.7k

views

Get user details with ClaimsPrincipal.Current

I am using azure active directory authentication to pull user information. I am able to get user details using ClaimsPrincipal.Current. Is there any option to get Reporting Manage alias or name with this? string userObjectID = ClaimsPrincipal.Current.FindFirst("http://schemas.microsoft.com/identity/...
Kurkula
3

votes
2

answer
8.4k

views

Sql Query throws Identifier is too long. Maximum length is 128

I am working on a simple update query and i see the below error while executing query. I am very much clear that this should not be a length issue at all. What may be the problem. Error: The identifier that starts with identifier is too long. Maximum length is 128 My Query: update dbo.DataSettings s...
Kurkula

View additional