asp.net

ASP.NET Session - Use or not use and best practices for an e-commerce app

Hi, I have used ASP.NET in mostly intranet scenarios and pretty familiar with it but for something such as shopping cart or similar session data there are various possibilities. To name a few: 1) State-Server session 2) SQL Server session 3) Custom database session 4) Cookie What have you used and what our your success or lessons ...

What can I use to asp.net store tooltip messages?

I have around 60 controls and I want to show a tooltip for each of them. I could do this manually but I want something that would allow me to make changes to the tooltip messages or the control they are bound to without modyfing the code (I don't know what this would be called). I thought about XML, but is there a better to store simpl...

simple question on asp net profile

Hi, i believe this is a simple question but i can't figure out myself. In the aspnet profile there is propertynames column with value [value]::: (e.g. OfficeKey:S:0:1:) Does anyone know what the ":S:0:1:" is? How can I read it? thanks ...

Validation of viewstate MAC failed ?

hi, I am getting this error some times, can u tell me why it is coming is there any solution for this, thank you Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ...

ASP , extract data from bbs.

HI all. im new to asp programming. i want to extract data from bbs,http://sports.williamhill.com/bet/en-gb/betting/y/5/tm/Football.html my plan is first, if i click some button, i go above page and extract 'Daily Match List'. and with extracted data, i want to remove some unneed part of html source. so what i want to extract data wi...

How do you correctly handle 404 errors in ASP.NET?

In the web.config you can add this code to handle 404 errors: <customErrors mode="Off" defaultRedirect="ErrorPage.aspx"> <error statusCode="404" redirect="/Site-Map"/> </customErrors> And this works well as you can see by this URL http://www.fundraising.com.au/thisisnotapage However, according to this website http://gsitecrawler.co...

An error occurred loading a configuration file: Exception of type 'System.OutOfMemoryException' was thrown.

When I try to build my website project I get the above error, my workstation has 2GB of RAM,Project was being built fine until today.Any Ideas what went wrong. ...

An application is working on one server but doesn't work on another?

Hi all good morning I have a new web application. I've setup the application and it's working on one server(xxx) but it's not working on another(yyy). I changed the web.config file(checked throughly and I've changed the connection string and appsettings). What could be the error? The login page is working but when I proceed a Javascr...

open/Save File Download not opening file in IE 6

i have used a code to download file it works well in IE7,, but in IE6 when i try to open the file (from open/save dialog box) its showing "The file could not be found. Try one or more of the following: Check the spelling of the name of the document. Try a different file name. (C:...\test[1].doc)" The code i ...

unload in firefox

Hi, I have a client register startup script like so: " " + "document.body.onunload = clearSession; " + ""; The script works fine in IE8 by calling the clearSession() client script but not with firefox. can anyone help please? thanks ...

Bind dropdown to local (browser) database with HTML5/jQuery/ASP.NET

Hi, So I know how to store and retrieve data in a local database (Chrome). My function to retrieve data is function SelectHandler(transaction, results) { for (var i = 0; i < results.rows.length; i++) { var row = results.rows.item(i); var customer = new Object(); customer.id = row['id']; customer.fna...

display images in local machines from a web server

Hello all, My question is about accessing local machines' files from a webserver.. I have an intranet project that works on my network.. My project is about accessing the other local machines,then displaying images from that machines.. For example my project is working on 192.168.9.170...when enter the site..it can be displayed lots ...

In process web-server for MVC2

I'm working on a project that requires an in process web server to run the web based UI. The best option I have come across is CassiniDev EDIT: did some tests and noticed that issue isn't synchronous way of processing requests, it has to do with tcp-connects. fiddler shows 1 second as the tcp-connect time. Are there any alternatives? ...

Silverlight OOB WebBrowser Exception

Hi, I've got an oob app with a webbrowser on it. The webbrowser source is databound with a URI defined by me. The URI has a path to a webpage from my server that displays a PDF file from its hardrive. Note that all this is done on a local network. URI example: uri = new Uri(@"http://ServerName/ProjectName/PDFViewer.aspx?pdf=somePDF.p...

generating an excel report, from DataTable with page breaks

Hi there I am trying to generate a report in excel format, I already have the PDF version working nicely but the component that i use for that helpfully deals with page breaks all by itself. the report data is grouped by location, so as each location in the underlying datatable changes, i need to throw a page break and re-render the he...

Inserting value to AjaxControlToolkit.HTMLEditor using javascript

I'm using AjaxControlToolkit.HTMLEditor, and I want to add value to it using javascript or jquery like this: alert( $find("eCompose_ctl02_ctl01")); // if $find("eCompose_ctl02_ctl01").attr('value') = "asdfasdfasdf asdfasd asdf sf"; also tried like this: document.getElementById('eCompose_ctl02_ctl01').value += "ababsakas asdasd l"...

Could not load an entity in NHibernate then Timeout Exception when Table is existing

I need help on this. I got this error while inserting/updating a number of records could not load an entity: [Star.CNPL_BusinessObjects.Entities.CNPL.CNPL_AgencyProduct#48][SQL: SELECT cnpl_agenc0_.Id as Id48_0_, cnpl_agenc0_.AgencyID as AgencyID48_0_, cnpl_agenc0_.ProductID as ProductID48_0_, cnpl_agenc0_.CreatedDate as CreatedD4_48_...

Entity Framework change tracking

Is there any way of tracking EF entities changes between contexts for ASP.NET applications? Self-Tracking entities doesn't work well for me as it is primarily designed for WCF. And all approaches for tracking changes for POCO I have found are oriented on shared context. ...

all mails are marked are as spam.

Hi, I am using mailbee object for sending bulk mail with smtp authentication but when i am sending the mail, all mails are marked are spam. How we fixed this issue. Thanks Atul Yadav ...

Design pattern(s) for a webservice enabled telerik treeview for navigation of a document site

I am currently working on a document management system in ASP.NET 3.5 using the Telerik AJAX toolkit. It consists of masterpage with a title banner across the top and a RadTreeview down the left hand side for navigation through the site. The treeview uses a combination of static nodes and dynamic ones. The dynamic nodes are populated via...