Microsoft Q&A

ASP.NET

1,175 questions

A set of technologies in the .NET Framework for building web applications and XML web services.

Browse all .NET tags

1,175 questions with ASP.NET tags

Sort by: Updated
1 answer

Parameters in ASMX webmethod

I have a WebMethod in plain old asmx Webservice which accepts a couple of parameters in json format eg {"param1":1, param2="string"} however if the sender attaches additional parameters in the list eg …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-03T15:02:53.197+00:00
m2022 1 Reputation point
commented 2023-01-05T06:00:34.757+00:00
Lan Huang-MSFT 8,876 Reputation points Microsoft Employee
0 answers

ASP.Net 4.7.2 application - IIS 10 - Forms authentication - Logging out intermittently with Event code - 4007 (URL authorization failed for the request)

We are facing intermittent logout issue(all logged in users redirects to application warning page) sometimes after 3 mins of browsing or sometimes user can able to browse for 10-15 minutes before automatically log out, In event viewer application logs,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-04T13:47:01.733+00:00
Satish Karambalkar 1 Reputation point
commented 2023-01-05T03:00:12.857+00:00
Yurong Dai-MSFT 1,041 Reputation points Microsoft Employee
4 answers One of the answers was accepted by the question author.

Connection ID required SignalR Asp.net core Web api

