Retrieving a portion of a url

I need your collective wisdom. I am needing to get a portion of a url so that I can pass it as a parameter to make some stuff happen. Here's what I've got: here is an example of the url "somesite/somepage/johndoe21911", I am needing to get the "2191...
more »

2017-08-15 19:08 (1) Answers

C# Sort vs JavaScript Sort

I am having following array as input to sort values in descending order: var cars = ["8587009748118224023Po","8587009748118224023PP","8587009748118224023P,","8587009748118224023P$","8587009748118224023P<","8587009748118224023P?"] In C#, I am us...
more »

2017-08-11 07:08 (2) Answers

Send email in without password

I may be Wrong but I am stuck in an issue... I want to send the email to the user using without having the password HERE is my code But I do not have the password .How can I send email to the user without having their password. protected vo...
more »

2017-08-10 07:08 (1) Answers

Email Failure in VB.NET webpage

Our company has a order page which has code in the code behind to send an email confirmation of an order using SmtpClient class. It works fine. The problem is that when there is a failure with our exchange server the email send event errors. We ca...
more »

2017-08-09 18:08 (1) Answers

IIS Express Caching

I have a .Net project that started in Visual Studio 2008, upgraded to VS 2012 and is now in VS 2015. I'm having an issue where I update basic HTML in an ASPX page and when I refresh my browser, none of the changes are pushed across. This happens ever...
more »

2017-08-08 19:08 (0) Answers

Alternative to Session Variable

I am trying to find an alternative to using a session variable. In my solution I have a project that is referenced by an ASP.NET web application and a console application. Both these applications can make changes to data and when a change is made the...
more »

2017-08-08 12:08 (1) Answers

Browser Caching in ASP.NET Core 1.1 not firing

So I followed the guide here (excluding some of the application specific items like Application Insights). Startup.cs was modified in these two areas: public void ConfigureServices(IServiceCollection services) { services.AddResponseCompression(o...
more »

2017-08-06 22:08 (0) Answers

Caching third party data - Asp.Net

I am new to caching, I have a scenario where I am getting data from third party web service. We are trying to cache data received from webservice! So next time user makes the request we fetch data from cache. Below are the two types of data...
more »

2017-08-06 19:08 (0) Answers

Regex for comma delimited list with line breaks

The format I would like to allow in my text boxes are comma delimited lists followed by a line break in between the comma delimited lists. Here is an example of what I want from the user: 1,2,3 1,2,4 1,2,5 1,2,6 So far I have limited the user usin...
more »

2017-08-06 17:08 (1) Answers

Smtp Client MVC not working in register method

I'm hey one of the most weirdest problems i have seen until now. I have the same peace of code the SMTP client. I have it in a separate class that handles sending emails so this is the constructor` // Setting the smtp info smtpClie...
more »

2017-08-06 01:08 (0) Answers

does Panel.Visible=false don't add to DOM?

I have a .aspx where in I am adding couple of panels dynamically from code behind. I want to show or hide them based on certain conditions. so I am using. Panel P1=new Panel(); Panel P2=new Panel(); P1.Visible=P2.Visible=false; if(//Panel1 condition...
more »

2017-08-02 08:08 (3) Answers

Integration of Facebook Lead ads with ASP.Net

I am looking for Integration of Facebook Lead ads with ASP.Net. I found SDK on github: But not able find any tutorial to use it. Does facebook provides Integration of Facebook Lead ads with...
more »

2017-08-01 12:08 (0) Answers

Disable Cache but enable on subdomain

Trying to avoid my main page using cache generated by /sub. Main page is in html, getting code from flask. and i have removed some "levers" to hide information for non members. /sub with member content is in .asp. Doing a fresh load without cache s...
more »

2017-07-31 01:07 (0) Answers

Can't created absolute url mvc

The task is to create an absolute URL on the controller with input parameters of type string. After all, the path to the controller will not always be localhost:1253 /Home/SetNewPassword/MyStringValue. I'll put the site on the hosting and the address...
more »

2017-07-30 10:07 (0) Answers