asp.net

Visual Web Developer Express 2010 runtime launches two web pages

I have an annoying issue with Visual Web Developer Express 2010. When I run my web app with CTRL + F5, VS launches two IE pages of my app. When I run the app using just F5, I get one page of IE. Is this a bug? ...

So what does a server control do/what happens to a server control, AFTER its instantiation, but BEFORE loading View State?

My understanding of the page life cycle: An aspx page's constructor calls all server controls' constructors, thereby creating a Page object as well as all server control objects(Instantiation)-->Page_PreInit-->ServerControl.Init()-->Page.Init-->Page.InitComplete-->Laoding View State. However I'm not sure much action happens to server con...

Why ActiveX "Unknown Publisher" error when using signed certificate?

Hi, I have been struggling for days trying to get a simple ActiveX DLL to work with no success despite studying several articles on the subject which I have found online. I suspect I have several things coded incorrectly as I am just not familiar with this and most of the articles on the subject are out of date. I am using Visual Stud...

inject jquery into every ASP.Net page

Is there any way to inject JQuery into every page on an ASP.Net site without adding the script tag to every page individually? ...

Web services, handling server events on the client

Hi all, Had a look over SO but I can't see any threads which address my problem. I have a conceptual architecture, where there is a central server, which allows clients to connect to it via XML web services. There are 2 types of client, producers and consumers. The system is built in C# using WCF WebServices, specifically IIS webservi...

How to create a server checkboxlist with div in C#.net?

hello friends, please tell me how will create a custom server control with a checkboxlist with scroll bar using asp.net server control 2010 in C#.Also i need to display the checked items in any control available in the toolbox by clicking a button... ...

Link button in asp.net?

Hi, I developed a web application, in that main page i used link buttons and write some code in link button click event, Problem is when i right click on the link buttons i am not finding open in new tab option in link buttons, how can i solve this problem can u help me please. ...

connection string issue in web.config of ASP.Net

Hello everyone, I am using VSTS 2010 + C# + .Net 4.0 to develop an ASP.Net application using SQL Server 2008 Enterprise as database. I am learning someone else's code. I notice code like this, I am not sure whether the usage is correct and so I come here to ask for advice. In the code, I see some code like this, I want to know whether ...

How to protect a web server FROM a reverse proxy server.

I have a website "www.website.com". Recently I found out that somebody has set up a reverse proxy with an almost identical url "www.website1.com" in front of my website. I'm concerned of those users who came to my website through that reverse proxy. Their username and passwords might be logged when they login. Is there a way for me ...

aspx send mail as spam

app.config <system.net> <mailSettings> <smtp deliveryMethod="Network"> <network defaultCredentials="false" host="smtp.gmail.com" password="aaa" port="587" userName="[email protected]" /> </smtp> </mailSettings> </system.net> C# code: MailMessage message = new MailMessage(email.From, ...

Display uploaded document from database

Hi there, I have a MVC 2 web application. The website captures grant applications for loans. With each application I can upload documents. The way that we upload documents to the database is as follows: private IEnumerable<byte> GetStreamByteArrayData(Stream stream) { byte[] buffer = new byte[8192]; int bytesRead = 0; while...

How to create panel like windows in WinForms

Please See this: http://img405.imageshack.us/img405/2008/rolloversummaryschedule.jpg How can i create a window that holds Patient data in it? The 2 records that you see is in List View. I would then using ContextMenuStrip for text "View Details". When View Details is clicked i need to show the context. For web development this could be...

Unclosed tags in string

Hi. In my string I have some unclosed html tags. For example <div><p></p> or <p><b></p> I'm using asp.net c#. Maybe regex can works. ...

ASP.net application using database

Hello, I need to do a project. I am supposed to make an application in ASP.net and vb.net where users are given an application in which they can place orders but the database resides at my computer, connected with internet. could you give me hint where to start? How user can connect with my computer's database? Please give me some code...

Silverlight error while calling a service

I am trying to call a service from a silverlight application, but I am getting the following error. Uncaught Error: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. This works fine locally. I don't know if it make any sens...

httpsessionstate in firefox

Hi, I have an ashx file (http handler) with my asp.net app. Now it seems like that every time I store a value in session state it does not really get stored, meaning if I click a button then check for the session it always returns null. However it is working fine in IE8. can anyone please suggest? ...

Inserting , updating and deleting of Data

Hi All, I want to make a control that show list of bounded data like in grid view but I want to be able to insert new record from the same control what is the best asp.net control I can use to do that (GridView , FormView or DetailsView)? and why? Thanks in Advance ...

ASP.NET UpdatePanel inside JQuery UI dialog

I'm creating a jQuery dialog and filling it with content that gets loaded using jQuery's ajax() function. This content contains an ASP.NET Ajax UpdatePanel control that I would like to asynchronously update within the dialog. The content is a simple email form (two TextBox controls and a button). When I click the button, I want to sen...

asp.net and LDAP

I need help to understand and design a asp.net based system for my bank. Its a electronic bill payment system which different branches will use based on different cities. We all have our user names in Active directory for example : "josh.dave" and our domain is "mybank.com" so we provide josh.dave and password in our windows and logged ...

Time Picker Control

Hi All, I don't know if what I need is applicable or not , But I know that there is a lot of Date picker controls (asp.net , Ajax , Javascript , ... etc) , But Can I find a Time picker control looks like a Watch and enable me to select time from it or that is impossible Thanks in Advance ...