asp.net

Why can't I validate values with the $ symbol in it?

I am using a CompareValidator to check user input on one of my forms but for some reason it will not allow me to enter a dollar sign. According to MSDN the currency data type in the compare validator allows: A decimal data type that can contain currency symbols. I am using the control below to validate: <asp:CompareValidator I...

Dynamic URL Rewriting in ASP.net C#

Hey Guys, I am looking to dynamically rewrite urls in asp.net C#. I want to read the page name from the database and process the request. For example PAGENAME: Home .NETPAGE: Default.aspx?page=1 I think it is possible, can someone point me to right direction. ...

Web service returns 500 error if I add system.runtime.cache with named cache on server

My webservice doesn't render when I add the following to the web.config: <system.runtime.caching> <memoryCache> <namedCaches> <add name="testNamedCache" cacheMemoryLimitMegabytes="0" physicalMemoryLimitPercentage="0" pollingInterval="00:01:00" /> </namedCaches> </memory...

How to invoke a Windows Scheduled task or a batch file on a server different to the IIS server

I have a asp.net web site, I would like a page on that site to be able to invoke a Windows Scheduled task or a batch file on a server different to the IIS server? Is it possible? How should I do this? ...

Sending Fax through .NET/C#

How do I go about sending fax in .NET? We have a fax server through which we need to fax documents to clients. Since we have a fax server, I don't imagine that I have to configure a fax modem on my machine, right? It would just go through the fax server? Are there any good free (or cheap) Fax APIs out there? IN my research I've come a...

Unity and ASP.NET WebForms - No parameterless constructor defined for this object

Does anyone have any good examples of how to make Unity 1.2 or 2.0 work with ASP.NET WebForms? I thought I had this figured out, but evidently I'm missing something. Now I'm getting the error; "No parameterless constructor defined for this object". I remember getting this error a couple years ago, I and just don't remember what I di...

Base class for an ASMX webservice - calling the derived method from the base class it self

Hi folks, I have a bunch of asmx web services, and in all the methods inside the webservices follow a common pattern public virtual TestObject Test() { LogRequest; try { DoSomething; } catch { LogException; } LogResponse; return response; } and all the methods follow this pattern, there is a lot o...

Yotube like comment-Show link over textarea when user try to add a comment

Hello Everybody, I'm working on asp.net application.And i'm looking for a way to show a link over a textarea when a user try to add a comment if the user is not loggd in. I've got this idea from Youtube videos comments.If ur not coonected,they show a link saying u have to login to be able to add a comment. Does anyone has an idea how ...

ASP.NET MVC - Passing a parameter to my action method?

public ActionResult RenderMyThing(IList<String> strings) { return View("RenderMyView"); } How do I pass in strings? routes.MapRoute("MyRoute", "RenderMyThing.aspx", new { controller = "My", action = "RenderMyThing" }); Is there a way I could pass in strings here? Secondly, how does ASP.NET MVC know that ...

Ultra simple ASP SQL on GoDaddy free hosting.

I know it can be simple to access a mysql or sql database on godaddy.. i have done it before, but now i have lost the code. Now the code that should be working just comes up with a security exception. So how do i create a asp or aspx file on my godaddy free hosting account that will connect to a database i have already set up (mysql,sql...

Display message in repeater when no row found

Hi, I am using ASP.NET repeater and I want to display No Row Found message when query return 0 rows from database. I know its there in GridView. Regards ...

How To Query A Database That's Being Used By Asp.Net

I have a Sql Server 2008 Express database file that's currently being used by an ASP.NET application, and I'm not sure how to query the database without taking the website down. I'm unable to copy the database files (.mdf and .ldf files) to another directory, since they're in use by the web server. Also, if I attach the databases to an...

Is there anything I can do to optimize the tab loading in javascript ?

My colleagues have create a website and there is a webpage which contains a Tab. He Implement the tab with the following method: 1.Load all content of the page 2.Use javascript to display those group content as block and organize them into tabs. 3.when user click one tab, then acitve it, and hide all other tabs. And these functions...

asp.net menu item with jquery rounded corner

Hi Guys, I have a requirement by which I need to have something like below as the background of my asp.net menu item background. NOTE: The menu is populated by sitemapdatasource which is dynamic depending on querystring. I was doing some googling up and found that I can apply JQuery's rounded corner functionality along with asp.net m...

Check for Session before returning it ?

Hello guys I have a function inside a utility class which returns the current session User ID. It throws object reference not set to instance of object ? How do I check it for null & remove this error ? public static string GetSessionUserID { get { string userID = ""; if (System.Web.HttpContext.Current.Session["u...

how deploy asp.net project which use Crystal Report 2008

i have created asp.net web application which use Crystal report 2008. Now i want to publish this project. i have installed full version of Crystal report 2008 on server. And all works good. But my bosh does not want Full Crystal Report 2008 to be installed on server. now my question: what i can do? Thanks ...

File save in asp.net and save information in DB

Hi, I am creating the user ,using asp.net + C#.there is the form (UI) who collects the information and send data to Business layer. now, while collecting the information from UI I want to also save the image of user, at file system in application domain. There is function in the business layer as SaveImage, which returns the path where ...

Strange Caching issue with ASP.NET MVC using Linq

Using asp.net MVC in c#, I am making a call to a stored procedure using Linq into my SQL Members table. I have no internal caching on the application, already checked to make sure it is turned off. Test case: I have my username set to test1. From the website I change my username to test2. The website still shows test1. I go to Mana...

Name convention Controls on Forms Tips

Hi, I found out this article I would like share with you. http://10rem.net/articles/net-naming-conventions-and-programming-standards---best-practices http://stackoverflow.com/questions/642759/naming-convention-for-controls Regarding name conventions for "Controls on Forms", I thought to use this: ux-Description-GeneralType Example:...

Mask URL - ASP.Net 3.5

Hi, I have hosted a site in a shared server, let me call as Server-X. My domain (ie. www.examplesite.com) is from another server, called Server-Y. I have changes the name server of my domain to point to the server-X. So that my website is alive and I can access the database and all works fine. The problem is it is showing that the si...