asp.net

Where is some GOOD documentation how how to properly databind TinyMCE or FCKEditor in order to store in SQL database? (VB)

I have searched high and low and can only find some very bad documentation on how to properly save the data from a rich text editor to a SQL Server database. I am not working with personal profiles, I just want to understand how it is properly done, including how to properly escape said data. ...

Pressing enter on any textbox invokes my Save button click event!!??

I have a standard asp.net webform with multiple textboxes (Autopostback=False) on it and a Save button. Pressing ENTER while in any textbox is causing the server side click event of the Save button to be invoked. If I break and look at the call stack, the click event is the only event listed. I do not have a default button set for the f...

JQuery asp.net validator callout plugin updatepanel

I am using this plugin: http://plugins.jquery.com/project/updnValidatorCallout This controls to be validated are inside an updatepanel. Before posting back everything works fine, after a async postback the callout plugin messes up. I'm initializing the plugin like so: $(document).ready(function() { $.updnValidatorCallout.attachAl...

Should I use a composite key for a map table, which is also used for a foreign key?

I am using ASP.NET and the Entity Framework to make a website. I currently have a map table for a many to many relationship between... let's say users and soccer teams. So: Users Teams UserTeams Part 1: Is it best practice to use a composite key for the primary key of the map table? In other words: UserTeams table PK UserId PK Te...

Maximizing parallel downloads for website

I've been reading articles about speeding up websites by serving static content from a cookieless domain. We have an ASP.NET website with links to images/css/js like <script type="text/javascript" src="/js/something.js"></script> I've been testing out the static content filter from this article and it seems to work great for situatio...

How do I add password login to an ASP.NET page?

I have two ASP.NET pages: site.com/foo/bar.aspx that should be world accessible and site.com/foo/baz.aspx that I want to password protect. I want any un-authenticated users to see a username/password page and then, once they pass that, I want them to see the real thing. I'm looking for the simplest possible solution (this looked good til...

Thumbnails asp.net

I am trying to write an application that allows a user to click a button to see images as thumbnails from a folder in a modal popup. Inside of my modal popup I have a datalist. But from there I don't know where to go. I've already tried the 4guysfromrolla solution but it wasn't what I was looking for. How can I set up images as thumbnail...

Converting JPEG colorspace (Adobe RGB to sRGB) on Windows (.Net)

I need to generate thumbnail and medium sized images from large photos. These smaller photos are for display in an online gallery. Many of the photographers are submitting JPEG images using Adobe RGB. I would like to use sRGB for all thumbnails and medium size images I am using dotnet (asp.net) and need a way to convert from Adobe RG...

SharePoint - Open Document Library PDF in New Window

I want PDF files in MOSS 2007 Publishing site document libraries to open in a new window. Is it possible to achieve this by creating a custom HttpHandler? I don't want to mess with a site definition for something as basic as this... ...

Select DropDownList item inside of a Repeater control

I have a repeater that contains a few items and among them there are a DropDownList and a Button. The goal here is to associate an item from the DDL with the selected repeater row. ASPX Code: <asp:Repeater ID="sharedPlansList" runat="server" onitemdatabound="sharedPlansList_ItemDataBound" onitemcommand="sharedPlansList_ItemCo...

How do I use a ASP.NET Login control without using a MembershipProvider?

This is an offshoot of this question. How do I use a Login control if I don't have a MembershipProvider to point it at? Am I understanding the use model correctly? Is it even reasonable to talk about using a Login control without a MembershipProvider? Dose the MembershipProvider do more than just username/password checking? Would it...

How do I dynamically swap ascx controls?

I have an aspx. <div id="headerRegion" class="borderDiv"> <xy:paymentHeader id="paymentHeader1" runat="server" /></div><div id="paymentRegion" class="borderDiv"> <asp:UpdatePanel ID="paymentFormUpdater" runat="server"> <ContentTemplate> <asp:PlaceHolder runat="server" ID="plcPaymentForm" /> </ContentTempl...

Webservice Applicationpool

Hi I have two diffrent web services(running on local machine) and pointing to one application pool(1.Can I do that?Is it any performance concern?).I have not much knowledge about how the applicationpool will works. the other .Net application is using two webservices,but frequently one webservice is not responding which internally ca...

I want to open a popup on clicking a button showing an aspx page

I have seen this in the West-Wind Toolkits where they have created their control called Hover Panel but i'm not able to implement it.So,is there another method to do so. ...

Why couldn't I check for a null reference on a connection string?

Probably a C# noob question, so don't flame me. I was trying to do this: if (ConfigurationManager.ConnectionStrings["PrimaryConnectionString"].ConnectionString != null) { // ... } But I kept getting a System.NullReferenceException. I thought since it returns a string that I could just check for null and move on. It took me a while...

ASP.NET WhiteBox Testing Tool

Can you please give me a whitebox testing tool for Asp.net ...

Strongly typed access to result-set from Linq Join - to display in MVC view

I am new to the MVC/Linq party (coming from Java). I know that I can use something like the following to get strongly typed access, but what about if I want to use a join in my linq query? public void IQueryable<Product> GetItems(int CategoryID) { ...linq query... }enter code here ...

Export grdiview to excel problem

Hi There, I had this post before,but I have some problems when I add a header for specific charcter set,and also add some additional data, here is my code; Response.Clear(); Response.ClearHeaders(); Response.ClearContent(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=aname.x...

Http Compression Module issue

Iam using HttpCompressionModule technique in my solution. In one page I am using AJAX MultiSlider control. Problem I am facing is that because of HttpCompressionModule file the MultiSlider control does not get rendered in IE7 and FireFox but it works fine in IE6. Also please let me know that if I dont want to compress .axd file then wh...

Open source file upload with no timeout on IIS6 with ASP, ASP.NET 2.0 or PHP5

I'm after a cross-platform cross-browser way of uploading files such that there is no timeout. Uploads aren't necessarily huge -- some just take a long time to upload because of the uploader's slow connection -- but the server times out anyway. I hear that there are methods to upload files in chunks so that somehow the server decides no...