asp.net

State Management through Sql Server 2005

How we have to store session state in database??? Is there any configuration to store the Session & Application variables in SQL Server 2005 database. ...

Using linq on asp.net generated tables

Would it be wise to use linq to sql on the tables generated by asp.net reg_sql tool? i would like to be able to do some operations on the dbo.aspnet_webEvents_Event table (purging the data base on date or event type for example). ...

Calling javascript function from dropdownlist

Is it possible to call a JS function when a specific a item is selected from dropdownlist? ...

Graphics object to image file

I would like to crop and resize my image. Here is my code: Image image = Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "Cropper/tests/castle.jpg"); // Crop and resize the image. Rectangle destination = new Rectangle(0, 0, 200, 120); Graphics graphic = Graphics.FromImage(image); graphic.DrawImage(image, dest...

How to create 'magic quadrant' style chart using ASP.Net?

Do you guys know of an ASP.Net chart control I can use to create Gartner's Magic Quadrant-style charts? I also want bubble sizes to reflect the market volume for each data point. As we are on a tight schedule, we do not have the option of rolling out our own custom solution. ...

Useing Oracle 10g database for ASP.NET session management

I am developing a web application. For some reasons, I need to use external storage for storing session state. As I am using Oracle 10g as backend database, can I use same oracle 10g db for storing session state also? Thanks in advance.. ...

How to build a .NET website using Nant

I usually use web applications in Visual Studio and the MSBUILD taks in Nant builds them without any problems: <msbuild project="MySolution.sln"> arg value="/property:Configuration=release" /> </msbuild> I now have a website (not a web application) in a VS Solution and it won't build - I get a lot of namespace errors. Should I be a...

How can I implement this on asp.net or asp.net mvc

Me and my team are creating a portal on asp.net mvc. We want to create such an url for the users page : http://user.portal.com/ . How can we implement this in mvc or just asp.net. ...

Fetch userdata on each request

Hi! Gotta tell you... I've searched the internet for weeks now, and still haven't found a reasonable answer. My problem is quite simple - I think. I'm doing an ASP.NET MVC project. It's a project that requires the user to be logged in at all time. I probably need the current users information in the MasterPage, like so; "Howdy, Mark - ...

What are the Advantages/Disadvantages of using the Declarative versus Programmatic Method with ASP.Net?

What are the advantages/disadvantages of using this model <asp:GridView Id="grdEmployees" runat="server" DataSourceID="objEmployees"> ... </asp:GridView> in comparison with programmatically creating controls and binding data to them, etc...? In which cases should one use each method? ...

When Using FormView with Templates, Is It Possible to Reference Controls Statically?

Having: <asp:FormView ID="frmEmployee" runat="server"> <EditTemplate> <asp:TextBox ID="txtFirstName" runat="server" /> </EditTemplate> </asp:FormView> one uses FindControl to reference the txtFirstName textbox in the code-behind file: VB.Net Dim txtFirstName As TextBox = CType(Page.FindControl("txtFirstName"), TextBox...

MVC reusable propertygrid

In my web application framework (currently WebForms) I have a control that behaves like a classic propertygrid. It is initialized with an object ID (database key), then it reads metadata to determine the type of the object and the attributes of the object. It displays the attributes, string attributes as textboxes, bool attributes as che...

Question for code snipped that I don't understand

Hello, I am trying to implement my own provider for xml site map files. Because of this I have started investigating the default Microsoft XmlSiteMapProvider via reflector and I have found a snippet that is confusing me, here it goes: SiteMapNode node = this._siteMapNode; if (node != null) { return node; } XmlDocument configDo...

Subdomains in asp.net mvc

How can I programatically create a subdomain in asp.net mvc, and what ways are there for creating a subdomain? ex: user.mysite.com or mysite.user.com ...

Any reason why an ASP.Net 2.0 application with no code would take 2 minutes to load on first run?

Hi all, I've asked this on server fault already but to no avail. So I'm hoping another ASP.Net Developer would have come across my issue. I've got a Windows VPS running II6 and I'm migrating my ASP.Net applications across to the server. When I navigate to one of those applications it takes approximately 2 minutes to do anything. I creat...

Routing Rule for ASP.NET Products Website

I am building a product catalog for a customer website under ASP.NET using .NET Framework 3.5 SP1. Each product has a part number and an OEM part number (all globally unique). For SEO purposes I would like the OEM part number to be as close as possible to the actual domain name. How do I build a routing rule that allows me to do this:...

I’m not sure whether lazy load pattern is useful here

Hello, I’m currently reading a book on website programming and author mentions that he will code DLL objects to use lazy load pattern. I think that conceptually I somewhat understand lazy load pattern, but I’m not sure if I understand its usefulness in the way author implemented it BTW - Here I’m not asking for usefulness of lazy loa...

Is DataSet slower than DataReader due to...?

Hello, 1) A) DataSets can be 10+ times slower than DataReader at retrieving data from DB. I assume this is due to overhead of DataSets having to deal with relations etc. B) But is the speed difference between DataSets and DataReader due to DataSets having to retrieve more data ( information about relations ... ) from DB, or due ...

What is preferred method for modifying connection string settings in DAL class library when deploying asp.net web app?

I deployed my asp.net web app project that has a reference to my DAL class library. How can I change the connection string in my DAL library once deployed? The DAL code was ignoring my web.config connection string and trying to use the app.config value. I thought I would be able to edit a config file that is associated with the class l...

__eventtarget set to ScriptManager id

I have multiple UpdatePanels on a page, each filled by somewhat expensive controls. On async postbacks, all UpdatePanels are initialized, but only the updates UpdatePanel is sent to the client. Now I would like to initialize only the UpdatePanel that actually requires an update. http://ryanfarley.com/blog/archive/2005/03/11/1886.aspx s...