c#
Cannot declare any signed Integer types in C#
I’m working on an ASP.NET application in Visual Studio 2019. I’m running into a problem I’ve never encountered with C# before. I seemingly cannot declare any integer types other than UInt64.
How to convert a string to decimal with 2 decimal places?
I’m trying to convert a string to a decimal but have the last two values be the decimal point. Example: “001150” be converted into 11.50.
DataBind to a static dropdown in Gridview is not working
I have crated a screen with a Grid. The Grid contains a dropdown along with some textbox fields. They all are fetched from same table.
I am able to select a value in dropdownlist and it updates the database correctly . But once updated , it does not display correctly back on screen. It displays the first Item in the dropdownlist. The text boxes are reflected correctly but not dropdown.
What am I missing ? Having issues with binding the data to dropdown within a Grid.
How to return multiple values from a C# WebAPI?
I have a Web API Endpoint with the following signatures.
how to clear ImageUpload and Checkbox in ASP NET?
I’m building a sales page and setting up the Admin page at the moment. I have 4 Asp:Fileupload and three asp:checkboxes i want to clear when the user press the Add button.
I tried to search for the answer and looks like a foreach could fix it but i don’t know what to write inside the ( ) . Can’t find the right way to point out where the boxes are inside the AddProduct.aspx.cs .
Sharing JWT Authentication/Authorization
Greetings programming community.
HttpContext.Current is NOT null in a Console App running in Microsoft Azure WebJobs
The problem I am facing with my Console App that is running in Microsoft Azure WebJobs is that HttpContext.Current is not evaluating to null. In other words, When I do the following, UserID is read from HttpContext.Current.User.Identity.GetUserId(), which evaluates to “”.
Is there a way in a child controller to hide actions from a base generic controller?
There is a Controller that has 7 actions that are reused by all other child controllers. It is possible to hide endpoints, if it is necessary, using “path order” in the attribute. The following code hides the parent action:
Entity Framework 6.4 Duplicating database name on tables ex: DatabaseName.DatabaseName.TableName
Entity Framework is duplicating database name on tables ex: DatabaseName.DatabaseName.TableName. My connection string config and web.config do not have duplication in them. Has anyone seen this before?
