From time to time I run into situation in which I could solve a given problem by dynamicly creating piece of JavaScript, spesific to that instance of the page, that I could then insert in the final markup. Usualy this is because I want some behaviour to happen on the client side, rather than on the server side and creating a static JavaS...
the title is my question. i don't know the details of the web server that my project will be deployed on. in one class i execute a batch file in the project directory. should i just say "C:\Inetpub\wwwroot\etcetcetc" and hope for the best?
...
I found this in some production login code I was looking at recently...
HttpContext.Current.Trace.Write(query + ": " + username + ", " + password));
...where query is a short SQL query to grab matching users. Does this have any sort of performance impact? I assume its very small.
Also, what is the purpose of this exact type of trac...
In the following code:
EnquiryList.ascx:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EnquiryList.ascx.cs" Inherits="includes_EnquiryList"%>
<div class="EnquiryForm" runat="server">
<asp:GridView ID="gridMain"
runat="server"
PageSize="20"
Width="390"
GridLines="None"
CssClas...
Hi,
I have an ASP.NET application that renders a 3rd party (Telerik's) menu control under
another control (RadDock) when the menu expands.
This artifact ONLY happens in IE7. Not in Safari/FF/Opera/Chrome (Have I left any out?)
The menu control needs to be rendered OVER the other control.
I have Google'd this a fair amount, but hav...
How can i solve this problem "Error updating JScript IntelliSense: D:\myProject\js\jquery-1.3.2.js: Object doesn't support this property or method @ 2139:1", i did all in this
Visual Studio jscript intellisense error with jQuery 1.2.6?
But no hope, should i edit something in my Visual studio options, or Visual studio has a problem?
...
I have a query page with a huge form that is filled out by the user. A button is clicked, and then the user waits for the process on the next page to finish running, and then is redirected to the new page. This is typical behavior if a long running process is running on the next page.
I want to run some sort of UpdateProgress in some ma...
I want to have client-side validation for quick response to the user without a roundtrip to the server.
I also want the same validation for securing the code behind action on the business and data access layer.
How do you reuse that kind of code pragmatically in ASP.NET?
(note: ASP.NET, C# 3.0, .NET 3.5, Visual Studio 2008)
...
I am writing a webpart for MOSS 2007. I need to validate a text field in that webpart, or which I am using th required field validator.
I am creating the required field validator as follows:
vldProjectError = new RequiredFieldValidator();
vldProjectError.ForeColor = Color.Red;
vldProjectError.ErrorMessage = Resources.LABEL_PROJECT_ERR...
Currently, I have a dynamically created gridview on my page. When a user enters something in a textbox and presses a button, the whole page refreshes to populate the gridview and make it visible. I do not want that anymore. How would I go about using the UpdatePanel to make the gridview visible and populate it?
<div class="span-93 ...
Hi, I have a windows application connecting to Database to read some data. Since the database is setup for resilience, my application needs to connect to one of the two databases. Can someone specify the what the syntax would be to specify the failover partner in a connection string using sql server authentication.
Any help is greatly a...
Hi to all,
i think i have a serialization or a sizing problem when trying to return a complex object (an object with nested objects with nested objects..).
The error code i get a CommunicationException. Any idea?
EDIT : This is the stacktrace
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in msc...
How can I get something like this to work in asp.net
<asp:Panel Visible="<%(SType==switch_type.Trunk).ToString()%>" runat="server">Tickle</asp:Panel>
Where switch_type is an enum of values and SType is a get/set in the codebehind.
I have this working, but I just feel it is ugly
<% if (SType == switch_type.Trunk)
{ %>
.....
Hi I am using ASP.Net 3.5 SP1 and attempting to implement a sample copy of http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx into a sample web application however I seem to be having some issues.
I am running windows vista, IIS 7.0, integrated-mode.
Below is the YSOD:
Cannot create an abstract class.
Descr...
Anybody had experience using either of the following;
MapQuest platform: http://platform.mapquest.com
OpenLayers: http://openlayers.org
Which of the above would you recommend, any feedback from use of the service?
Or do you think it is worth paying for a commercial license from either Virtual Earth or Google Maps, get more available...
Is it possible to instruct the aspnet_compiler to set debug=false in the web.config?
My intention is to automate this as part of the nant build process. I am open to suggestions other than xml parsing
...
I have the following class structure
public class AreaFields
{
public List<Fields> Fields { set; get; }
}
public class Fields
{
public string Name { set; get; }
public string Value {set; get; }
}
When I export to Json using Jayrock.Json.Conversion.JsonConvert.ExportToString(List<AreaField> obj), everything works fine. The...
How do you make individual tables and/or columns read-only so the edit button won't show in ASP.NET's Dynamic Data framework?
I'm using it against an entity data context.
Is it possible?
...
what is the difference between DLL and Assembly
Exact duplicate: Difference Between Assembly and DLL
...
In what seems to be random occurrences, javascript files are not loading.
I believe this diagnosis is correct because a) I have code to check, b) I've stepped through the code, and c) I get “'myfunction' is undefined” error when functions in those files are used.
Sometimes this doesn’t happen for an hour, sometimes it happens every tim...