asp.net

h264 provider start

Hi, i am trying to make ffmpeg or x264 provider that will encode videos.. Well i have been looking at some tools and such and. i don't know.. I would need to make my own api. I have done the same 4 ffmpeg for flv1 but h264 seems much different.. can anyone give me some basics where and how to start? ...

How do i run ASP.NET code on a server outside of VisualStudios

I was able to run Default.aspx but i think i am doing this wrong. I uploaded my ASPX files and Global.asax to httpdocs i did a simple test to see if there was any URL rewriting and there was none (which every page requires except for Default.aspx). I am unsure how to properly upload and run this. ...

Why isn't my @page enableviewstate overiding the page's EnableViewsate in the web.config?

I want to disable viewstate for nearly all of my pages and I have used the element to do so in my web.config. On a page that specifically uses viewstate, I used the EnableViewState=true. However the page fails to work and the dropdownlists that depended on viewstate are not filled in the postback. In an effort to try to find a patter...

Custom 404 page with ASP.NET

It looks like my rewrite is not working correctly. It does locally but not when i upload it. How do i create a 404 page in C#.NET so i can do something simple like print the HttpContext.Current.Request.Path so i can compare it to what i expected it to be. ...

Why is the server ignoring rewrite on non ASPX files?

Locally this works but on the server when i do something like /user/profile i get a 404 however if i do /user/profile.aspx it works. I also rewrite images from /s/example.png to /localLocation/example.png, this doesnt work. If i write /localLocation/example.png it does show up however it defeats the purpose of my rewriting. Also if i att...

TableAdapter's Method Keeps Resetting to NonQuery From Scalar

I'm using a .xsd file in my Visual Studio 2008 Pro solution and I'm having a problem with the ExecuteMode property of the tableadapter methods resetting. I have created a handful of insert methods in multiple adapters. I use "SELECT SCOPE_IDENTITY()" after the insert SQL to return the id of the new record. I then update the ExecuteMode p...

Recycling Options for ASP.Net Application State Object

What are the options for recycling the ASP.Net application state object? I'm using that object to store queues of database connections for a web serviced based data access layer. I'm concerned that over days/weeks/months I'll end up allocating growing sums of memory on connections to db's that are no longer in use. The connections are...

Upgrading Telerik RAD Controls for ASP.NET

Can someone tell me how I go about upgrading the Telerik ASP.NET controls? I am currently using the Q3 2008 release and I just recently bought the Q1 2009 SP1 release. How do I upgrade my projects? Do I need to uninstall the old one and install the new one or just install the new one? Also how do my projects get upgraded? Also, what abou...

Sending compressed response in ASP.NET

I am running a website on IIS6 for ASP.NET application and enabled compression, which worked fine for the .aspx web pages. What isn't working is downloaded binary files that are transmitted as part of a postback response: e.g. link button is 'download to excel' - user clicks and the code generates a binary file, does a Response.Clear() ...

Blank Asp.net MVC template

Hi Is there a way I can get a blank MVC template for VS2008? Like the only that comes with MVC is nice to see what MVC is all about but it gets annoying when you want to make your own site and you first have to delete all the crap they generated for you. Like I want to use my own authentication stuff since I understand what is going on...

Restrict Textarea for not accepting 250 character.

Dear All, I have a textarea in C#, please see below code: <asp:Label ID="lblQuestions" runat="server" CssClass="addinfo"> Question & Comments</asp:Label> <asp:TextBox ID="txtQuestions" Rows="5" Columns="5" TextMode="MultiLine" runat="server" MaxLength="250"></asp:TextBox> Now I want that textarea should not accept...

Rename ASP.NET_SessionId

Hi. I need to rename the ASP.NET_SessionId cookie created by default by ASP.NET. Let's say I want it's named "foo". Is it possible? ...

Iterate Over Controls in Repeater

Hi, I have a bit of code that determine whether or not a control (within a repeater) should be visible or not and I want to call this on Page_Load but I can't seem to get the Controls inside a repeater. <asp:Repeater ID="repreat" runat="server" > <HeaderTemplate> <asp:PlaceHolder runat="server" ID="thActivePrimary">Bla...

How to handle page close in ASP.Net?

I want to do something when user closes the page from "browser close". Is there a way to handle that event in server side? ...

Independentsoft generated .msg Messages losing attachments when forwarded

Hello All, I have got an issue that to be honest I initially did not think was a programming issue, but after checking all other areas I would appreciate your feedback if this could possibly be one. We have an ASP.NET web application that sends emails with attachments to users. Once sent the message is saved as a .msg file in SharePoi...

Input on how to keep object map in sync between browser (javascript) and server (asp.net web service/database)?

I have a object map on my server (objects representing Customers, Orders, Items, related to each other, based on content from a database) and want to keep an up to date version of that object map in the browser where the user is manipulating and viewing the data. Since more users can access and modify the same object map at the same tim...

Steps to take to slowly integrate unit-testing into a project

I'm currently on a co-op term working on a project nearing completion with one other co-op student. Since this project has been passed down from co-op to co-op, poor practices have been taken along the way and testing has been left until the end. I've decided I'd like to write unit-tests to learn something new while testing. However, ...

Limit the number of results on a ASP.NET ListView

I have a ListView bound to a Generic List collection. I need to be able to limit the number of items bound to something like 5, and show a more button in the template. I can handle the DataBinding event, and remove the last few items in the List<>, but something about that doesn't feel right. I also can't limit the list to 5 beforehan...

Record ASP.Net user in IIS logs

I have an ASP.NET 3.5 application (on IIS 6.0) which uses ASP.NET forms authentication. In my IIS logs, I have extended logging turned on including the cs-username field. Even after a user has logged in to my site, the cs-username still displays '-'. Is there a way to get the authenticated ASP.NET user's name to appear in the username f...

open source custom tooltip (callout) control/code for asp.net

Looking for a custom tooltip (typical yellow baloon callout) on click of an anchor tag. The tooltip should appear and remain in view until the cross button on the tooltip is clicked. Just looking for a tried and tested open source solution. Tried googling this but most of the tooltip [...missing info?...] Ajax control toolkit has the c...