asp.net

DropDownList width in Internet Explorer

I have an ASP.NET DropDownList with a rather wide content, while the closed list's width has to be quite small due to room limitations on the site. That's why I need to be able to set a specific width to the list when it's closed, but want it to be as wide as the content when it's opened. By default, Firefox automatically makes DropDown...

How can we improve our deployment and build systems?

We have 4 different environments: Staging Dev User Acceptance Live We use TFS, pull down the latest code and code away. When they finish a feature, the developers individually upload their changes to Staging. If the site is stable (determined by really loose testing), we upload changes to Dev, then UserAcceptance and then live. We a...

Gridview wordwrap

I've tried changing the RowStyle Wrap property and every Wrap property in the grid. How do I stop word wrap in a Gridview no matter what size the Row's Text Length is? ...

IsPostBack always returns false

Every time I test the IsPostBack in PageLoad() false is returned whether or not post data is present. My first reaction was to check to see if the runat="server" tag was missing from the form or submit button. However, they were all added and the WriteEmail.aspx page still always returns false for IsPostBack. I have also tried using IsCr...

How can I databind to a string array?

How can I databind a string array (string[]) to a dropdownlist? Does it implement iEnumerable? ...

Modifying XMP data with C#

I'm using C# in ASP.NET version 2. I'm trying to open an image file, read (and change) the XMP header, and close it back up again. I can't upgrade ASP, so WIC is out, and I just can't figure out how to get this working. Here's what I have so far: Bitmap bmp = new Bitmap(Server.MapPath(imageFile)); MemoryStream ms = new MemoryStream()...

jQuery and Asp.Net compatability

I am trying to use jQuery and Asp.net Ajax library. The jQuery code is solid, I have it working on a seperate page. When I incorporate the jQuery code into an existing page that using Asp.net Ajax, the jQuery code does not work. I think this has something to do with name mangling. How can I stop asp.net from name mangling or whatever e...

Using ObjectDataSource and DataObjectTypeName, How Do You Handle Delete Methods With Just An Id Parameter?

If I have an ObjectDataSource setup like: <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="Employee" InsertMethod="Insert" UpdateMethod="Update" DeleteMethod="Select" TypeName="EmployeeDB"> </asp:ObjectDataSource> and a data/business object with methods like: public clas...

Auto-Downloading Amazon Reports

Hi Guys, I have been trying all day in ASP.NET, and I am pulling my hair out (:D). Does anyone have code in c# to auto-download amazon affiliate reports - so I dont have to do this daily. Why amazon DONT have this functionality is beyond me ? Would really love any help anyone can provide? Thanks ...

Disable Visual Studio ASP.Net debug from launching browser

How do I configure Visual Studio to stop launching a broswer window ever time I debug an ASP.NET project? ...

Download a file over HTTPS C# - Cookie and Header Prob ?

Hi Guys, I am trying to download a file over HTTPS and I just keep running into a brick wall with correctly setting Cookies and Headers. Does anyone have/know of any code that I can review for doing this correctly ? i.e. download a file over https and set cookies/headers ? Thanks! ...

Efficient SQL procedure to get data from name value pair table into DataSet?

Using SQL Server, have a name value pair table. Each row is basically userid, contentid, sectionid, parameter, value. So there is data I want to display in a table such as user information. Each bit of information is in it's own row, sow how do I get it into a DataSet for use in a Repeater? Can I somehow merge the rows into one? So I can...

ASP.NET Membership with more than 2 million users - any problem(s)??

Will ASP.NET Membership handle a scenario with more than 2 million users? Does anybody have good or bad experiences with (very) large scale use of this provider? ...

How to export report data from SQL/ASP.NET to .XLS download with color and formatting?

Would like to be able to set colors of headings and such, different font sizes and background colors for cells. C# please. ...

Disabling browser caching for all browsers from ASP.NET

I'm after a definitive reference to what ASP.NET code is required to disabled browsers from caching the page. There are many ways to affect the HTTP headers and meta tags and I get the impression different settings are required to get different browsers to behave correctly. It would be really great to get a reference bit of code commente...

ASP.NET HoverMenuExtender Lazy Loading

I'm trying to get my hovermenuextenders to do some lazy loading. I have avatars across the site that when hovered over should pull back various things (images, recent posts, post count, etc) For obvious reasons I don't want to do this for all avatars on the page_load. Using the following code I'm able to get the hover event to trigge...

Display XML on an ASP.NET page

I have a string containing XML document using LinqtoXML What is the best way of displaying it on an asp.net page as is. ...

Master Page

I need to ask if I have master page that contain button as an example then I add new webform(default) and I assign that master page as default form master page.the question is can I change the text of the button in default page code? ...

Partial PostBack and actions on client side

I've got two DropDownLists. First is visible and second is not. I'd like to have something like this: Select value from first DDL. Then partial postback occurs - the data is retrieved from DB based on selection. Second DDL is populated Second DDL is shown with i.e. slide effect (javascript) I don't want to have full postback. The ...

URL authorization failed for the request

Hi Guys I am in the process of moving some sites over to a new windows 2003 installation running IIS6. However I am running into problems with forms authentication. The sites in question run fine on the old box which is the same OS and IIS version. When I try to login to the website I get a event log "URL authorization failed for the ...