asp.net

Handling clusters dynamically

I created a Silverlight app, where I use DeepEarth to add sites as pin on a layer on top of a map. But now I'm having issues to create clusters for when these pins get too close to each other as the user zooms in and out. Any ideas, comments or suggestions? ...

ASP.NET: Where to store application settings?

Recently, I discovered that the "Web.Config" file contains an <appSettings> section which seemed good for storing one's Application Settings. Heck, it even has a programmatic way to access the file thru a standard System library. So being all clever, I wrote an Interface to access it and then a Concrete implementation of the interface, s...

asp.net webpage defaultDocument button click not firing.

I have developed an asp.net website in VS2010. The defaultDocument is set to default.aspx in the root directory, as I have dome many times before. For reasons unknown an asp:button in default.aspx is not firing correctly when the url is typed in without the file extension. For example, if I type the url www.mywebsite.com the default.a...

I need to send an Email notification in my exception message using asp.net MVC

Hello Friends, I need to send and Email when Any Message occurs I am trying to logg the errors once I logged it I need to send the Email to them.. Thanks ...

How can I use jquery tablesorter with an asp.net gridview?

I'm trying to add sorting of a gridview using the tablesorter plugin. However, the gridview does not render the THEAD and TBODY tags. Is there a way to get it to add them? ...

Why do I have to enable and disable radiobuttons explicitly?

When I want to change the state of radiobuttons using AJAX, I discovered that it is necessary to set the state of each radiobutton explicitly, rather than just setting Checked = true on the one that you want to have enabled. If I remove the marked lines below, I can perhaps change the radiobuttons state once or twice using the buttons, b...

ECommerce for C#.NET

Does anyone know where I could begin to look to learn how to create a basic ecommerce payment system in C#.NET? I'd prefer to create a payment system where people enter credit cards and not depend on prepaid services like paypal. Also does anyone know a gateway provider that has a marketplace type of experience, where users can transact...

OnItemDataBound doesn't show full list of items bound

I have a repeater that has an OnItemDataBound event on it. For some reason the repeater has three items being bound to it. But then I try the below it only writes '2' at the top of the page. The repeater itself does show the three items but this loop in the ondatabound event doesnt see the last item. Why? protected void colourRepeater_I...

Is there a simple way to have multiple ContentPlaceHolder controls update independently of each other?

This is a very simple ASP.NET master page example. The master page displays 4 hyperlinks and has two ContentPlaceholder controls. The first two links are to content pages that will display in ContentPlaceHolder1, the second two links are to content pages that will display in ContentPlaceHolder2. <%@ Master Language="C#" AutoEventWireup...

Where to store Shopping Cart in MVC Application?

I am working on a Railway Portal and would require maintaining a shopping cart of components user has selected, there could be multiple components of different type in the cart. I don't see a value in storing the cart in database, would like to store the final order in DB. Where can I store/hold (temporary) the cart data per user session...

ASP.NET <%= %> vs <%: %>

It seems I am missing something. But ever since .Net 4.0 came out I have been seeing reference to <%: %> syntax for ASP.NET. It seems like it is similar to <%= %> but clearly there is a reason for the new syntax. I tried google but searching <%: %> doesn't seem to return anything. What does the <%: %> syntax do? Was it introduced i...

Using Bit.ly API in ASP.NET 2.0

Hey I was wondering if anyone can point me to some example on how to use Bit.ly API in ASP.NET 2.0 ...

Update Panel - Textbox TextChanged Event is interfering with the DropDown SelectedIndexChanged event

Basics: I have a text box (txtDepositAmount) that people can enter a deposit amount into and a drop down (ddlSelectedTerm) that sets the terms. Through these two values I calculate the APY (lblCurrentApy). Rules: If only one of the values is selected I still want to do an update on the current APY label and clear it. If either ...

Sending email using ASP.NET I am getting this error

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. u6sm344516ibd.6 I have my code like this? MailAddress to = new MailAddress("[email protected]"); MailAddress from = new MailAddress("[email protected]"); MailMessage message = new MailMessa...

In OnLoad, which of two ASP.NET controls triggered a given callback?

How do I differentiate between two triggers that can both POST callbacks to the page during OnLoad? The controls themselves will automatically trigger their callback handlers, but that is too late. The background on my issue is probably irrelevant, but ... I am creating an ASP.NET web page and I have two controls on the page that can...

NumericUpDownExtender buttons same height as the textbox.

I'm using the NumericUpDownExtender control, but my buttons on the side of the textbox are bigger then my textbox, is there a way to make the buttons the same height as my textbox? Edit: I found my problem. I was using the standard buttons, which can't be handled?. Now I've created custom ones, but they won't appear on each other, but n...

ASP.NET MVC2 Multiple submit buttons, submit value null with FireFox and Chrome

I have a form with multiple submit buttons: using(Ajax.BeginForm("Submit", "myController", new AjaxOptions { HttpMethod = "Post" })) { %> <button type="submit" name="submitType" value="submit_a">a</button> <button type="submit" name="submitType" value="submit_b">b</button> <% } %> The controller method is as follows: [Authorize, Hand...

How to write the messages in the Email with two line spacess for each Message

message.Body = "Message: " + ex.Message +Environment.NewLine + "Data:"+ ex.Data + Environment.NewLine + "Stack Trace:" + ex.StackTrace; I am using Environment.NewLine., its going to next line perfectly but I need to put two line separated with ---------------- in between each message Data StackTrace. ...

How to design an ASP.NET Framework in VS 2010 TFS

Hi all, I have a rather loaded question regarding a library/framework my company uses to build websites from that I hope I can convey without too much trouble. Present Situation: Currently, we have a solution in VS 2010 that has a Web Project, "Framework_Web", which currently contains all the web pages in the application as well as o...

Confirmbuttonextender popup issue!

Hello, I am trying to get a popup after saving some data into the database. When using the ConfirmButtonExtender and ModalPopupextender, it asks for TargetControlID. So i have given TargetcontrolID to be Submit button. So whenever the button is clicked, it shows the popup, after you close the popup, it saves information in the database....