asp.net

How to use __doPostBack()

I'm trying to create an asyncrhonous postback in asp.net using __doPostBack(), but I have no idea how to do it. I want to use vanilla javascript. Something simple like a button click can cause the __doPostBack() event to fire. I'm just trying to learn how the mechanism works. ...

ASP.NET AJAX 4.0 client side databinding

I read some articles in MSDN magazine about new features in ASP.NET AJAX 4.0 - primarily client side data binding. I feel MSDN magazine sometimes contains a lot of "marketing" so I'm interested in opinions of real developers. Does it worth it? Do you plan to use it? Edit: Here are links for articles if anybody is interested. But at th...

Should I learn ASP.NET AJAX, jQuery or both?

I'm .NET developer. Most of my career I worked on web based intranet applications (ASP.NET WebForms) but always as a server side developer. Client side development was done by my colleagues more skilled in JavaScript and different JS frameworks. At the moment I have some JavaScript skills and very elementary understanding of both ASP.NET...

How do I prevent NGEN from rebasing my code (negatively affecting performance)?

I simply want to speed up my .NET-base client side app and am considering NGEN-ing the code. Jeffery Richter wrote this warning about ngening code: •Inferior Load-Time Performance (Rebasing). When Windows loads an NGend file, it checks to see if the file loads at its preferred base address. If the file cant load at its pre...

Adding click events to user control

Hello All, I have a user control in an asp.net web application. The control outputs an html list that is customized based on the currently logged in user. The list items are generated from a database look up and the user control is formatted to appear as a drop down list in the page. The control itself is simple and looks like this: ...

problem connecting to access database in asp.net 2.0

hi im trying to get a dataset from an access database im using this connection string: <connectionStrings> <add name="SiteConnString" connectionString="Data Source=c:\inetpub\vhosts\db\mainDB.mdb" providerName="Microsoft.Jet.OLEDB.4.0" /> </connectionStrings> and this is my call to SqlHelper: myDataSet = SqlHelper.Exec...

Is there any ASP.net C# based Open Source Payment gateway?

Hi, I am interested to know if there is any open source payment gateway based on ASP.net C# to process Visa, Amex, Discover, MasterCard payments. Thanks all ...

Why would I want to pay my webhost for a MS SQL database over a MySQL database?

I'm in the market for an ASP.NET host to start learning on and to host personal projects. I've noticed most of them provided both MySQL and MS SQL databases. However, usually they will only provided a couple MS SQL databases, but a large number (like 10) MySQL Databases. Can I use a MySQL database as a back end to a ASP.NET website? If ...

ASP Update Panel, catching exceptions

Hi, Thisis the code I use to display an aspxloadingpanel with an ms update panel: var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_initializeRequest(initializeRequest); prm.add_pageLoaded(pageLoaded); function initializeRequest(sender, args) { pbar.Show(); } function pageLoaded(sender, args) { var panels = ar...

Tracking open pages with ASP.Net

I'm sure that this question has already been asked, but I don't really see it. Using asp.net and c#, how does one track the pages that are open/closed? I have tried all sorts of things, including: modifying the global.asax file application/session start/end operations setting a page's destructor to report back to the application ...

How does one output arbitraty text from INSIDE a control class in C# ASP.NET, MVC?

Is it possible to say something to the effect of 'SomeClass.Out.WriteLine("hello world")' and have it actually show up for the browser to render? I ask, because I notice that the HtmlHelper BeginForm implements IDisposible. So at the end of the using block, a closing tag is written to the browser. I am not saying I would use this pr...

How to make XHTML validation happy when using Custom System.Web.UI.Control?

I am sure this question has been asked and answered; but I haven't managed to find it... I am creating a very simple custom System.Web.UI.Control that has a few properties. I can define in my ASPX page the following tag and everything is happy: <ns:MyControl runat="server" MyProperty="Value" /> However, if I want to have one or more ...

Are the Internet Explorer Web Controls IE only?

Recently, I came across a set of Internet Explorer Web Controls from Microsoft. These look to me to be older controls from the pre-standards era of Microsoft's asp.net development. I'm curious as to whether or not these controls work well with modern browsers, or if they're basically IE only. I know it says it will render to "downleve...

What methods are there to send read/ write a file from one machine to another?

Using asp.net what non http / ftp methods are there to read a file from one machine and write it back from another? For example i have an image on machine A called test.JPG. Machine B should be able to grab a copy of test.JPG generate a thunmbail and send it back to Machine A. I've looked at the following solutions but unsure which if...

Should StateServer (aspnet_state.exe) release RAM when a session ends?

I am noticing that the StateServer service only grows in memory usage. When a user logs out the session is ended with: Session.Clear() Session.RemoveAll() Session.Abandon() I assumed that StateServer would then release some memory, but it will actually consume a bit more. In web.config I have the timeout set to 20 minutes. The sessi...

Publishing website created using asp.net

I have created a website with asp.net and uses oracle connectivity with pl/sql developer.i have uses the crystal report which is a third party tool. how to purchase it. i am using visual studio 2005 and yes i am using basic crystal crystal that comes with visual studio. Now suppose i hav purchase a domain www.abc.com. and i want to pubs...

referencing one aspx.cs class in another aspx.cs class?

Does anyone know how to reuse the code from one aspx.cs class in another aspx page? ...

How to brand and license source code?

I have a open source .NET application. I want to brand it with my website and offer users to purchase a license to remove it. But how can I do this if I give out the source code? What is the best way to do this without effecting performance too? ...

Error 500 with custom HttpHandler in ASP.NET website (IIS 7.5, Win7)

Hi I'm trying to get custom HttpHandler working in my sample web application. I've been experiencing a lot of issues, but finally got stuck with error 500. Application pool is being run in Classic ASP.NET 2.0 mode. Server is IIS 7.5, OS is Win 7 Pro. Here's a code of my handler: public class SampleHandler : IHttpHandler { public ...

how to get the html code of asp.net controls, so to use that code further

have made a asp.net table which on run time gets populated with labels, literals, data, formatting etc. form1.innerhtml says page doesnot have literals only. i need to extract this asptable generated at runtime, as html code so that it can be eported to a word file..(as word easily supports html) and the browser is also displaying html...