asp.net

How do I temporarily convert an ASP.NET Ajax form to not use partial page updates?

I need the ability to temporarily turn off the partial page update behavior for an ASP.NET Ajax / UpdatePanel based page. (The reason is to circumvent the issue where IE blocks "automatic file downloads" for downloads generated as a result of this postback, but I don't want to distract from my original question) I looked at the client ...

markup or RTF? in (ASP).NET with C#

I am developing a site and i would like some simple markup. I would need to keep the users newlines (easy enough replace \n with or use pre), a way to allow links and perhaps bold. Would it be best to use a markup or to use RTF? i was thinking maybe i want special characters like :username: to create a link to a user or maybe :icon-use...

Defalult no of Thread in Process in Asp.net 3.5

how many number of thread per process default in the system.thread.threadpool in asp.net 3.5 ? ...

.net Placeholders & StringBuilders

When we build our web apps we construct alot of HTML dynamically and the output them to placeholders at run time. One reason for this is to control our HTML output to optimise it for SEO and now that we have been doing this for a while its become 'the way we do it'. Generally its when we are looping through results. My question is, Is ...

ASP.NET: jQuery AJAX 'data' param problem

I've been having problems with this code I had spent the last 3 hours digging around and trying to find an answer. As I wasn't successful, I will just post the code and ask which kind of parameters I should have on my web service to handle this request: var args = [{ key: 'myId', value: 'myValue' }, { key: 'myOtherId', value: 'myOtherVa...

To disable image

hi guys, i have an html image .In its onclick i have written code to show calendar.I want to disable that image ,means i should not be able to click that image,but image should be visible.I want to disable the onclick event of image,Can anybody help? ...

ASP.NET Gridview - How do I make all rows but the header row have a hover effect?

I'm trying to make all rows have a hover background except the header row. Any tips? I've got BoundFields, a TemplateField, and a CommandField. Thanks ...

send xml.tostring via HTTPService.send() in flex

public var newtreeItems:XML = <items><page caption="Page"><scene caption="Scene"></scene></page></items>; private function BtnClick():void{ var params:Object = {}; params["call"] = "WriteXml"; params["XmlValue"] = newtreeItems.toString(); Alert.show(xmlValue); hsData.send(params); } <mx:HTTPServi...

How to index .doc and .pdf files in asp.net

How do I index .doc and .pdf files stored in a database (which uses MS SQL Server) in asp.net (C#)? ...

ASP.NET + C# Multi-Project Solution. Where should I put my global utility functions?

As the Title says, I've got a multi-project solution. I've got a "core" project that is loaded with most of the other projects. So my question is this, I have a few utility functions such as FormatPhoneNumber(..) that I would like to be able to access in the following manner from anywhere. (in Project_B which depends on Core) string ...

Avoding unnecessary updates In Update Query

Hi, In our application,Many pages includes "update" and when we update a table,we update unnecessary columns,which dont change,too. i want to know that is there a way to avoid unnecessary column updates?We use stored procedures in .net 2003.In Following link,i found a solution but it is not for stored procedures. http://blogs.msdn....

cacheRolesInCookie not caching roles

Hi all, I am trying to use forms authentication with the following configuration settings. I have set cacheRolesInCookie to true. However, I am finding that the RoleProvider's GetRolesForUser method is called on every request. I can see that the cookie .asproles is created and has data in it but it appears to be ignored. Has anyone come...

Best Practices for a Calendar Database Schema?

I'm a beginner with C#, ASP.NET, SQL Server Express and programming in general. I'm trying to make an online calendar (on a deadline). I'll read all the other posts that are similar to this, but for now I have a question that I hope will set me on my way. What are the steps to link a calendar to a database? Any examples of where/how thi...

.designer.cs what is it for?

In my project when I create a webusercontrol or a webform it creates the code behind, but it also creates a .ascx.designer.cs file. What is this file for? Can I prevent it from being added when I create a new webform/webusercontrol? ...

Retrieve Dynamics CRM custom fields using Webservice query

I'm trying to pull information from a CRM installation and so far this is fine for using the default fields. However I'm having difficulty retrieving custom fields, for example Contacts have a custom field called web_username. My code at present is QueryExpression query = new QueryExpression(); query.Ent...

binding different tables from DB into gridview!

how do i dynamically bind different tables from DB with different columns into gridview? Actually, i was using OleDbDataAdapter to to join the SQL statement and put in a DataTable but my question is, let says, i execute 1st SQL statement and when i execute 2nd SQL statement, the data adapter will use back the 1st SQL statement. So, i wa...

VS2008 Debug ASP and ASP.net together

Is there any way to debug both classic ASP and ASP.net applications from visual studio to allow me to breakpoint on an ASP line of code and an ASP.net one too? This is for a legacy system which has older classic asp components and newer ASP.net modules I have it working by debugging the ASP.net on its own (and not the ASP) or the other...

Need Advice for ASP.NET Form Builder

Hi All, I would like learn and create customizable registration form , user can edit and build all sorts of forms with different element something like Google Docs online form , i want to learn how to develop simple form like that using .NET technology, can anyone kindly advice me what is the best approach and are there any tutorial ava...

asp.net GridView Pager disappears!

I have a datagridview that is using paging, it works perfectly fine and I have a drop down that allows the user to change the 'PageSize' property - 10, 15, 25, 50, 100, 1000 etc. When I select a value for the PageSize that is greater than the row count for the grid the Pager is disappearing from both the top & bottom of the grid. Anyon...

Could not load file or assembly <My compiled dll>, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.

I know this has been asked before but the answer given was a temporary hack. We have had a site running on our live servers for some time now and we have just made some updates and deployed. Intitally the JIT runs and the site works. When the application pool is next refreshed we are receiving the following error from the webserver (I...