Questions tagged [system.web]

System.Web is a namespace of the .NET framework. It supplies classes and interfaces that enable browser-server communication.

System.Web is a namespace of the .NET framework. It supplies classes and interfaces that enable browser-server communication.

References

168 questions
0
votes
1 answer

Why does HtmlElementEventArgs.ToElement return null?

I am trying to detect a certain element when it's clicked in a web browser. Here's my code: try { htmlElement.MouseDown -= new HtmlElementEventHandler(webBrowser1_MouseDown); } catch (Exception) { } htmlElement.MouseDown += new…
Voided
  • 3
  • 3
0
votes
0 answers

Handling 301 and checking if Final URL Exists

I'm using the following code to check if a URL is Valid.This works as intended for Most URLs but produces False Positive Results in cases of HTTP 301 Responses.For example the URL http://www.amazon.com has 301 redirect in place. When using this…
techno
  • 6,100
  • 16
  • 86
  • 192
0
votes
1 answer

HangFire Queued Emails "Succeeding" But not Sending

I can send emails using the method when not using hangfire. When the method is called from hangfire it is shown as succeeded but the email doesnt send. BackgroundJob.Schedule( () => Email(Subject), TimeSpan.FromMinutes(1) );   public…
Sicae
  • 104
  • 8
0
votes
1 answer

Using System.Web.HttpUtility.UrlEncode in C# CLR Stored Procedure

I want to use System.Web.HttpUtility.UrlEncode(text) for one of the argument the I send in a HttpWebRequest. but I can't add the System.Web dll to my references. any way to do UrlEncode in CLR? thanks
idan
  • 97
  • 8
0
votes
0 answers

Validating URLs from Multiple Threads and Updating DataGridView

I'm trying to validate URLs from Multiple threads and update a DataTable. The validation works fine when a single thread is used Works Fine--Single Thread foreach (string url in urllist) { Boolean valid =…
techno
  • 6,100
  • 16
  • 86
  • 192
0
votes
1 answer

Checking URLs in multiple Threads

I'm trying to validate a List of URLs using the following Code class MyClient : WebClient { public bool HeadOnly { get; set; } protected override WebRequest GetWebRequest(Uri address) { WebRequest req =…
max
  • 3
  • 1
  • 3
0
votes
1 answer

Checking if URL is Valid -404/Not Found

I'm using the following method to check if a URL Exists or is valid. class MyClient : WebClient { public bool HeadOnly { get; set; } protected override WebRequest GetWebRequest(Uri address) { WebRequest req =…
max
  • 3
  • 1
  • 3
0
votes
1 answer

Umbraco suddenly login failed for user

I'm currently using the CMS Umbraco for my website to handle my blog. While suddenly the login won't work for any user. UmbracoTracelog Event Id: 0, state: Login attempt failed for username test from IP address 127.0.0.1 I've checked my MSSQL…
Kerpalito
  • 177
  • 1
  • 8
0
votes
2 answers

Check if file exist on server to read and write

I'm trying to use System.Web; to read and write into text document located on server from winform desktop application. First of all need to check if file exist. Not sure why, but System.Web does not works it is added for References as…
nikorio
  • 671
  • 4
  • 16
  • 28
0
votes
2 answers

How to get a parameter from a URL encoded?

I have the following code to get parameters and their key from a URL: string queryString = new Uri(URL).Query; var queryDictionary = System.Web.HttpUtility.ParseQueryString(queryString); var paramsList = new Dictionary(); foreach…
Cher
  • 2,789
  • 10
  • 37
  • 64
0
votes
2 answers

How to get every parameters and their value?

I use the following function: HttpUtility.ParseQueryString I'm able to extract one parameter value so far. However now I'd like if possible to obtain all parameters in an array, and another array with all their value. Is there a way to do this? For…
Cher
  • 2,789
  • 10
  • 37
  • 64
0
votes
0 answers

MVC5 DataAnnotation [NotequalTo] could not be found assembly

I am doing an MVC5, Framework 4.5.1 App. I have a Entity with DataAnnotation. I need to compare that two properties are different.. OldPassword and NewPassowrd. I think the best wat to compare it, is using [NotEqualTo] Validation. But have an error…
Diego
  • 2,238
  • 4
  • 31
  • 68
0
votes
1 answer

SSRS: URL Encoding in Report Services

I am trying to deploy a report and I added the following to the Report Properties: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. I am getting the following error message: "Error 1 Error while loading code…
DPMoy
  • 1
  • 1
0
votes
1 answer

System.Web.PreapplicationStartMethod Not firing ASP.NET MVC4

I have used this method before in the assemblyInfo.cs folder of an asp.net mvc4 project. I am starting a new application and putting together the foundation and so far I have added ninject and log4net. Now I am trying to call a static method from a…
eaglei22
  • 2,589
  • 1
  • 38
  • 53
0
votes
0 answers

c# - System.Web.Exception 401 while posting data

My request method /// /// The formal method to use HTTPWebRequests. /// I got the headers out of Fiddler. I highly recommend this tool to follow HTTPWebRequests. /// Some Headers are unnecessary but i will use them for a…