I've got a thread that sends emails around. I need to generate ActionLinks as part of the content of the email so the user can click on the link and be redirected to the website, exactly to the required page. I tried to instantiate a UrlHelper class and use it's Action method to generate the link but since threads don't run within the co...
I have a background service running which sends out emails to users of my website. I would like to write the email templates as MVC views, to keep things consistent (so that the same model can be used to send out an email as to display a web page).
Unfortunately, when I try to do a LoadControl (which simply patches through to BuildMana...
ASP.NET does not allow concurrent requests for the same session; meaning that a user can only make 1 request at a time.
For example, say we have Test1.aspx:
public partial class Test1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Session["test"] = 1;
System.Threading.Thread.Sleep(...
Still new to NHibernate. I'm using NHibernate 2.1.2 and the Linq provider.
I am wondering where I should put my business rule logic. For example, I have an entity called Service with DateTime property. In my web app, I only ever want to display/work with services whose DataTime is less than 4 weeks away. Where should I put that rule?
I...
Hi,
I'm using 2 asp.net ajax tab container for a mostly intranet used asp.net application in a single screen.
Thing is, eventually it might have to be accesed through internet and it's taking 15-17 seconds to load and 35-40 seconds after a Response.Redirect() when it's accesed through internet. In intranet it works alright.
I'm using...
Hi,
I'm creating composite control, which has two other components that rely on each other.
In component A (image), I access component's B (input) UniqueID which equals
MyTextBox1$BoldTextBox
I use it in onclick JavaScript code...
But in rendered HTML input element has following id
MyTextBox1_BoldTextBox
So my javascript code ,...
Can someone show an example of an HTTP Handler that returns JSON and supports cross domain calls. I am using jQuery's getJSON() that sends a request to an .ashx file on my web server.
I understand that I need to add ?callback=? to my url in the getJSON() url, but I'm not sure what needs to be done on the server in my ashx file?
...
Hello SO:
I am writing an MVC application, and I wanted to do some extra formatting so the phone numbers all are stored the same. To accomplish this I made a simple external function to strip all non-numeric characters and return the formatted string:
public static string FormatPhone(string phone)
{
string[] temp = { "", "", "" };...
Hi,
I want to Bind data to a Repeater on click of a particular Button.
I can do an ajax request via jQuery and call the method to bind the data, but on the page nothing is displayed.
This is the method I use to bind the data to the Repeater:
public void BindJobs()
{
if (RptClientDetails.Items.Count != 0) return;
RptClientDeta...
I've noticed plenty of posts on Http errors related to upload size but none of the solutions seem to work for me. I've got a web service that accepts a dataset over http, and if the data being uploaded is small like just a couple of rows, it works just fine, but when the amount of data is quite a lot (a couple of MB), I get a strange 404...
I'm using MVC 2.0 in an ASP.NET application using NHibernate.
I have a working View, Controller and data access layer using NHibernate that is able to display and save an entity with a relationship to another mapped entity:
Person -- > Location
It's using the HTML helper HTML.DropDownListFor() to display a list of all Locations. The u...
I have a standard HTML page with an CKEditor on it wrapped in a form.
The form submits (POSTS) to Send_Emails.aspx
Send_Emails.aspx reads the content of the FCKEditor into a variable
Dim html As String = Request.Form("ck_content")
Then it sends an email.
Problem
Characters such as:
 -> this seems to show as a special character fo...
Hello!
I have an aspx page which has a ASP.NET 4 menu control (rendered as ul/li's instead of tables) and a div right below it which contains a Silverlight .xap. When the user selects a menu item in the menu control, the Silverlight app gets updated. In IE 7 & 8, when I hover over the menu, the menu items are "hidden" behind the Silverl...
I have a Silverlight/RIA application that worked fine locally and on my IIS 7 server. Now that I've moved it to Azure, I'm getting EndpointNotFoundExceptions. Can you provide me with any help to try to figure out why this is happening?
[EndpointNotFoundException]: There was no channel actively listening at
'http://rd00155d3a15d6:2...
I wonder if there are some differences between creating a WCF service and an MVC web-application.
If you know of good links on how to create such a service for an MVC application that returns a JSON object please do post them.
...
I am looking into creating a new website using ASP.NET 4.0. I am currently starting to build a site that will need to store reporting information.
My database has around 25-30 tables (with a lot of relationships) to which my web application will need to store and read information from. Normally, the architecture I use is the Layered Arc...
Hi!
I have a 'shop' page, where all the items in the shop is listed. I have a sortingfunction, to decide how many results pr. page I want to see.
I also have a pager. The pager is built with two buttons (a Previous- and Next-pagebutton), and a textbox which shows the pagenumber. The pager is on both the top, and bottom of the page.
Wh...
I have table with couple of textboxes in it. In those 2 fields I have required fields. When validators fire alignment is changing. Before the validators fire, textboxes aligntment is good.
Pic1 for after validator fires.
Pic2 for before validator fires.
Here is the HTML.
<table class="Borderblue" id="Table26" cellspacing="3" ali...
Hey,
So I am using C# ASP.NET 3.5 and I would like to add a feature to my site to turn on and off a sort of debug mode for testing purposes.
Is there a best way to have a file or class that stores or returns simply if myDebug is on or off. It has to be accessed fast since it will be used a lot on multiple pages and it should be easy...
I'm trying to build a link to an external website using some properties of my model class in my view page, e.g. I want it to render as something like -
< a href="http://twitter.com/home?status=Currently reading http://www.mywebsite.com/post-id">Twitter < /a>
where post-id would be pulled from the model (I'm using a strongly typed view ...