asp.net

Problem converting .ico in byte array to Image object

I am trying to take favicons and add them to a dynamic image that I am creating. See StackFlair. The website code works fine locally, and on one shared hosting server. blah blah, free hosting plan, you get what you pay for, blah blah My trouble is that I get an exception from a new hosting setup. This exception only happens for .ico ...

How to save position of dragged items

HI, I want to save the position of dropped items to database[aspx,javascript]. The user can drop any number of item,resize and delete[hide] and finally when they hit 'save' button ,it should be saved to database. I have code to do this in drop /stop but it will save all the dropped items i want to save only at final stage. I guess lot ...

C# Exception when remotely connection to SQL Server 2005 instance

Hi guys, Trying to connect to a SQL Server 2005 instance remotely but getting the following exception: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow r...

PageMethod reload page

Hello I call static PageMethod from JS. PageMethod send some information to emails. When I call it, page reloads. How should i prevent reloading page during PageMethod and do it at ajax style? Thanks. ...

Why does my asp.net application recycle when I delete a folder?

I have a Silverlight application using a WCF service hosted in IIS. I make use of some aspects of ASP.NET. I have the following folder structure for my application: inetput wwwroot myapp reports {user-guid-folders} report1.pdf report2.pdf App_Data (folder) bin (folder) Client_Bi...

Why does google chrome do a full page reload on postback?

I am creating one of my first Asp.Net tools and I ran in to a small bump. Currently I am doing a postback on a buttonclick which does some server-side calculations. The server-side code then uses those calculations to alter the contents of a div. In IE and Firefox when a postback happens, the div updates as expected. However, in chrome...

Form is not submitting via javascript on a button

My website has been created with a CSS/HTML frame work that has been integrated into an ASP.NET website. Inside of a ContentPlaceHolder, I have a simple login form. The catch is that I am using the onclick event of an image to submit the form. It normally works pretty straight forward, but this time I am having an issue. <div id="lo...

Problem with setting wwwroot by session with TinyMCE FileManager

I'm trying to set different values for TinyMCE through ASP .NET Session. In the web.config for File Manager the SessionAuthenticator is set up with <add key="SessionAuthenticator.config_prefix" value="filemanager" /> So in a MVC controller I do Session["filemanager.preview.urlprefix"] = "{proto}://{host}/edunet/"; Which works, the...

about frameworks

How many web-frameworks do we have and what are they? ...

Error in Internet Explorer "State information in invalid"

I write <%@ Page Title="" Language="C#" MasterPageFile="UserMasterPage.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MaxnetEcommerceNew.Default" EnableViewStateMac ="false" EnableSessionState="True" EnableEventValidation ="false" ValidateRequest ="false" ViewStateEncryptionMode ="Never" %> then also it is givi...

restore sql database

I want to restore a database using asp.net web application in C#.. Can anyone help me with this? ...

SSRS 2008 security integratation with asp.net Membership Provider

Hello, I've a web-site, that use asp.net membership provider. Two days ago I got a task to Integrate with my site SSRS 2008 security. WEB-site is located in http://localhost. In this page I have login page. If user is authenticated, web-site is redirects to main page. Report site generated by SSRS is located in http://localhost/Reports...

Transfering SQL 2008 DB

I have an SQL 2008 DB and I need to transfer the structure and the data to an off site, off network database. I need to somehow create a physical file that represents the structure and data within the db that can be loaded in another instance of SQL Server 2008. What are my options? ...

Is this a namespacing problem?

I am experiencing a strange behavior with very basic web service development. This question might be dumb but I think someone would be able to explain this observation. I am developing a web service with a web method, MyWebMethod MyWebMethod(MyEnum Param, .....) Where, public enum MyEnum : int { Type_1 =1; Type_2 =...

insert statement conflicted with the foreign key constraint???

my stored procedure is- CREATE PROCEDURE [dbo].[usp_SetMenu]( @locationId BIGINT, @menuId BIGINT = NULL, @name VARCHAR(100) = NULL, @taxable BIT = NULL, @type VARCHAR(100) = NULL, @dateFrom DATETIME = NULL, @dateTo DATETIME = NULL, @timeFrom VARCHAR(10)...

Getting user password from Active Directory

I am using active directory in my ASP.NET project and whenever user register in the site,an account is created in AD. There is an Forgot Password link.Is it possible to get user password from AD.I can get the name or email, but I don't know if I can get the password. Regards, Abhimanyu ...

State Information is Invalid error in IE

I asked about State Information is Invalid error in IE.when i click on Search button on Default page,it was giving me this error. I find where the problem is. Problem is with jquery files i used for Scrolling images. when i comment to this js file my Default page is working fine. But i want this js file compulsory.I used this js file in...

Solr Connection' already registered in container

Hi... i am using solr search on asp.net when i search first time it give me correct search result, bt after that when i change search parameter and try to search it give an error ("Solr Connection' already registered in container") so pl z suggest me that how can i remove it... ...

Where cookies are stored in system?

If i use Response.Cookies["test"].Value ="Hi"; where are cookie stored in system? Can i check Cookies["test"] value in my pc because cookies are stored in text format. I am using VS 2008. Operating system is Windows 7. I have tried to find in Google but not getting the exact answer. Please help to sort out this problem. ...

Code for event trigger at specific time in a day in asp.net using c#?

Code for event trigger at specific time in a day in asp.net using c#? ...