Content


CSS for grid layout?
Hello all: I have an ASP.NET MVC site, so on the image of the page the green header and footer on the overall page is from _LayoutStatic.cshtml, and I tried a blank page but that made no difference. I am trying to create a simple Grid layout in the main…


when user if user leaves blank any step cursor to where error is taken (jquery)
when user if user leaves blank any step cursor to where error is taken For Example var name = $('#name').val(); if (name == '') { $('#name').css('border-color', 'red'); alert('Please write your first and last name') return false; } else…


Web form issue
Hi, I get "undefined" unexpectedly to the column/field below, while there is the proper row value returned from the table. What is the reason? html += "<td >货币</td><td style='font-weight:…


404 issue to the file
Hi, Due to issue like What to adjust below? <body style="background-color: ???; background-image:url(beautiful_Currency0e.jpg);">


How to convert xml to style so that browser can render html from xml when using RSS
I have downloaded a app called MessageBoard and trying to configure RSS Feed to output serialised data to browser. The result display a error message with code written in xml format. This XML file does not appear to have any style information associated…


the taghelper do not rendered?
using Microsoft.AspNetCore.Razor.TagHelpers; namespace tag.Components { [HtmlTargetElement("pagination", TagStructure = TagStructure.WithoutEndTag)] public class PaginationTagHelper : TagHelper { …
What is the difference of = and {get;set;}?
public int PageIndex{get;set;}=0; public int PageIndex=0; what is the difference?
How to setup Vnet integration between ASP.NET 4.8 Azure Service V3 app and SQL Managed Instance?
I just created a simple ASP.NET Web Forms app to Azure Service - Premium V3 plan. This app runs fine as long it does not access our database in SQL Managed Instance (MI). When trying to access the database (a simple SQL SELECT statement in the…


How to remove validation-info in text?
in Index.cshtml <form> <div class="row"> <div class="col-sm-2"> <label class="col-form-label">客户:</label> <div> …
How to use HttpContext or Claims in __Layout.cshtml?
I am using asp.net core 7.0 how to get UserClaims in Pages/Shared/_Layout.cshtml ? I do not want to use ViewData because I have to set it in each page.
Getting User Details from Azure AD in ASP.NET
In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…


How to clear text box records before or after downloading a file in ASP.NET web application
using (FileStream fs = File.Create(dataDir + xmlFileToConvertTo)) { Byte[] info = new UTF8Encoding(true).GetBytes(xmlData); fs.Write(info, 0, info.Length); …


Asp.Net web application with Token implementation
Hi, In my Asp.Net (aspx) web application, we are using form based authentication. As part of modernization, we are asked to move to token based authentication. How will I enable token based authentication in my application without impacting the current…


How can add Phone Number Charecter Validation asp.net mvc web
Guys I have question How can Add Phone Number Charecter Validation For example.. User writing 8 charecter but ı want minimum 10 charecter and maximum 20 charekter how can add ? Model index.cshtml


Trying to upload excel file size 2 MB, when rows are more than 10000 then reading only 6000 rows and remaining rows are not added.
I am using Asp.net, using FileUpload control trying to read excel file and converting them into StringWriter. IF StringWriter data is processed directly in SQL query I can see all the rows are available but when I run through interface then I can see…


How Do I Return ContentDisposition.FileName -PDF from a Method To be Attached to MailMessage
Please I have a method SendRenewalNotification() that calls another Method PolicyScheduleGenerator() to get PDF that it will attach to a MailMessage. The SendRenewalNotification() is pasted below: private void…


How Do I Return ContentDisposition.FileName -PDF from a Method To be Attached to MailMessage
Kindly show me how to achieve this. I have a method SendRenewalNotification() that sends Policy Renewal Notification to Clients. This Method calls another Method called PolicyScheduleGenerator() that Generates PDFs to be attached to MailMessage. …


how to use components in razor pages?
I know I can use component like this: <component type="typeof(Editor)" render-mode="ServerPrerendered" /> but can I use it like <Editor /> or <my-editor /> with out import blazor?
can i make a website with asp .NET on which i can embed different free tools made on JavaScript?
I want a website like this one: https://ahbtools.com but the question is can I embed different tools made in JavaScript on an asp .NET? if yes how? anyone knows the solution provide me a link or some explanation. thanks.

