custom

WPF menus with shortcuts and custom RoutedCommand

Im new to WPF so i might be missing something. I have a simple function in my MainWindow class called StartService. I wanted to add a menu item "Start Service" with a shortcut Ctrl+S to my application. I had to do the following: In my MainWindow class i had to define: public static RoutedCommand StartServiceRoutedCmd = new RoutedComma...

Filtered Listview not updated

Hi. I facing a problem of Filtered list view not updated. In my application there is a custom list view which has a two text view and one image view as a row elements. Filter works fine but my Custom list view not updated,Result show the first rows of the List. This is my code, abc.java file public class abc extends ListActivity ...

Pass value from one ASP.NET app to another via HTTP Header

We are implementing a single sign on mechanism in an enterprise environment, where the token is shared between applications using HTTP header. Now, in order to do the integration test, I need to write an application to simulate this. Is there any way in ASP.NET where I can redirect to another web-page and pass a custom HTTP header in t...

custom 404 - would this work?

Is this custom 404 page supposed to work? It was created by another developer... Running IIS7 <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% strQString=lcase(Request.ServerVariables("QUERY_STRING")) If (Len(strQString)>4) Then strURL=Right(strQString,Len(strQString)-4) If (instr(lcase(strQString),"www")>1) then strURL = Repl...

Custom HTTP Request headers in HTML

Does anyone know if its possible to send out custom http REQUEST headers in HTML without having to use javascript (no xhr wrapper). Would it be possible to define them as meta tags within the head? Or may they be defined in the form somewhere? <meta http-equip="x-something-custom" name="custom value" /> this works, however, this is a...

Sorting Custom Objects with Parameter in .NET?

Let's say I have a custom object of Foo Is there anyway I can sort through a list of these objects, like list<of foo>.sort() and also be able to sort this list with a passable parameter. which will influence the sort? list<of foo>.sort(pValue) I'm guessing I'll need to define two separate sorts, but I am not sure. EDIT: using bu...

Fully customized login system in Django?

Hey, I am currently writing an application which I plan to sell as SaaS. Without giving away "secrets," I can say that it is basically a "document editing system" in which many users will be submitting documents. The basic heirarchy is this: Institution Individual Document Sub-document So each Individual should be able to BROWSE al...

Custom drawing on top of a UITableView

Hi, I have some problems drawing some custom content over a UITableView. What I did was subclass UITableView and overwrite the -(void)drawRect method something like this: - (void)drawRect:(CGRect)rect { CGContextRef ctx = UIGraphicsGetCurrentContext(); [super drawRect:rect]; CGContextSetRGBFillColor(ctx, 255, 0, 0, 1.0f...

Sizing problems when using custom WPF dialog control

I am defining a custom control in WPF which serves as the base class for multiple dialog windows which all leverage shared services (positioning, Ok and Cancel buttons). The custom control is defined as follows: public class ESDialogControl : Window { static ESDialogControl() { DefaultStyleKeyProperty.OverrideMetadata(ty...

C# Custom Control Properties load before Load and arrays are empties

EDITED FOR BETTER UNDERSTANDING I made a custom control with propertise for some global variables. private string[] LBTitles = new string[1] { "Rien" }; //... [CategoryAttribute("WildData"), DescriptionAttribute("Tableau des noms des titres au dessus de le listbox")] public string[] Titles { get { return LBTitles; } set { LBTi...

Add multiple input elements in a custom edit type field

Is there a way to create a custom field that has multiple input elements? I'm consulting the documentation and creating a single input element is pretty straight forward, but I'm not exactly sure how you'd add more than one. Has anyone crossed this bridge before? If so, how did you do it? Here's some sample code: ... {name: 'Dimensi...

Custom realm/starting Tomcat 6.0 from Netbeans 6.8/first HTTP request

I'm using NetBeans 6.8 and Tomcat 6.0.xx. I've created a custom realm and updated the NetBeans project build.xml to deploy the realm to Tomcat. When I debug the project, NetBeans starts the Tomcat server and makes an initial HTTP GET request for 'manager/list'. Tomcat graciously hands this request off to my custom realm for authentica...

Custom Server to communicate with my software?

I am working on a major project that I need for work. I am working on a project that requires software validation. I would like this to be handled by a custom server I will write in Python, this server will be the "gateway" between the user and product activation. The software program will be purchased from other companies in volume li...

C# Get Events of a Control inside a Custom Control

I have a listbox inside a custom control. I use this custom control into a form. I would like to be able to get the listbox index changed event when I am working into the form. How can I do that? ...

Need validation check which prompt as soon as user leave the control

Hello, We are developing an application where we have a Form to fill by users. Here is the scenario for some fields: Name : Does not contain numbers like 123 but it can be alpha-numeric like mynangal123 but does not contain special characters DOB : Does contain specific formats like mm.dd.yyyy or dd/mm/yyy or yyyy/mm/dd etc. doesn't c...

Developing a custom-validation in asp.net for specific control and criteria

Hello There is another relevant question asked Validation Check in asp.net In the same scenario we need a custom validator control which will alert user for any wrong entry. This will work like this : Developer will pass the control-name, input-value and format-required For instance like for textbox it can be: txtName,txtName.Text, a...

how can i configure my custom result type using convetions plugin in result.

I have created custom result class to serialize json data to xml. I want to configure this result class as a result type for some specific actions via conventions plug ins. But it is giving errors at the time of starting container. My code and error is given below. Please advice ASAP. Thank you for your valuable advice. My custom Resul...

I have a ListView using a custom ArrayList adapter - what's the best way to implement filtering ? Anyone have a example code to study ?

Subject says it all. I have seen examples implementing a custom Filter. The Android developer docs talk about implementing a Filterable interface. Does anyone have any advice and/or sample code on the best way to implement filtering in a ListView ? ...

LinqProvider that gets data from from two places and merges them

Hi all, I have a Linq query that looks something like the following var query3 = from c in Session.CreateLinq<AccountTransaction>() join a in Session.CreateLinq<Account>() on c.Account equals a where c.DebitAmount >= 0 select new { a.Name, c.DebitAmount } ; The Session object interacts with a da...

Custom List form - Autopopulate Manager

Hi, I have a Sharepoint 2007 custom list with a column named 'Manager', to hold the user's Manager (single line of text). When creating a new item I want the NewForm.aspx to autopulate the Manager field with the user's manager. I know we can autopulate list form fields using JQuery to access Sharepoint's 'User Information List' expose...