asp.net

Existing library to calculate code complexity of a block of code.

Hi all. I'm given a string which contains an arbitrary amount of code. I want to calculate a number which represents the code complexity of that string. Something like: int complexity = Lib.FindComplexity(someString); I realize there are a lot of tools out there that will do this for you. These tools will not work for me, because...

Asp.Net 2.0 File upload

I know I use the asp FileUpload control for uploading a file but I need to change the design of the control to an image button. Is this possible? ...

IIS 7.0 with pipeline mode = Integrated doesn´t load any image/css in ASP .NET

Hello guys.... I have a full system working in IIS 5.1 ... I migrated to IIS 7.0 with pipeline mode classic all works fine, but with pipeline Integrated my images/css are not loaded... I´m using ASP.NET 3.5 with a Web Application... Any help? ...

New ASP.NET chart control not working on deployed website

I have deployed my website to an .net 2.0.50727 hosting, and the page with the chart control is not working. I think it may be because this .net version doesn't support the chart control or I have forgotten to upload some required assemblies. Anybody knows wich assemblies are the required? Does the chart control work with .net 2? I hav...

Gridview: Validate that SelectedIndex > -1

I currently have a Gridview, and I want to use client-side validation to ensure that a row has been selected (ie: SelectedIndex > -1). At the moment I'm using <asp:CustomValidator> but want to move away from server-side validation. Here is what I'm currently doing: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="Fa...

Htm page to Aspx page

I have an htm page.There i have a link Moreinfo.When we click that link it will go to aspx page.Means here the link Moreinfo More Info... when we click that link it has to go reg.aspx.But its not going,,error is shopwing page not found Means In my project,i have index.htm.From this page when i click Moreinfo link,,it has to go reg.aspx...

Best way to keep ASP.Net Session Active

Hi What is the best way to keep asp.net or asp.net mvc session active until user logs out? *User should be able to activate session even after browser or computer restarts... In another words, what is the best way to implement REMEMBER ME... ...

What is meant by ASP.net Version 2.0 ?

What precisely do we mean by ASP.NET version 2.0 ? Is it the version lined with .net CLR version 2.0 ? What about aspnet_isapi.dll and aspnet_wp.exe ? How do they fit in with respect to the versions 1.1 / 2.0 / 3.5 of the .net framework? .NET 3.5 uses CLR 2.0. Does that mean nothing changes in ASP.NET 3.5 except for additions to the ...

ASP.NET Application Restarts Too Much

Hi, I have an ASP.NET WebSite which restarts in every 1-2 hours in a day so sessions and other thing are gone and users are complaning about it, because they open a page and do something for 20 minutes and when they submit it, a nice "we are sorry" page is there. I don't do anything which restarts the application (changing the web.conf...

versioning of notes in asp.net

what is the best way to allow users to edit their notes, maintain versions of the notes on each edit and also allow them to compare the selected versions of the notes. the notes would probably be entered using a WMD editor similar to the one on SO. i would be building this up on ASP.net. something similar to writeboards on basecamp. ...

Problem writing HTML content to Word document in ASP.NET

I am trying to export the HTML page contents to Word. My Html display page is: What is your favourite color? NA List the top three school ? one National two Devs three PS And a button for click event. The button click event will open MS word and paste the page contents in word. The word page contains the table property ...

Can '//' effect the http request performance?

Suppose for any url if a '//' is added instead on '/' by accident in the request. Can this effect the http request performance? e.g. http://www.microsoft.com/downloads v/s http://www.microsoft.com//downloads This reason I am asking this is; in one of our application the dynamic urls were building wrong on production server for som...

linking silverlight class to web app

Have written all the code in a silverlight class library (dll) and linked this same library to my web app and silverlight app, is there a way to avoid the "Compiler Error Message: CS0433" or do I have to create a separate dll for the web app? Error mostly occurs when XElement is called... ...

Problem reflecting in ASP.net context

I have a ASP.net application that is referencing a external assembly that I need to dynamically load and discover any types implementing a known interface. The problem I am having is that the type I reflect does not match the same interface that is running and so I cannot cast it. Example: This code is run in ASP.net app. var assembl...

ASP.NET: Total control of the ASP.NET membership provider

I have an application which uses the built in ASP.NET membership provider. There are two roles (admin and staff). I want admins to be able to see a list of current staff, add or delete staff and reset passwords. So far I've found very little information, but Membership.Provider.GetAllUsers looks promising. Is there any way I could show t...

Checking The Date A Webpage Has Been Updated?

I want to be able to run a little script that I can populate with a list of URLs and it pulls in and checks when the page was last updated? Has anyone done this? I can only find a manual way of doing this using JavaScript by pasting this into the browser URL field javascript:alert(document.lastModified) Any ideas greatly received :)...

Regular expression to get all the value between custom TAG

I have custom tag for FLASH object, which i want to include in cms content. now when i read the content, i would like to grab those custom tag and the value in between. Custom TAG: <myflash filename="test.swf" width="500" height="400"> <param name="wmode" value="somevalue"></param> <param name="bgcolor" value="#ffffff"></param> <...

Scrape webpage when it throws an ASP.NET error

I am trying to scrape a webpage when it throws a "potentially dangerous script" error. Everytime I do this, I get a server 500 but I can scrape a normal, operating page. Is there a way I can scrape a webpage when it throws an error? Thanks ...

<compilation debug="true"> in precompiled asp.net website - Does it matter ?

Hi, I'm deploying a precompiled and all-page-merged website using Web Deployment Projects on Visual Studio 2008. Note that all assemblies and projects have been compiled in Release mode. All my pages are pre-compiled in release mode. So they wont be recompiled, they'll just be loaded by runtime. In that case when the page compilation i...

How to write content of stringbuilder to a textbox

hi guys, I have a textbox in which i have to write content inside stringbuilder. Following is my stringbuilder. Dim strString As New StringBuilder() strString.AppendLine("<table>") strString.AppendLine("<tr><td>") strString.AppendLine("<br/><br/>") strString.AppendLine("<div style=""text-transform:...