asp.net

w3wp.exe and Page Faults

Hi all, I am having problems with a web server that I am working on, and I just can't seem to figure this one out. The server is running Server 2003 and IIS6. My w3wp process on a medium traffic site has hit 100% CPU usage, and is having huge page faults (PF Delta is around 15k). At times where we have around 800 users online, the pr...

gridview whith dropdown extender

hello, I have gridview with TextBox Template field and DropDownExtender so when user click on the textbox another gridview will appear tha contain List of items and button to add the item to the first gridview. my qusetion is: how can i in the event of button click(which is in the extender gridview) to get the row index of the first grid...

asp:LinkButton with Javascript errors in an user control

Hi all, I have a asp.net page with some user controls in it. One of the controls is a search form that has its results populated into a gridview. The gridview needs to have some extra columns that contain 3 LinkButtons that perform a url calculation and redirect to another page. The reason that I chose LinkButton over HyperLink is tha...

ASP.NET isn't automatically rebuilding

If you create an ASP.NET Web Site project and run it, you get a blank page. If you go into the default CodeBehind file, add into the Page_Load method throw new Exception();, save the file, and refresh it in the browser (without rebuilding), the server automatically rebuilds the project and the page will error. I have a project that I am...

How to add custom ASP.NET pages into sharepoint

How to add custom ASP.NET pages into sharepoint? I am very new to sharepoint but what I realized is that I can only make plain text pages or links. but what if I have a website already built in ASP.NET and want to add it through sharepoint. Or is it possible to build the website itself from sharepoint including dynamic server side contro...

How to create a installer to implement a database schema change?

hi all, I am creating a project which has its own database schema. The other projects which will use the DLL created by my project will have the same schema in their databse that the my DLL requires. But the problem comes if there is a need to change the schema for me, it's not a good option to say this to every client that make these a...

Is it possible to suppress the Web Forms Designer in Visual Studio from being opened?

The primary reason for asking how to do this is because I personally never use it. The Designer is slow to load... especially on complex pages with lots of controls. To put it bluntly, I think of it as a crutch that web developers should avoid. I would like to encourage team members to avoid using it as well. If there is a way to do ...

ASP.NET MVC AJAX returning new page on simple call

I'm not sure what's wrong with the following setup. I have a View that lists a number of records, and each has a dropdown associated with it to change a value on that record. I had it all working without AJAX, but you had to change a bunch of the dropdowns then click a Submit button. I wanted to change it so that it would save the dropdo...

Google Protocol Buffers or something similar for .net/javascript

We are currently using Ajax calls to a .net web service that then returns a Json object to the client. Some of these Json objects are pretty massive (> 500k uncompressed). We have heard some good things about Google Protocol Buffers and have been experimenting. So far, we have had pretty good luck serializing on the server with what s...

gridview dropdown extender

hello, I have gridview with TextBox Template field and DropDownExtender so when user click on the textbox another gridview will appear that contain List of items, on row data bound for first gridview i give the data source for the second gridview. my problem is that: for few second when the page load the second gridview(in the extender )...

Saving PDF file to Shipment in Oracle

I have a web site that allows the user to generate a PDF Export Document based on shipment data in Oracle. One requirement is to save the PDF file to the shipment in Oracle. Does anyone fimiliar with Oracle Order Management know if there is a BLOB field associated with the shipment that I could store this in or an API I can call from m...

Connecting To SQL Server DB Using VS2008

I am using VS2008, and usually I'll develop my sites from the App_Data folder and then just upload the whole site to the server. Now I have a site and the SQL DB is running on the server already (Not in the App_Data folder , I use SQL Studio Mgement to connect to it and edit), so instead making the changes to the local DB and then again...

Help understanding how to build a web service

I have a client who has an ASP shopping cart (classic asp) and a Windows based point of sale system both using their own SQL Server databases. The maker of the Windows point of sale system has a utility that will export the inventory as an XML file and will also retrieve any sales from the shopping cart if it is in their special XML for...

Best practices to generate schema for production with NHibernate

I am now ready to use NHibernate to persist my data layer access. I used DDD until that point and I use fake for unit tests and for the test site. I know that I can use SchemaExport for unit/integration tests of my NHibernate concrete repositories but how should I generate the schema to be used for the test site ? Should I create a spe...

DotNetPanel-Custom Page Creation

I need to create a new custom page ie .ascx in DesktopModules>> Dotnetpanel. Because I can't add the controls in the App_Data\DotNetPanel_Pages. config due to the security reasons as I need to pass the UserName and Password to the webservice. I need to know if I do the codes in the App_Data\DotNetPanel_Pages.config , is there any se...

Ideas to improve/enrich a WebForms application by adding ASP.NET MVC elements to it

I'm currently present with the following situation. We have a huge enterprise application written with WebForms. Refactoring it or completely rewriting it is out of the question. So I'm not talking about migration WebForms -> MVC. However, I understand one can technically add MVC functionality to coexist with the rest of the project. I...

FormView + FileUpload - can I change a bound field based on the fileupload?

I have a FormView control in an ASP.NET 2.0 app. I've got the database storing a filename (a person's picture) in a column. I can't bind the value of the column to a fileupload control - so I'm trying to use a hidden form field. Here's what I have: <asp:HiddenField ID="pictureLink" runat="server" Value='<%# Bind("pictureLink") %>' />...

Do asp.net application variables pass by reference or value?

I've discovered recently that when using the Session or Application objects within an ASP.net application, that it passes the values by reference. This works great most of the time, but now I'm in a place where I truly need a copy of the data, and not a reference to it, since I will discard any changes to it when done processing. I'm a...

How does ASP.NET MVC Generate JsonResults?

I want to inject some Json into the Html page returned by the server? Is there a public function that returns the Json string when Json(someObject) gets called? Note that I don't want to return Json to the browser in a seperate request. I want to convert an object graph to json and inject it into a script block. Thanks ...

Issue using List returned by webservice

Hi- I have a webservice that returns a list of "Clinics" near a certain lat/long. However, in my calling web, I can't compile as an error is occuring on the following code. private static List<Clinic> GetClinicsNearLocation(Coordinate coordinate, int searchDistance) { var wsDental = new ProviderLocation_Dental(); List<Clinic> c...