ASP.NET: javascript works only for 1 CheckboxDropdown and ignores the other
I'm trying to use CheckboxDropdown control (checkboxes inside a dropdownlist) using JavaScript and it worked fine but only for 1 CheckboxDropdown here is the aspx: <select id="ddlPassport" class="form-select form-select-sm"…
Determining If Entity Is Unique In Repository Pattern
Hello, Using c# and ASP .Net Core 6 I have an N-Tier web application that has implemented a Repository Pattern and Unit of Work. In this web application, an Admin can create a Hashtag, based on the following model: public class Hashtag { [Key] …
Azure DevOps REST API - Why does it take so long to retrieve parent/children work items?
This is specific to Azure DevOps REST API library, but there are no tags for it I am creating a core MVC application to retrieve all Features and child PBIs from an Area Path and Iteration path. I am using the Get Work Item and Get Workitems Batch REST…
Issue when check identity FindByNameAsync on debug it hang and stuck and not complete ?
I work on .net core 7 blazor web app . i face issue when working on identity user register . when debug on function userManager.FindByNameAsync it hang and stuck so I try to add watch to function userManager.FindByNameAsync to check reason I get message…
Publish to Azure succeeds but Visual Studio says that it failed.
With the publish profiles that I have for my Azure Web Apps, when I publish, the output information is that the publish succeeded but the publish page says that the publish failed. Usually I have fixed this by creating a new publish profile, but I have…
Localhost redirected you too many times
I have a login code that redirects users upon login - admin is redirected to admin pages inside Admin folder after login, while other users are redirected to pages in the root directory. This has been working well for quite some time; today it gave me an…
Can custom errors automatically redirect to custom error pages according to the error?
In trying to create custom pages in my asp application I found out that this code in the web config file can be used to redirect to its related custom page <system.webServer> <httpErrors errorMode="Custom"…
Hide and show div tag in a gridview based on the value of griview column
How can I show and hide div tag inside gridview based on the value of the column? For example if a column has a value of 1, then it should display a particular div and the hide the other Here is the error below I tried this and it did not…
trying to get the data from active directory
Hello, I am trying to get the data from active directory. this is my code: UserPrincipal up = UserADIdentity.GetADUserInfo(WindowsIdentity.GetCurrent().Name.ToString()); public static UserPrincipal GetADUserInfo(string userName) { …
How to hide buttons related to data table 3 button print and export and copy ?
I work on asp.net web forms . I face issue I can't hide buttons display related to table id example . from inspect element all these buttons (Export-copy-print) take class selector dt-buttons . so How to hide these buttons(print-copy-Export) . these…
Signing out the user sessions from all the browsers
A user has logged into the application with the same username (email address) but on different browsers (ex. Chrome, Firefox). Now, the user changes the password on browser 1 and is logged out from browser 1 after the operation. But as its session is…
asp.net datalist image error
hello friends, I am taking data using datalist, there are pictures in each data, but not all of the pictures are in order, so the picture in the 1st data comes out, after saying next, the picture in the 2nd data comes and the picture in the 1st data…
Error:Data source name not found and no default driver specified
Hi. I am trying to connect to IBM DB2 database from my asp.net c# web application. I have added the IBM.Data.db2.iSeries from the Manage nuget package, which in turn added the ibm.data.db2 in the reference. I added the connection string in web.config as…
Property / Field Types - string v nvachar
Premise Is the correct way to create properties (fields) to hold text in .net, to designate as "string" property types in the model which, when migrated and database created, are created by default as nvachar(max)? When I am creating a property…
fixing cannot get required symbol SSL_set_alpn_protos from libssl
ASP .NET 7.0.103 MVC application is deployed to Debian Linux 8.11 (jessie). Kestrel server with Apache proxy is used. Publish settings in latest Visual Studio are: Trying to run it in Linux throws error Cannot get required symbol…
Enrollnumber value is not passing from view to controller
I am fetching record Enrollnumber from database ,using below class public class RecordID { SqlConnection con = new SqlConnection("***"); public List<EmpMasterMV> GeneateEmpID() { List<EmpMasterMV> item = new…
Register handler for asmx in class library
I created in my classlibrary a handler class with webservice interface. Now I would like to always register it in the classlibrary (not in the web.config) so that I can call it according to a specific url. For example: /mywebservice.asmx. ideas?
How to get id value when try to loop within repeater control?
I working on asp.net web forms. I can't get value of id inside repeater control. i need to get id when loop within repeater control string Id = gvr.Items[5].ToString(); what I do within code is : 1- click on print button to update status column on…
when use update panel jquery datatable not working so how to solve issue ?
I working on asp.net web forms . I face issue jQuery data table example not working after press search button for display data on data table. I try to search for reason I found that update panel is problem . IF I remove update panel every thing will…
claim or role based access
I have a section of the site that is restricted to our younger members and sections that are restricted to adult members only. The adult members are NOT allowed to go onto the youth section unless also a parent or supervisor. Parents and adult…