asp.net

Reading Stream and open that document

I have a stream object in which I have some document, I know what document is it, how can I open that document without saving it into a file physically. So I want to directlly open the document from stream itself without saving it. How to do that? I doing it in c# ...

Page backgound turns black on zoom in IE7

i have a pop up in the page.. which loads an iframe as the background with a slight dull gray color, when the pop up loads.. but when user zoom the page in IE7 and restore to 100% the background turns black/white.. why is this happening... is there any way to correct this error... pls help ...

How to Use compare validator

Please tell me how to apply compare validater for password and confirm password in ASP.NET MVC2. Please give me some good link or any sample. Thanks ...

How to prevent master page postback when update panel asynchronous postback happened

Hello everybody. When an asynchronous postback happened inside update panel, another postback happens also for MasterPage not only update panel embedded page . I want to prevent this MasterPage postback . is this possible ? think like i have a MasterPage and another page which is test.aspx which is content page of MasterPage i have...

convert to an UIImage (iPhone) a data stream from an asp.net web service

Hello I developed an asp.net web service that send an image and i want to convert the received data stream to an UIImage in my iPhone this is a sample of what i get from the web service R0lGODlhbQCdAOYA...KsxbcSAAOw== thank you in advance ! ...

ASP.NET Web site spawing hundereds of Connections to SQL Server Express instance - how can I identify culprit code?

This is a quite a big, quite a badly coded ASP.NET website that I am currently tasked with maintaining. One issue that I'm not sure how to solve is that at seemingly random times, the live web site will lock up completely, page access is ok, but anything that touches the database causes the application to hang indefinitely. The cause se...

New to Dynamic SQL Statements.

Hi, Im currently making a very simple WebApp on a Website using ASP.NET Framework using C# in Visual Studio 2010. The website will connect to my SQL EXPRESS server running on my laptop (Its all locally based) I have a table defined as below CREATE TABLE Users( userName varchar(50), email varchar(50), firstName varchar(50), lastNa...

Passing null values in single line Conditional

Just a fictional code, but why this won't work? (as the date variable is nullable) DateTime? date = textBoxDate.Text != "" ? textBoxDate.Text : null; The error is "There is no explicit conversion between System.DateTime and <null> ...

Iterating Dynamic FileUpload Control Collection in Panel Control using ASP.NET C#

Hello everyone, I'm trying to get the values of dynamically generated FileUpload controls that I add to a Panel: <asp:Panel ID="pFileControls" runat="server"> </asp:Panel> I create the controls during a loop through a record set: foreach(DataRow dr in ds.Tables[0].Rows) { FileUpload fu = new FileUpload(); fu.ID = dr["SomeID"...

jQuery Ajax Url Path Breaks When Accessed in different directory levels

Hey all, Its time for another very simple question that I can't find an elegant solution for. Basically, I have an app that is using a jQuery Ajax call. In this call, you have to specify a URL path for the service that you are calling. In this instance, I am needing to call this JavaScript function from multiple files in my applicati...

I have applied printing functionality in pop up window. It is not working only in IE I am using .Net framework.

I have applied printing functionality in pop up window. It is not working only in IE I am using .Net framework. ...

ASP.Net cache don't work under IIS 6.0

I have ASP.Net application with a simple cache helper. Under VS web server it works fine. Under IIS 6.0 cache doesn't work- object, was saved previos, doesn't returns after a minute (with no exception). What could be wrong? public static class CacheHelper { public static string Share<T>(T @object, TimeSpan period) { ...

Filter expression not working properly

Hi, I am using a GridView and I require the user to be able to filter using 2 controls. One simply filters the type of row - there is a column called action, and the user selects one of the distinct values from the database in a dropdown box, and the gridview only displays the rows with that value in the action column. On it's own this w...

ASP.NET app wont share database with Sql Server Management Studio Express

I have an ASP.NET 3.5 app with a SQL 2005 Express .mdf database file in its App_Data folder. Lets call that Foo.mdf. On its own the ASP.NET app can connect to the database with no problems. So far so good. Then, if I install Sql Server Management Studio Express on the server and start it, it finds the local SQLEXPRESS instance and conne...

ASP.NET SQL Membership Tables

What's the best way to tie my tables (like Customer, Orders) to the Users in the membership tables. Is there a way to tie it using an int somehow? ...

Ajax async callback behaviour

Hi all, I'm investigating a bug in some software where basically two users press search at the same time and one gets the others results back. I believe this to be a combination of things. the connection is a a singleton that is shared across all instances on the server when search is pressed an async ajax callback is used to send the ...

How do I run an if statement in aspx?

I would like to run an if statement but the condition uses a variable from the code behind. How do I call that variable? Side note... I am using a gridview and the variable is in a dataset (dsResult - idnbr colum) <ItemTemplate> <% string temp = (Eval("idnbr").ToString()); if (temp.Contains("X")) { %> ...

Childwindow javascript method opening another child window

I am opening a child window using window.showModalDialog(). In child window I am calling another javascript method OK button click. When I do "OK Button" click in child window, another new child window is opening un-wantedly. Please follow my steps Here is the Parent Javascript method with window.showModalDialog() 2.In ProfilePic.aspx...

Loop through directories and search for .JPG filess

I have this code and I'm getting an IOException and can't figure out what the problem is. I'm trying to loop through the subdirectories in a directory and list all of the .JPG files. protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Session["AllEmpsLoadPath"] = "\\\\intranet.o...

Looking for a C# asp.net ID3 tag editor

I am looking for an asp.net C# library that can edit ID3 tags. Preferably an open-source and/or free library. In my googling I found TagLib but nothing really about an asp.net implementation. I also, even just a couple of weeks ago, found something called TagLib# but it's no longer where I found it (at this URL:http://developer.novell....