asp.net

Too many arguments error

Hi i'm getting an error when using this code Session("formatdate") = Left(drv.Row("booking_status"), 10) Session("formatdate").ToString("dd-MMM-yyyy") Can anyone suggest anything? I'm trying to convert my session to a friendly date format but it won't work This is the error Too many arguments to 'Public Overridable Function ToStri...

Is storing List of 1000+ instance of my custom class in session a memory problem ?

Is storing a list of 1000 instance of my custom class to the session variable a good approach ? My asp.net web app need multilingual support and i am storing the labels in a table.I will have multiple users who has their own language preference and text(label content) preference. I am thinking about loading the labels and store it in s...

ASP.NET, PHP, SQL Server, MySQL hosting provider for developer?

I am looking to find a web hosting provider that provides ASP.NET and PHP hosting. The purpose is pretty much just a programming playground for me to develop in and possible show some of my work. As I use ASP.NET and PHP I am looking for a provider that provides hosting for both of these technologies as well as access to MS SQL Server a...

webpart personalization based on querystring/path

I am using a custom personalization provider and overriding loadPersonalizationBlob and SavePersonalizationBlob. But, the parameter "path" always has only the aspx name but not query string in it. Any example exists on web to do webpart personalization based on path/querystring (instead of just web page ending with .aspx) ...

Regular Expression for dd-MMM-yyyy and dd-MMM?

I need a regular expression for support both date formats dd-MMM-yyyy and dd-MMM. Ex: 04-Oct-2010 04-Oct 04-OCT-2010 04-OCT ...

Testing asp.net site that uses membership?

I've read some of the topics on stress testing but what options are there for testing a site that uses membership to simulate many concurrent users logging/logged in? I guess one could use/create custom scripts but that would also proliferate the database. How do some of the 'big boys' do it? BTW maybe stress testing isn't exactly what ...

Styling a Gridview "Caption" from C# class

I'm trying to style the caption of a ASP.Net GridView in a C# file. here is my method that returns a styled GridView: private GridView setupGridView(string caption) { var gview = new GridView() { BackColor = Color.White, BorderColor = Color.Gray, BorderStyle = BorderStyle.Solid, BorderWidth = new Unit(1, UnitType.Pixel), Cap...

asp.net javascript loading order

Is there a way to run my own javascript after all JS files have loaded and ASP.NET javascript has finished initialized and loaded. I am currently using jQuery to run javascript after page load and that does not guarantee it will load after ASP.NET javascript. Thanks ...

Windows Identity Foundation Security Token Service setting cookie timeouts

I want to configure the timeout duration that is applied to the cookies that are created on relying party after a user logs in through the passive Security Token Service (STS). I believe I read somewhere this is defaulted to 14 minutes however I can't find where I read this any longer. I would like to up this to a more reasonable 35 mi...

How do I query navigation properites using linq to sql and ef

Hi, I am trying to strongly type a query for 3 ef objects using linq to sql. There are one-to-many relationships with product and category. My classes contain navigation properties and look like this. public partial class Product { public int ID {get;set;} public string Name {get;set;} public virtual ICollection<Group> NpGroup {get;se...

how to create reusable "widget" markup across modules in an ASP.NET MVC 2.0 site?

Scenario: platform: ASP.NET 4.0, MVC 2.0 (doesn't have to be MVC if it's not the right solution) Create various widgets that inherit the same core markup: <div class="widget"> <div class="hd-widget"> <!-- dynamically inject code here for each actual widget --> </div> <div class="bd-widget"> <!-- dynamical...

How to affect differences in row content when binding a dataset to a ListView in ASP.NET 3.5

I have added a ListView to a web form and this code works when the data columns in the bound dataset have values: <asp:ListView ID="picturesListView" runat="server" GroupPlaceholderID="groupsGoHere" ItemPlaceholderID="itemsGoHere" GroupItemCount="1" > <LayoutTemplate> <p id="pictureList">Picture List:</p> ...

Calendar, Dynamic LinkButton CommandEventHandler Help

Hi, I am attempting to create a calendar which is just a simple UI to display dates and dates to users of our system. I have overridden the Calendar's "DayRender" event to gain access to each cell and then insert a couple of dynamic controls to display specific data. The display of the controls works great. However, I recently wanted...

Umbraco rewrite rule for non-www domains

I'm trying to redirect any non-www prefixed traffic to the www prefixed domain. I'm using Umbraco as the CMS and have added the following code into the urlrewritingnet config file: <add name="nonWWW" virtualUrl="^(?!www\.)(.*)$" rewriteUrlParameter="ExcludeFromClientQueryString" destina...

What can I do to use Session on a shared hosting server with load balancing

My website/application is in ASP.NET. I use the traditional Session object when people connect so they have their preference, etc. My problem is that sessions were lost very often. I discovered that my hosting company was using load balancing on their servers, so one request on my website can be on one server, and the other on another o...

ASP.NET C# "cannot implicitly convert type 'string' to 'int'" error

OK, so I'm using Mono on Mac OS X to work simple "applications" using ASP.NET and C# and I'm having two issues with my code. Here is my Default.aspx presentation markup: <%@ Page Language="C#" Inherits="project1.Tree" %> <!DOCTYPE html> <html> <head runat="server"> <title>project1_test</title> </head> <body> <form runat="server...

ASP.NET:How many types the Authentication IIS Provided?

Hi All, How many types the Authentication IIS Provided? Is Form-authentication is provided by of IIS? if no,then how it works? Thanks Vijendra Shakya ...

ASP.NET, WCF: how can I authenticate a calling application? Not the user, the application itself

For a few reasons, the bunch I'm working for don't want to use certificates and don't like the idea of a service that can be accessed by anybody with a valid logon. My question is how can I authenticate an application as being an official application suited for use with these wfc services without using certificates? They are trying to...

JQuery AutoComplete updating multiple fields ASP.NET

I'm trying to use the AutoComplete feature of JQuery to update multiple fields on an ASP.NET web page. The individual textbox is functioning perfectly, but I cannot figure out how to update multiple textboxes on the page once the user selects. I've read many suggestions here that state I need to implement a result handler, but my intel...

.net mySQL Connector for a 64 bit machine

My local computer is 64 bit but the downloads for the .Net mySql connector found here: http://dev.mysql.com/downloads/connector/net/ are 32 bit. I installed the 32 bit file however, whenever I try to input any new connector information after the 1st keystroke the box disappears. So I'm assuming that it has more to do with my machine be...