683 Questions

sw
sw
Member
134 Points
5 Posts
I'm trying to create unique key constraint with some condition like following: CREATE UNIQUE NONCLUSTERED INDEX UQ_MyTable_TypeKey ON [dbo].[MyTable]([TypeKey] ASC) WHERE [TypeKey] NOT IN(55555,75555) But it's showing run time error as  Incorrect syntax near 'NOT' Although working fi ...
Views: 13
Total Answered: 0
Total Marked As Answer: 0
Posted On: 19-Apr-2024 03:57 
 
kally
kally
0 Points
0 Posts
I want to be able to create an Authorize attribute to my controller class that I can add roles to from a database, so that I don't have to 'set' the roles during development or compile time, as in [Authorize(Roles="Role1, Role2")] etc. So, I want something like [Authorize(Roles = GetListOfRoles()]
Views: 19
Total Answered: 0
Total Marked As Answer: 0
Posted On: 19-Apr-2024 00:35 
 
Ajay
Ajay
0 Points
0 Posts
I'm using .net 4.7. Showing errow when passing special characters in the url and getting following error: A potentially dangerous Request.Path value was detected from the client (&).","Data":null,"InnerException":null Is there anyway to resolve it?
Views: 53
Total Answered: 3
Total Marked As Answer: 1
Posted On: 16-Apr-2024 06:19 
 
beginer
beginer
Member
1328 Points
43 Posts
I'm using following code to get production version: public string GetProductVersion() { var location = Assembly.GetExecutingAssembly().Location; if (!string.IsNullOrWhiteSpace(location)) return FileVersionInfo.GetVersionInfo(location)?.ProductVersion; else return ...
Views: 55
Total Answered: 2
Total Marked As Answer: 1
Posted On: 12-Apr-2024 00:20 
 
Raj
Raj
Member
496 Points
21 Posts
Getting following error and css not getting loaded in local when env. set to qa: Refused to apply style from 'https://localhost:44314/App.styles.css' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled. Anyone has any clue? Note: It's workin ...
Views: 91
Total Answered: 3
Total Marked As Answer: 1
Posted On: 07-Apr-2024 23:11 
 
Remu
Remu
0 Points
0 Posts
I tried following SQL command but not one working: IF(NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_NAME ='UQ_TableName_TypeId')) BEGIN CREATE UNIQUE NONCLUSTERED INDEX UQ_TableName_TypeId ON [dbo].[TableName]([TypeId] ASC) WHERE [TypeId] IS NOT NULL E ...
Views: 179
Total Answered: 2
Total Marked As Answer: 1
Posted On: 07-Apr-2024 22:28 
 
ykl
ykl
Member
116 Points
5 Posts
I'm using telerik for blazor in .net 8, telerik form item getting reorder or change in order when appying  conditions of controls on the basis of dropdown selection. For example: @if (HasCinema) { <FormItem Field="@nameof(Model.Cinema)"> <Template> &l ...
Views: 106
Total Answered: 2
Total Marked As Answer: 1
Posted On: 27-Mar-2024 01:45 
 
Jacob
Jacob
Member
56 Points
13 Posts
I upgraded Jquery Ui to 1.13.3 from 1.9.1. Now jquery tooltip is not parsing htm tag like <br> tags.  Jquery code: function loadNiceToolTip() { $(".niceToolTip").tooltip({ position: { my: "center bottom-20", at: "center top", usin ...
Views: 107
Total Answered: 1
Total Marked As Answer: 1
Posted On: 20-Mar-2024 23:48 
 
ykl
ykl
Member
116 Points
5 Posts
I'm getting following error: Error: System.InvalidOperationException: TelerikForm requires either a Model parameter, or an EditContext parameter, please provide one of these. at Telerik.Blazor.Components.TelerikForm.OnParametersSet() at Microsoft.AspNetCore.Components.ComponentBase.RunInit ...
Views: 223
Total Answered: 1
Total Marked As Answer: 1
Posted On: 19-Mar-2024 04:44 
 
beginer
beginer
Member
1328 Points
43 Posts
I asked following question to chatgpt: Can we use js code to open modal popup by using _content/Telerik.UI.for.Blazor/js/telerik-blazor.js? And got something like: Yes, you can use JavaScript code to open a modal popup using Telerik's Blazor UI library. Assuming you have included the telerik-b ...
Views: 234
Total Answered: 0
Total Marked As Answer: 0
Posted On: 28-Feb-2024 03:05 
 
 Log In to Chat