Good Day Everyone i have created a Asp.net Core web api for the purpose of SignalR my hub is defined like this public class ChatHub : Hub { public ChatHub() { } public void SendMessage(string AUTHOR, string…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,804 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
asked 2023-01-01T23:19:10.33+00:00
Vuyiswa Maseko 351 Reputation points
accepted 2023-01-04T10:42:25.85+00:00
Vuyiswa Maseko 351 Reputation points
2 answers One of the answers was accepted by the question author.

SqlCommand issue

Hi all, There is the proper existing connection on Webconfig file. What is the reason to the issue below?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-04T06:19:52.873+00:00
Peter_1985 1,831 Reputation points
answered 2023-01-04T07:04:50.613+00:00
Olaf Helper 25,556 Reputation points
0 answers

how to permanently delete photos [with photo name] from telegram using api in asp.net c#

I am looking to delete a photo(test.png, permanently from telegram) sent by my bot using telegram API and I'm able to deleting the photo(message) using deleteMessage so if I use the same photo with the same name (photo ex :- test.png) and modifying that…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-02T07:34:04.103+00:00
Ashok Kumar 121 Reputation points
1 answer One of the answers was accepted by the question author.

Help with if statement in repeater

Hi, How can I add If statement to repeator, this line: <%# double. Parse(Math.Round((Replace(Eval("VPC"), ".", ",") / 7.5345), 2, MidpointRounding.ToEven)).ToString("0.00") & " €"%> …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,827 questions
asked 2022-12-31T13:48:29.817+00:00
nickCroat 96 Reputation points
commented 2023-01-01T10:38:10.667+00:00
nickCroat 96 Reputation points
2 answers

How do I insert image data directly from an asp:Image control, not through file upload control?

I have a code that inserts image into database table, the image file comes from a file upload control, with a file name. But I want to insert an image that comes directly inside asp:Image control. How do I do this please? I can't get this part right …

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,923 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-26T12:23:01.097+00:00
Donald Symmons 941 Reputation points
commented 2022-12-31T13:44:58.717+00:00
Albert Kallal 3,446 Reputation points
1 answer

Adding logo image from asp:Image control to a QR code image

I have this C# that generates QR code image, but I want to be able to place a logo in the middle of the QR image. The logo image will be gotten from an image asp:Image control. I search for solutions online but I could only find that they all get their…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,923 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-26T12:55:34.267+00:00
Donald Symmons 941 Reputation points
commented 2022-12-31T00:33:57.793+00:00
Donald Symmons 941 Reputation points
1 answer

ASP.NET WEBFORM GRID

Hi, i have created a grid and want to save data from textboxes to grid on a Modal. The update only happens after postback event. I have added an update panel with Asynchronous trigger on button click. Now grid updates without refreshing the page…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,827 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-29T15:06:32.387+00:00
AJKruger 1 Reputation point
answered 2022-12-30T20:43:24.52+00:00
Albert Kallal 3,446 Reputation points
2 answers One of the answers was accepted by the question author.

Datetime issue

Hi, How to resolve cannot convert from 'System.DateTime' to 'string' on this line below? tb_Update_date.Text = DateTime.ParseExact(DateTime.Now, to_dt_format, CultureInfo.InvariantCulture);

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-30T05:07:11.507+00:00
Peter_1985 1,831 Reputation points
accepted 2022-12-30T07:59:44.7+00:00
Peter_1985 1,831 Reputation points
1 answer One of the answers was accepted by the question author.

SQL+VB+ASPX Web Pick datat from sql db as per date selected in textbox

Hi I have a SQL+VB+ASPX Web in which I want to select data as per date . But when i change date field to date then its working if its datetime then its not working. My code is appended below. Str = "Select Opening from Production1 where…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-03T06:45:07.997+00:00
Baiju EP 121 Reputation points
accepted 2022-12-29T10:57:04.22+00:00
Baiju EP 121 Reputation points
1 answer One of the answers was accepted by the question author.

500 - Internal server error

Hi, The project was properly deployed on the server but I has the issue below. What to check it further? Server Error 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
482 questions
asked 2022-12-20T09:23:10.52+00:00
Peter_1985 1,831 Reputation points
accepted 2022-12-29T03:34:56.727+00:00
Peter_1985 1,831 Reputation points
1 answer One of the answers was accepted by the question author.

Enabling HTML, CSS, and JavaScript in Visual Studio 2022

I have updated the latest version of Microsoft Visual Studio 2022. Since I have books that concentrates on web development, I want to enable design time and runtime operation abilities on that framework. I am unsure which libraries to include, if…

.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
482 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
144 questions
asked 2022-12-28T08:02:22.287+00:00
John 121 Reputation points
accepted 2022-12-28T22:57:52.737+00:00
John 121 Reputation points
1 answer

Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource.

Greetings again. Hoping to get a quick solution from you experts. I am still working on converting our app from LINQ to 'regular' asp.net code. The following is the LINQ I am trying to convert: var iaddresses = from a in…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-28T16:37:13.687+00:00
Simflex 81 Reputation points
answered 2022-12-28T17:07:02.023+00:00
Simflex 81 Reputation points
2 answers

How to show tooltip error message in asp.net codefile page using jquery

I want to show an error message using tooltip while we validating the textbox on button click event using jQuery in asp.net c#. I have add an aspx page to master page and in master page after footer I used this script links for tooltip bootstrap …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 questions
asked 2022-11-21T14:18:08.16+00:00
Ashok Kumar 121 Reputation points
commented 2022-12-28T08:32:39.31+00:00
Lan Huang-MSFT 8,876 Reputation points Microsoft Employee
1 answer

how can I go to aspx.cs only if js return true?

I did like this in js (i need to check if the credit card details are correct). so I want instead of the return true to send it to aspx.cs if (submit != "") { if (card != "" && validity != ""…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-16T13:07:08.307+00:00
shilat shay 1 Reputation point
commented 2022-12-27T05:42:28.637+00:00
XuDong Peng-MSFT 4,571 Reputation points Microsoft Employee
1 answer

How to Bind data to multiple dropdown <WebMethod()> Asp.net VB

Hi, Please help me with the following; I would like to bind dates to multiple dropdown options at once. I can able get one and bind dropdown (ddlRegnList), wanna bind another one dropdown (ddlBranchList), how to do simply? <WebMethod()>…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-25T15:22:12.713+00:00
Aypn CNN 386 Reputation points
answered 2022-12-27T04:41:48.457+00:00
XuDong Peng-MSFT 4,571 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Confirming a strong encryption code

Hello Forum, May I please ask if I encrypt the <connectionStrings> and <machineKey> sections of the Web.config file, will a hosted server automatically decrypt them when it processes the file? Because I read that ASP.NET…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,296 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
1,889 questions
Internet Information Services
asked 2022-12-20T09:12:31.283+00:00
Donald Symmons 941 Reputation points
accepted 2022-12-26T11:02:06.823+00:00
Donald Symmons 941 Reputation points
1 answer One of the answers was accepted by the question author.

Articles Page: How do I create a page where I can post related articles on my website?

I really don’t know how to start with this. I want to create a page where I can be adding new articles, update articles and display date and time when an article has been updated or added. The time will be displayed just like in the image below;…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,923 questions
asked 2022-12-22T08:07:11.43+00:00
Donald Symmons 941 Reputation points
accepted 2022-12-26T11:01:11.823+00:00
Donald Symmons 941 Reputation points
2 answers One of the answers was accepted by the question author.

asp.net calendar - change date selector control

Can i select the date by clicking the cell of the date instead of the date character? Thanks.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-24T03:01:54.557+00:00
WONG Tony 121 Reputation points
accepted 2022-12-25T02:00:03.033+00:00
WONG Tony 121 Reputation points