Category "asp.net"

To set the value to a (textbox) server control using jquery ajax

In the below mentioned code, I am able to set the value attained from ajax call only if I am using the HTML controls(button and text). If I am using asp server

SMTP Email Works until triggering a 404 error in the middle of sending Mail

I have a table for email recipients imma database, and use the "select all" button from the gridview table as trigger to call the mail function. my iteration fu

Multipart form doesn't receive fields

I'm trying to get a file and model to my api controller and test it by sending request from fiddler. So far I have managed to receive a file using MultipartData

Why is my error message disappearing with two of the same RegularExpressionValidators in one page?

I have in a page 2 textboxes with the exact same RegularExpressionValidator. First case The page is loaded. I enter in Hour1 : 88:88 and Hour2 : 77:77. The seco

Why is my domain prefixed to the value of href of <a> and/or the url of window.Open()

Every so often (1/20) I use to have issues with the href value of a hyperlink being prefixed with my domain. Same goes for the url of window.open(). For exampl

How to effectively change authentication method in ASP. NET web.config?

I am trying to launch ASP.NET project on a local computer. IIS responds with 401.0 status code, stating that "authenticated user does not have access to a resou

Web.config causing "blocked by group policy" error

The myriad of different web.config settings have always been a bit of a mystery to me. I'm glad Microsoft has cleaned up some of the content put there by defaul

Asp.net GridView Enabling row selection

I am using GridView in asp.net. I want to select a single data row. I looked for MultiSelect and SelectionMode in property panel, but I can't find it. So how

Fetch selected item of DropDownList using $(this) object

How do I fetch the selected item of a DropDownList using $(this)? I have two DropDownLists in a web page. I want to get the selected item name. I tried 3 ways a

HiQPdf not finding the css

The website I have written requires a convert web page to PDF functionality. After looking at the options HiQPdf looked like the best option and did all that wa

unable to import MySql.Data.MySqlClient

I have created a website that uses a MySQL database, but when i put it online, it doesn't work anymore. in my class connection.vb that i use for my connection t

How to attach to IIS process (w3wp.exe) on Windows 10/IIS 10?

Using Visual Studio 2013 in Windows 8.1, I've been used to debug applications hosted in IIS by attaching to the w3wp.exe process running the Application Pool.

WEBAPI not working when i add server ip address instead of name?

I have created WEBAPI application using VS2017 and deployed into IIS. After replace my server ip address instead of msweb102 like below URL, i am getting error.

JSON file as database

I'm tring to use a JSON file as database for static content in ASP.net (an image gallery). Everything works well: I can read the file and retrieve data and disp

How to bind dynamic DataTable to DataList?

Code behind: DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("Rego No", typeof(string))); foreach (var item in list) { dt.Columns.Add(new Da

How to Bind a group by data in view in mvc5? what are the best ways to do

I am using Entityframework context, i dont know how to bind to view. I am grouping items by gender public SQLChallengeEntities Sqlcontext = new SQLChallengeEn

How to set up a stub and assigning a webresponse with Rhino mocking

I'm completely new to Rhino Mocks and mocking in general. I'm still wrapping my head around how to code the mocks. I have a test class which contains something

Why use HttpClient for Synchronous Connection

I am building a class library to interact with an API. I need to call the API and process the XML response. I can see the benefits of using HttpClient for Async

how to create a hyperlink for file download in asp.net?

I have some files stored on my machine. When a user wants to generate a link the page should generate a hyperlink. This hyperlink can be used by any other user

Convert numerical amount to words in vb.net showing Type Expected error

I am trying to convert numeric numbers to words in vb.net. But somewhere I am getting Type Expected error. Below is my entire code. I am also putting code separ