asp.net-3.5

How to highlight the differences between two versions of a text in .NET web app?

I have been supporting a web application at work for our Call Center unit for about 2 years now. The app is written in ASP.NET 3.5 with SQL server 2005 database. I’ve been asked to expand the call detail section to allow agents to edit the current call note with the ability to revert back to its previous version. Now, that’s all cool but...

ASP.NET embedded code expressions

Hi, The below code works but I am not sure how? OnClientClick='<%# CreateConfirmation(Eval("EventName"),DataBinder.Eval(Container.DataItem, "EventDate", "{0:ddd, d MMM}")) %>' Public Function CreateConfirmation(ByVal EventName As String, ByVal EventDate As String) As String Return String.Format("return confirm('Are yo...

Session item comes back after being removed.

I remove an item from the session using Session.Remove(), then redirect to another page. If I click back, then reload, the item is suddenly back in the session. Shouldn't Session.Remove() take it out of the session for good? ...

Where should I put my connectionString in ASP.Net 3.5?

Hi I have two projects: ASP.Net 3.5 website (frontend, UI) VB Class Library (dataaccess logic) Where should I save my connectionString, so that I can use if from the class library? And how does this affect where it is placed when I deploy/publish? Note: I don't want to pass it to every function in my VB Class ...

ASP.NET 3.5 and SQL Server 2008

I'm new to ASP.NET and to SQL Server. I'm from the PHP/MySQL world, so I'm pretty confused with this stuff. I need help because I'm trying to make a simple blog as a first serious exercise. I can't figure out how to connect to my sql server from my c# code. my sql server is on the same machine as IIS. When i use SQL Server Management Stu...

How do you make a table read-only using ASP.NET's dynamic data scaffolding

How do you make individual tables and/or columns read-only so the edit button won't show in ASP.NET's Dynamic Data framework? I'm using it against an entity data context. Is it possible? ...

Making user login persistant with ASP .Net Membership

I have a website that is built in ASP.NET 3.5 & SQL Server 2005, using the sql membership provider, and presumably forms authentication. Since security needs on my site are very low, I would like to authenticate once, and then keep the log in persisted indefinitely (without giving the user the choice). What is happening is that the use...

ASP.Net set_MaxCharactersFromEntities(Int64)

We are trying to use the Facebook Toolkit API which is built with 3.5. We copied over the dll from ASP.NET 3.5 and try to run the site. It works for the most part but when calling the following function in one of our pages, the follow error shows up. Method not found: 'Void System.Xml.XmlReaderSettings.set_MaxCharactersFromEntities(Int6...

Facebook Toolkit 2.0 - Error when running it on a server with asp.net 2.0 installed

I'm getting the following error when trying to run the Facebook Connect toolkit on a server with ASP.Net 2.0 installed - I manually moved over System.Core and System.xml.Linq to the server from the 3.5 DLLs. Most other things seem to run, until I try to access the "users" object - more specifically, the getinfo() method. This is the er...

Inserting with asp:ListView inside asp:FormView

I have a asp:listview which uses the SelectedValue of the FormView. I have editing working with the listview fine, and insert will insert a record but it doesnt insert the SelectedValue of the parent FormView... What am I missing? ...

Insert record with EmptyDataTemplate in asp:ListView

I have an EmptyDataTemplate in my asp:ListView which I want to use to insert a new record. I have Inserting working in the InsertItemTemplate... I thought I could copy the InsertItemTemplate into the EmptyDataTemplate, on clicking Insert this gives the error Insert can only be called on an insert item. Ensure only the InsertTemplate h...

ASP.NET URL-rewriting options

Hi there! I've seen some .NET sites that obviously are using some sort of URL-rewriting method, but the one that intrigues me the most are ones that look like: http://www.somesite.com/pages/an-example-page.aspx I have previously used "UrlRewritingNet.UrlRewrite", but that requires that the database primary key integer be located somew...

Strange caching with #include in ASP.NET on IIS6

I have a classic ASP style #include from a ASP.NET file as: (!-- #include file= "../../maininc.aspxinc" --) (Guess it is actually an IIS server-side include?) It is some strange caching going on. It seems like the original file is cached so that changes in maininc.aspxinc has no effect. IIS6 Expiration headers off as far as i can se...

ASP.NET Storing global variables - accessible from every page

I am building a large application and I ususally use a simple session to store private global information however as the application could be rather large I belive this could be a problem due to the amount of memory sessions it could have. Is there a better way to store such variables? For example, when the user logs in I want to stor...

ASP.NET intranet application with "plug-in" ability

Hi there! I'm working on an ASP.NET 3.5 site that is intended to be an intranet application. How would it be possible to create a kind of "plug-in" architecture, such that I can add additional functionality to the site without recompiling the site? I'm thinking of additional functionality as developing separate modules that can be comp...

Linq: Get a list of all tables within DataContext

I have a DataContext (Linq to Sql) with over 100 tables, is it possible to get a list of all those tables and lets say print them to the console? This might be a silly question. Thanks. ...

How do I disable right click on my web page .

Hi All, Can I disable right click on my web page without using javascript because most of the browser allow the user to disable javascript. ...

How can I get value of textbox on a user control

Hi All, I have a user control which has a textbox on it, now this usercontrol is on another user control which I am using on aspx page how can I get value of the textbox on the first user control. ...

How do I add a textbox dynamically in ASP.NET?

I've a following requirement for my asp.net page: User can add a textbox dynamically on a page A by clicking on link "Add a new category" hyperlink He clicks submit button on page A and gets redirected to page B. When he clicks on page A link from this page, the textboxes that he added should be persisted. Can someone help me with th...

Listview reference in a class library

I'm trying to access the ListView class from System.Web.UI.WebControls in my class library. So I added a reference to System.Web and expected it to then show up but unfortunately it didn't. Now I can only assume it is because the ListView is part of the 3.5 release not 2.0. So I checked my class library to make sure it is targeting 3.5 ...