ASP.Net Custom controls vs. user controls: Are these two the same
If they are different, under what circumstances should we decide to use either approach? Also, what is the advantage of ascx over aspx? ...
If they are different, under what circumstances should we decide to use either approach? Also, what is the advantage of ascx over aspx? ...
Hi, Scenario: A WCF service receives an XDocument from clients, processes it and inserts a row in an MS SQL Table. Multiple clients could be calling the WCF service simultaneously. The call usually doesn't take long (a few secs). Now I need something to poll the SQL Table and run another set of processes in an asynchronous way. The ...
In a GridView, I'm trying to show either one column or an other using a public Boolean property: <Columns> ... <asp:BoundField Visible="<%= !ShowPurchaseDate %>" DataField="Published" HeaderText="Publicerad" SortExpression="PriceRange" DataFormatString="{0:yyyy.MM.dd}" HtmlEncode="false" /> <asp:BoundField Visible="<%= S...
My project has 4 layers i need to debug from UI to DAL ,,but when i am debugging,its going only in UI,,can any one tell how can idebug up to Dal ...
I am using ASP.NET 2005, C# and Crystal Reports 8.5 for development. It's running fine on my development computer, but when I try to to run from the server it is giving me an error. Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' o...
I had this connection pool problem: How to solve a connection pool problem between ASP.NET and SQL Server? And I am now tracing using the SQL profiler, and I found some queries take about 400 duration to finish and return data. Is that value too much? Could it cause the previous connection pool problem? ...
Is it possible to map all file extensions in a folder to a specific HttpHandler (assuming that their file extensions are mapped to aspnet_isapi.dll in IIS) ? I've got the FLV extension mapped to ASP.NET in IIS, and have a folder named Static in my web application with the following files: Static/Index.htm Static/MyFile.flv The index...
While tracing the active connection on my db i found that some times the connections exceeds 100, is that normal? and after few minutes it return back to 20 or 25 active connection more details about my problem Traffic on the site is around 200 visitor per day. Why i am asking? because the default MaxPool in the asp.net connection strin...
I am building a web site with ASP.NET 3.5, and most of the site structure is static enough to create a folder structure and aspx pages. However, the site administrators want the ability to add new pages to different sections of the site through a web interface and using a WYSIWYG editor. I am using nested master pages to give the diffe...
How do I setup a custom server control, so that it can be dragged into a design view in Visual Studio? I have create a separate ASP.NET Server Control project and a custom MailLink control, basically by copying the code from this MSDN article: How to: Use Custom ASP.NET Server Controls in Visual Studio. The control works fine, if I manu...
I am trying to bind a List<AreaField> to a repeater. I have converted the list into an array by using the ToArray() method and now have a array of AreaField[] Here's my class hierarchy public class AreaFields { public List<Fields> Fields { set; get; } } public class Fields { public string Name { set; get; } public string V...
I am building a site in asp .net 2.0 web forms. When I load up the page firebug gives me the error: missing } after function body createCallback()("") //]]>\n It's in a file called MicrosoftAjax.js What might be causing this? UPDATE I've done a bit more digging and it looks like the problem is coming from the ajaxtoolkit, specifical...
I want to make the items of my RadGrid be editable on page load. I've tried both methods here http://www.telerik.com/help/aspnet/grid/grddefaulteditmodeforgriditemsoninitialload.html but neither have any effect. The 2nd method for example, shown below where the Edit property is set on the ItemCreated event, causes the Edit mode to be se...
Hi, How would I reset my asp:DropDownList element (which has a runat="server") to index 0 every time the page is "reloaded" in firefox (F5 is pressed). If you suggest using javascript...please note that A: I am not using a form and B: I don't know how to access elements that have a runat="server" with javascript If this can be done us...
I have a dataset that i am binding to a repeater. The GetXML() of the dataset looks like this: <NewDataSet> <Table1> <Company.Date>03/22/2009</Company.Date> </Table1> </NewDataSet> The aspx looks like this: <%# DataBinder.Eval(Container.DataItem, "Company.Date")%> When I bind it, I get the error: System.Data.DataRowView' doe...
I have leftmenu.xml for displaying a Telerik menu, and I need to convert Text from XML which is displayed as a leftmenu into resources. This is the XML: <?xml version="1.0" encoding="utf-8" ?> <PanelItems> <PanelItem Text="sample" NavigateUrl="../Default.aspx?id=menu" /> <PanelItem Text="sample2" NavigateUrl="../Default.aspx? ...
i have a process that makes calls to a webservice and handles the responses, some of the responses require some user input so they can be handled. When user input is required i want to trigger an event, in the event handler i want to display a form to the page then wait until the user input is posted back then have the event handler retu...
How can I publish a web app using msbuild through the command line or insdie a batchfile?? ...
I am really confused with this behavior. Can someone explain this to me? I have the following class structure: public abstract BaseUserControl : System.Web.UI.UserControl { public List<string> listFieldMapper = new List<string>(); } public partial class Property : BaseUserControl { protected override void OnInit(EventArgs e)...
When I compile my .NET 1.1 ASP.NET app, I'm getting RESX reference problems. How can I easily force VS2003 to dump all these references (I'm not using them) and force a rebuild of them? ...