asp.net

Double postback required for place holder control

Here's a fun problem. The page in question is wizard like page. here's the scenario- User clicks on a link button to get to step 2 of the wizard. (The post back can't be avoided. URL based navigation isn't an option.) User clicks on a radio button/link button/any control that requires a postback for client-server interaction. The page ...

Embedding PDF from server in Browser

I have an ASP.NET web application.I have some PDF files in my server .I want to show those to the user via browser in a new window.how to embed PDF in a browser ? i want the save option to be available for the user to save the PDF .How to go ahead ...

Error: while trying to OPen PDF in ASP.NET

In my ASP.NET application,When I try to open PDF file by using the below code, I am getting an error CODE USED TO SHOW PDF FILE FileStream MyFileStream = new FileStream(filePath, FileMode.Open); long FileSize = MyFileStream.Length; byte[] Buffer = new byte[(int)FileSize + 1]; MyFileStream.Read(Buffer, 0, (int)MyFileStream.Length); MyFi...

When would you get a 404 when a page actually exists?

I've got an aspx page with a simple databound datagrid on it; some users get the page just fine. Others get 404s. If there was something wrong with the page, wouldn't I get an asp.net error, instead of a 404? ...

Using references in ASP.NET with Visual Studio and TFS

I am working with Team Foundation Server and Visual Studio 2008 for the first time. I had a web site project that was done with Visual Web Developer Express, which I have converted to a solution containing a Web Application Project, setup for TFS source control, etc etc. TFS was having issues checking in/uploading some of my referenc...

Javascript is called in IE and FF but not in Chrome, why?

I have the following code below for a button on an aspx page. When it is clicked it should call a javascript that will print the text in that div. Everything works great in IE & Firefox but when it is tried in chrome it is as if the OnClientClick is not kicking off the javascript. I receive no errors and it works in IE and FF now. ...

Javascript Pop-Up WIndow Open Function

Hello: I am using the following JS function to open a pop-up window to display another website: function link() { window.open("www.google.com") } onClick="Link()" The URL in the above example is just for testing. I actually intend on replacing the URL with a text value from a listbox, which is in the form of a URL. Anyway, when...

Retrieving password when the password stored as a hash value

Can users request that their password be emailed to themselves if the password is stored as a hash value? Is there any way to convert a hash value to the clear text value with the proper information (& what information would you need)? If a user has the same password hash value stored on two sites, would their password be the same for ...

Unexpected Caching of AJAX results in IE8

I'm having a serious issue with Internet Explorer cachings results from a JQuery Ajax request. I have header on my web page that get's updated everytime a users navigates to a new page. Once the page is loaded I do this $.get("/game/getpuzzleinfo", null, function(data, status) { var content = "<h1>Wikipedia Maze</h1>"; content ...

Filter child elements in an ASP.NET Linq-to-Entities

I have the following type of situation: TABLE Customers ( CustomerID int, etc... ) TABLE Orders ( OrderID int, CustomerID int, Active bit, etc... ) I am using this in an ASP.NET MVC web application using Linq-to-Entities. I want to select all Customers and populate the Customer.Orders navigational property, a...

Excluding the profile provider, is there an easy way to add custom fields to ASP.NET membership?

I know you can use the Profile provider for custom fields, but given the way the data is stored in the database, it is not efficient for my needs. Is there a way to add custom fields to the database for use with membership, while taking advantage of all the built in membership stored procedures and c# classes? (Short of adding fields t...

Emulate Excel Web Query in .net

I need to emulate an Excel Web Query in .net Below is the sample code. I get an Error500 when I attempt to do this in .net, however in Excel it works fine. Any ideas on what I am doing wrong? When I change the URI to a normal website it works fine, and returns the html from the page, which i what i am after. I wonder if the problem lies ...

ASP.Net SessionID keeps getting lost...

My asp.net application works fine when launched from its own browser, but when its launched from another web application (sharepoint webpart) using window.open it works until the user clicks and posts back, then the session is lost. I think its related to cookies, because when I set the session state to be cookieless everything works fi...

ASP.NET web app can't use multiple impersonation for authenication

I have a asp.net app (uses windows authentication for access) which (stipulated by the security team) needs to connect to a remote SQL Server 2005 using integrated security.Because of the fact that it is remote SQL server I needed to impersonate a custom account (impersonating the original caller would not work) via : <identity imperso...

Use Microsoft Exchange Email from Asp.net

Hello, Every body. I want to use/have an application that works like a mail box or better to say mail server, I mean I want to have a simple page that is linked to an exchange server in background, receives the needed information like sender, destination, subject, text message and finally the attachment, and then a send button that sends...

Binding arraylist to grid view (Part whatever....)

Ok, I'me getting real dumb with this one.... I have this class: Public Class whatever Public id as string Public name as string public date as string end class Wich I use with this code: dim personlist as new arraylist dim person as new whatever person.id="1" person.name="bozo" person.date="6-6-6" personlist.add(person) and then ...

Interaction between two user controls

I'm on the verge of madness ... In the application I'm actually building, I'm dealing with two dynamically-added controls that need to interact with each other, but I've reduced the problem to an as-simple-as-I-can-make-it example with the controls being statically loaded, and it still presents the same problem: a NullReferenceException...

Toolkits/Libraries for CSS in ASP.net. ( Like the Ruby Library 'Less' )

So, I just saw the ruby library 'Less'. And I want that functionality... Are there any existing libraries for ASP.net which will give me the same sort of functionality? ...

Include a class in inline code block in asp.net

I'm playing around with inline code blocks in asp.net. Can somebody tell me why the following code doesn't work? <%@ Language="C#" %> <% Response.Write(TestClass.ShowMessage()); public class TestClass { public static string ShowMessage() { return "This worked!!"; } } %> I get the following error ...

Call web service in asp.net inline code block

Is it possible to call a web service from an inline code block in ASP.NET without adding a web reference? If so, can you provide instructions? ...