asp.net

Regular radiobutton in Repeater

Trying to setup a regular Radiobutton in a repeater <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <input type="radio" name="OptGroup" id="rbEmail" value="<%=ID %>"/><label for="rbEmail"><%=Action %></label> </ItemTemplate> </asp:Repeater> I'm...

ASP.Net Media Suite - Review

Does anyone have a review of ASP.Net Media Suite located on http://www.aspnetmedia.com/ The tool seems pretty nice, but i've never heard of the company. I'm hesitant to purchase and install something from an unknown source. Can anyone vouch for the product? ...

how to locate theme folder on the asp.net?

i'm bind some image control dynamically. but don't set image url. When i using skin file and then set skinid, error shown (The 'SkinId' property can only be set in or before the Page_PreInit event for static controls. For dynamic controls, set the property before adding it to the Controls collection) How to get virtual theme location ?...

How to create sub domain from asp.net code

I need to create sub domain from code. For example my web site register new user named battulga. After automatically create battulga.mydomain.com. How to do this? ...

Ads System

I am creating an Ad system for an ASP.NET website. The website has a section for advertisers. They register their and posts there ads, They will pay the maximum budget for the ad first, There is a daily budget , so the advertiser can control his budget, There will be a lot of ads from different advertisers to show in the website. The ads...

Server Tag is not well formed

This is so damn stupid but driving me absolutely fing crazy. <input type="radio" name="OptGroup" id="<%#"rbEmail" + ((Action)Container.DataItem).ID %>" value="<%#((Action)Container.DataItem).ID %>" runat="server" /><label for="<%#"rbEmail" + ((Action)Container.DataItem).ID %>"><%#((Action)Container.DataItem).Action %></label> ok, wtf ...

Cannot upload a zip file of more than 5000 k size

Hi I am a fresher to C#,i am able to upload a file to server with less size but when i am trying to upload a size more than 5000k it is giving an exception. Here is my C# code private void UploadFile(string filename) { try { PeopleMatrixService peopleMetrixService = new PeopleMatrixService(); String strFile = System.I...

Data Access Layer

how we can create a generic data access layer that can be used by any asp.net application using different datasource provider or webservices? Can we create data access layer for application that consumes webservice? ...

In ASP.NET MVC, how do you retrieve the filename of the script being run?

I need to get the name of the script being executed on the master page to update the Last Write time. I'm using this: System.IO.File.GetLastWriteTime(Server.MapPath(Request.FilePath)) which works for the default.aspx, but if its within a View I am unable to workout what the physical path to the file is to get the LastWriteTime. Is t...

Server Error in '/' Application.

When i run my application, I am getting this error, does anyone have any idea why? The remote server returned an error: (404) Not Found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. E...

For ASP.NET MVC Rescues View, how do we add ViewData fields?

Hi, I have several Rescues defined for possible faults, however I am unable to access the ViewData to populate it with things we need the masterpage requires to render. Is this hidden away in a controller we can utilise? Thanks, ...

Quartz.NET trigger not firing

i am using Quartz.NET in my ASP.NET web application. i put the following code in a button click handler to make sure that it executes (for testing purposes): Quartz.ISchedulerFactory factory = new Quartz.Impl.StdSchedulerFactory(); Quartz.IScheduler scheduler = factory.GetScheduler(); Quartz.JobDetail job = new Quartz.JobDetail("job", n...

In Web.config Is it possible to register all user controls in specified directory

Currently I'm registering every user control separately in Web.config <pages validateRequest="false"> <controls> <add tagPrefix="cc1" src="~/Controls/MyUserControl1.ascx" tagName="MyUserControl1"/> ... <add tagPrefix="cc1" src="~/Controls/MyUserControlN.ascx" tagName="MyUserControlN"/> </controls> </pages> But from...

Static Function Concurrency ASP.NET

If you have two threads invoking a static function at the same moment in time, is there a concurrency risk? And if that function uses a static member of the class, is there even a bigger problem? Are the two calls seperated from each other? (the function is like copied for the two threads?) Are they automatically queued? For instance...

Problem with Convert.ToDateTime in asp.net

Hi, I have an application that works without any problem in a spanish server. When i uploaded the application into the online server (an english windows), im getting exceptions (of type "input string is not a valid Datetime/Int32") with Convert.ToDateTime and Convert.ToInt32. Are any web.config line that could help me in this matter? ...

2 Mutually exclusive RadioButton "Lists"

I think this has to be THE most frustrating thing I've ever done in web forms. Yet one would think it would be the easiest of all things in the world to do. That is this: I need 2 separate lists of radiobuttons on my .aspx page. One set allows a customer to select an option. The other set does also but for a different purpose. But only ...

What Are Your Favourite ASP.NET Add Ons / Tools To Improve Productivity & Code

I'm wondering what other tools / frameworks / Add Ons people use to improve their productivity / development speed when coding in ASP.NET. I just use VS2008 on its own but wanted to find out what other people use with VS2008 AND WHY?? ...

ASP.NET global events

which event is the most suitable to check for Session expired? i'm trying to trap each server request, and if Session is null, redirect to a different page. ...

What does AutoEventWireUp page property mean?

Hi guys, I am rather new to ASP.NET and I can not understand what AutoEventWireUp page property is responsible for. While serfing on the net, I have found a lot of forums discussions about that and they all seem discrepant to me. Can you please explain cleanly what this property means exactly? I do not understand even this article suppor...

Internet Explorer problem - runtime error

when i am going through my project in IE only its showing errors A runtime error has occurred Do you wish to debug? Line 768 Error:Expected')' Is this is regarding any script error ...