asp.net

Content controls have to be top-level controls

I have a website that can be accessed from www.blahblah.com and special.blahblah.com. The www site always works but occasionly I get a 'Content controls have to be top-level controls in a content page or a nested master page that references a master page' error on the special site. It's exactly the same code running in both situations ...

When I publish my ASP.NET site in RELEASE mode, will tracing still work?

When I publish my ASP.NET site in RELEASE mode, and set compilation debug="false", will my ASP.NET and System.Diagnostics Tracing still work? ...

Access DropDownList.SelectedIndex in DataList.ItemCreatedCommand (EventBubbling or other solutions)

How am I to bubble the event caused when itemIndex is changed in a dropdownlist - so that I can use the itemindex-value in my ItemCreatedCommand-function? A solution is found at: http://209.85.129.132/search?q=cache:cYDzeE8Swf0J:authors.aspalliance.com/hmcheung/Articles/030331/Default.aspx+dropdownlist+datalist+selectedindex&hl=no&...

Equivalent msbuild command for Publish from VS2008

Hi, any idea which is the command for publish in msbuild corresponding to the one in VS2008? What I want is the resulting output to be the same, without that _PublishedWebSites subdirectory. Is this achievable from command line or I should use a build file? Thanks. ...

DatePicker for a Mobile Website?

What is best way to allow user to pick date from a mobile device from usability prospective? ...

Faulting application vbc.exe, version 9.0.30729.1 (ASP.NET + Framework 3.5)

After deploying a new asp.net web application up to our web farm, on the first load the application seemed to hang for about 20 minutes and then we got the above error in the application log. Suspecting this might be a problem with the access permissions of the user in the application pool, we temporarily added this user to the local ad...

Do I ever really need to use the Global Assembly Cache (GAC)?

I've been building .NET web applications for many years now, and I never use the GAC? What am I missing? Or am I better off staying away from it? ...

Can I automate creating a .NET web application in IIS?

I need to deploy a web application on several laptops (although it is a web application, it is intended to run via localhost only - thus the need to deploy on several different machines). Normally I would go to IIS and right click a directory to create a web application, but I would very much like to automate this leg of the installatio...

What are the advantages of using J2EE over ASP.NET?

We are currently planning to launch a couple of internal web projects in the future. Our company's dev teams are mostly experienced in J2EE and have worked with it for years. Today, we have the choice of launching a couple of our projects on .NET. I have checked out a couple of sources on the .NET, and it seems like the "J2EE vs ASP.NET"...

Problem with embedding CrystalViewerControl inside a Custom Web Control

I'm building a Custom Web Control in ASP.NET 2.0 that embeds the CrystalViewerControl inside it. The CrystalViewerControl accepts its ReportSource as a ServerFileReport, that means that my report file I'm trying to view is accessed as a Web service. I successfully render and create the CrystalReportViewer control and the ServerFileRepor...

Fetch data from Other Websites

Hi, Even before telling my question, will tell you that this is a very vague question. But please let me know if you have any similar ideas. I am actually trying to write a website of my own locally using ASP.Net. I actually wanted to try and simulate a website with trading and stock details. I wanted to actually fetch the details fro...

.NET/IIS friendly in-memory antivirus scanning

Hi, I'm looking for a solution that would let me scan files on the fly. It would need to integrate nicely with either with IIS(6.0 or 7.0) or ASP.NET. I spent some time trying to find something on the Internet but unfortunately all I've found is a COM based solution that still forces me to save files on disk (http://www.opswat.com/metas...

How to host multiple ASP.NET websites on one shared hosting account?

With PHP, I can make numerous PHP websites locally and then upload each of them to its own sub-directory of my PHP hosting service. However, with ASP.NET, it seems that I can only upload my ASP.NET to the root of my hosting service. If I upload to a sub-directory, I get an error in section registered as allowDefinition='MachineToAppl...

Synchronization of Iframes

I have multiple iframes which are displaying same collection of data (help in asp.net Cache). After the modifies the data on one of the frames, I would like all of the others to reflect the update without the need for explicit postback on each one of them. So the question is: What is the easiest and most elegant way to keep iframes sy...

Asp.Net Inline Scripting

I have a DateTime object that i need to print in a Custom Gridlike Control. The type of the data i want to print is a Date in the format dd-mm-yyyy. This value can be either filled or blank. If its filled it will be parsed into a DateTime and then printed as the default ToString. For Each row, in can use <CellTemplate> <asp:Literal...

Best practices for maintaining shared hosting websites with ASP.NET and SQL Server?

I've been doing PHP/MySQL websites with shared hosting providers for the last couple years. The day-to-day process is basically: develop in Eclipse, one website per folder upload via FileZilla, one website per folder use PHPMyAdmin to create and manage your local and online databases and transfer data from one to another to backup the ...

In ASP.NET, What is the 'ASP' code called?

More detail to my question: HTML and JavaScript are called "client-side code". C# and VB in the code behind files are termed "server-side code". So what is inline-asp, and 'runat=server' code blocks called? <!-- This is called "client-side" --> <p>Hello World</p> <script>alert("Hello World");</script> ... // This is called "server...

How to iterate through each property of a custom vb.net object?

How can I go through each of the properties in my custom object? It is not a collection object, but is there something like this for non-collection objects? For Each entry as String in myObject ' Do stuff here... Next There are string, integer and boolean properties in my object. ...

loop through drop down list in content page - VS2008

I have a MasterPage and a Content Page My Content Page has a number of controls, - dropdownlist, text boxes, radio buttons. I want to loop through all the control and if its one of the controls above then i want to obtain the selectedvalue, text etc I know I can access the control directly by name, but as this is my learning experienc...

< ajaxToolkit:TabPanel - would like to set "focus" on a different tab

i have a < ajaxToolkit:TabPanel initially when the page loads, the first tab is "open" ("focused on") can i do something (preferably server side) so my second tab would be the "default" selected tab? ...