asp.net

How to connect mysql to DevExpress ASPxScheduler without SqlDataSource

I have an ASP.net project I'm looking at and they want to use MySQL. I'm used to SQL server but using mySQL shouldn't be a problem. Normally the control would like a SqlDataSource to bind to but that's not available with MySQL (from other posts on this site). What's the best way to connect MySQL and the DevExpress ASPxScheduler so tha...

Connecting to an SQL Server mdf file via PHP

I currently have a school assignment that involves both PHP and asp.net. Now the assignment is that I make an E-commerce website with PHP and it's CMS with asp.net. Therefore both websites connect to the same database which is in SQL Server. At the moment using Visual Studio's SQL Server Express, and I have generated an mdf file as the ...

Corrupt quotes in generated HTML for an ASPX

Hi, intro: I am pretty sure this is my fault. But I just don't see it and before tearing my hair out, I thought I should ask here ;) I have a button which looks like this in my ASPX: <input onClick="ELB_ClearSelection('DropDownList___00178');" type="Button" value="Clear" /> The HTML that is generated says: <input onClick="ELB_Clear...

asp.net web stats - google analytics

i want to add tracking to my website. I saw google analytics which seems to track what i need. So do i stick the google analytics snippet in each page, in a master page, just in my default page? what is the best practice here to get the best metrics. ...

Generating WordML Reports Using Templates and XPath using ASP.Net

I need to know how we can Generate WordML Reports Using Templates and XPath using ASP.Net. What are its advantages. A Simple How To Tutorial is what I require. ...

nhibernate burrow and ASP.Net MVC

I using nhibernate burrow for long conversation. I am preparing to migrate project to ASP.NET MVC, but burrow doesn't support MVC. I trying to change Burrow to work via MVC. But I have no idea what is the best way to do this. I am not sure that HTTP Module is a good way. I think about ActionFilters to initialize conversation. Thanks ...

Accessing a Class that is NOT declared in App_Code in ASP.NET

I sometimes define Business Logic classes to "help" my ASPX code-behind classes. It makes the most sense to me to include them both in the code-behind file since they work together. However, I'd occasionally like to access the Business Logic classes from higher level classes defined in App_Code but they aren't automatically accessible ...

How to set a timer in asp.net.

I have a page where when some operation goes wrong i want to start the timer, wait 30 second, stop the timer and retry the operation. Every time the timer starts I need to inform the user about it by changing some label's text. How can I do it? ...

How can I create a view that has different displays according to the role the user is in?

I want to create a view that has different displays according to the role the user is in. Should I create a different view for different roles or should I check the roles on the Veiw page itself rather than in the actions? How would I check the role on the view page? ...

dropdownlist DataTextField composed from properties?

is there a way to make the datatextfield property of a dropdownlist in asp.net via c# composed of more than one property of an object? public class MyObject { public int Id { get; set; } public string Name { get; set; } public string FunkyValue { get; set; } public int Zip { get; set; } } ...

Localization CMS - Admin functionality to edit the localization files for Content Editors?

Are there solutions/tutorials/open source solutions to providing the functionality of having Content Editors edit ASP.net Localization files? For example, With Labels.resx and Labels.fr.resx, it would be great if theres an editor out there that allows End Users to end the content of the file. ...

ASP.NET Dynamic Data & Membership (Roles)

hi Everyone, I am trying to setup roles in a dynamic data website.. the problem is that i cant set it by simpy doing this. <location path="List.aspx"> <system.web> <authorization> <allow roles="Administrators" /> <deny users="*" /> </authorization> </system.web> </location> so even when i lo...

Open a new window with asp.net

Hi Im new into that asp.net thing, but here goes. I got at ImageButton, and when its clicked i want the image displayed in another window. If I can avoid using ajax i would like to do that. If possible would like to make the window modal, but still avoid ajax, since Im not ready to mix more technolgies yet. ...

What the best pratices to place ads in a website?

I want place ads in my website, but I'm unsure about the commom pratices to place thes ads. By example, some cool asp.net articles sites shows ads in the middle of the article! So you read 2-3 paragraphs, read some ad, then finish the article reading... Another worry is about sabotage. One of mine customers get their Google adsense acco...

tool to create objects from XML Web Service Schema

Hi guys, I work a lot with external Web Services, and I need to create an object (class) based on that document, so I can use that object across my web application. My question is simple, is there a way that I can create/generate an object using only the XML provided from the schema? kind'a wscompile tool Would save a lot of hours to...

Do you plan move from ASP.Net Web Forms to ASP.Net MVC?

If yes, when? and how much time do you think that the process will take to migrate your current projects (if it's the case)? ...

How can I use ASP.NET TreeView to display informations

I´m trying to use the ASP.NET TreeView control to display informations like some sites do. For example: http://www.codeproject.com/KB/webforms/ClientSideTreeView.aspx The site of the link above have some code snippets that can be collapsed or expandend, showing a rectangle with the code snippets. The first question is: Is this a TreeVi...

Is Try-Finally to be used used sparingly for the same reasons as Try-Catch?

I just finished reading this article on the advantages and disadvantages of exceptions and I agree with the sentiment that Try-Catch blocks should not be used for "normal" control-flow management (don't use them like a goto). However, one author made (good) points about Maintainability and especially Performance that made me wonder abou...

Postback problem when using URL Rewrite and 404.aspx

I'm using URL rewrite on my site to get URLs like: http://mysite.com/users/john instead of http://mysite.com/index.aspx?user=john To achive this extensionless rewrite with IIS6 and no access to the hosting-server I use the "404-approach". When a request that the server can't find, the mapped 404-page is executed, since this is a aspx-pa...

How much information to log from errors?

At the company I work for, I have created a Error Logging class to handle errors in my ASP.net application. It is a custom class because we are not allowed to install additional software on our servers (nLog, log4net, etc). I currently use it in two of my projects and have seen some good results from it. Right now I am trapping the er...