I am using the JQuery plugin jVal. This plugin validates user input. If the user makes an error the input box is turned red and a fly out message says what is wrong. This works great for forms where there is one Label and one input per visual row. This falls apart when you have multiple labels and inputs per row. IE the fly ou...
I made this small location class so that I can better handle address information which I am going to be sending off in requests to the Google Maps API. One thing I have left to do is some validation to make sure that the address has enough information to return a result back.
For the application, the level of accuracy should be as loos...
I am trying to add
<location inheritInChildApplications="false">
to my parent web application's web.config but it doesn't seem to be working.
My parent's web.config has:
<configuration>
<configSections>
</configSections>
// 10 or so custom config sections like log4net, hibernate,
<connectionStrings>
</connectio...
I have an ASP.net application.
It resides within another asp.net application.
I put my dll in the other apps bin folder and have a subdirectory with my aspx files.
I can't edit the main app's web.config.
So where can I store configuration settings?
For example, this is an app that will get deployed to various clients. I want to store th...
Hi all,
I'm currently stuck. I have a webform with a button that registers or saves a record.
What i'd like to is have it display a javascript alert and then redirect to a page.
Here is the code i am using
protected void Save(..)
{
// Do save stuff
DisplayAlert("The changes were saved Successfully");
Response.Redirect("D...
Meh! Can't understand what happens here.
The filter is correctly applied when used on SqlDataSource1, to correctly populate the corresponding gridview.
That being said, the filtering isn't applied on the manual select that I use to get a DataView, for the database insertion part.
What am I doing wrong? Is there something going on that...
I have a user control that is cached and as part of this control, javascript for loading a swfobject is written to the page. I've tried using ClientScript.RegisterStartupScript to write the javascript to the page, however, when rendered from the cache, the javascript is no longer included. This means the swfobject is not loaded.
Curre...
I am in the early stages of planning a conversion of a large classic ASP database application to ASP.Net and I'm having trouble picking out which data access method to use. I have played around with Linq To SQL, Dynamic Data, strongly typed datasets, Enterprise Library (Data Access Application Blocks), and a tiny bit with Entity Framewo...
On an ASP.NET GridView, I have a field that prints a string from the database. This data can range from 10 to 100 characters. When it is longer than normal, the field word-wraps the data, making the row take up more vertical space than the others. I want to truncate any data that does not fit on the row, and then have a "..." next to ...
FxCop is complaining about a event handler declaration I have. I don't see what is wrong with the code despite reading the warning several times.
Code in my user control
//This next line Fx Cops doesn't like.
public event ImageClickEventHandler NewEntity; //A thingy defined in the BCL
private void ImgBtnAdd_Click(object sender, Image...
I have a dataset that points to a View in my SQL database, and a gridview that uses this dataset to populate itself.
I of course want the rows editable, so I added Edit and Delete functionality to the gridview - standard method (not custom buttons)
working with the Update Query now... For some reason it didn't auto-generate the update s...
I'd like to enable the resource files to be editable after deployment. I read this post which suggests that this is possible, but I can't seem to figure out what settings I need to change to enable this.
I have added the App_GlobalResources folder to my ASP.NET 3.5 "Web Application" and added a resource file to this folder. I assume tha...
I prefer the use of external css and javascript files. There are however many cases where the content of a javascript or css file needs to be dynamic. I'll usually just transfer the javascript or css to inline or inpage code in my aspx page and handle the dynamic stuff there.
Does anyone have a better approach? Would there be a way ...
I am not sure why I cannot get simple output cache to work and not sure of how to debug a situation like this.
Simply from looking at examples and previous projects I have worked on, I used the following code:
<%@ OutputCache Duration="100" VaryByParam="id" %>
but since that didn't work I tried VaryByParam="*" and VaryByParam="none"
...
I know how to have an editable GridView along with a SqlDataSource in which each edit (update/insert/delete) is immediately persisted to the database (using the SqlDataSource's UpdateCommand, Insertcommand, etc).
What I need now is to have an editable GridView that maintains all edits in viewstate until the user presses a "Save" button...
I am working on maintaining an ASP.NET website, and I've noticed the business layer and other supporting libraries make heavy use of HttpContext.Current.Session. This makes it hard to keep track of session variables, to determine what they're used for and why they even exist.
Is it considered bad practice to use the session in the busi...
Can't seem to figure this out, see code below. Trying to make a GET request to Basecamp and store the XML it returns in memory so I can parse it. Not sure how to exactly 'fire' the request off or get back the XML from it, please advise.
using System;
using System.Web;
using System.Data;
using System.Xml;
using System.Net;
using System.I...
I have an XML document in a database, which is the XML-serialized representation of an instance of a certain class Foo:
<?xml version="1.0" encoding="utf-16"?>
<Foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
<StringProp>hello</StringProp>
<IntProp>5</IntProp>
</Foo>
Supp...
Hi all,
I currently have 4 textboxes which will be used to store an ip address.
What i need help with is a function that will allow a user to input a "." and have the textbox change focus from the current textbox to the next textbox.
Thanks in advance
...
Hello Everyone,
I am looking for an open source ASP.NET 2.0 control along with code for my website. I found one at www.i386.com/Products/Newsletter.aspx but unfortunately it doesn't open in VS2005 or may be isn't compatible with ASP.NET 2.0 though it is claimed to be compatible with ASP.NET 2.0 on website.
I want my customers to be abl...