Hello,
Does someone knows how can I change the container for my drop down box?
I have 3 "TD" tags and I would like to move the drop down between them, using client side code.
TY
Hey,
Has anyone ever had faced this error? I am trying to checkout files on Unix using SVNkit. The same code was working on Windows box. Am I missing something here?
svn: handshake_failure: remotely generated; fatal
svn: OPTIONS request failed on '/svn/repos/branches/Package1'
Error code desription:: RA layer request failed
Error code:: 175002
Thanks in advance,
Gabriel.
Hi
I have button, which fires an event, that deletes a record from the database. This is the source of the button:
<asp:Button ID="btnDelete" runat="server" Text="Delete" onclick="btnDelete_Click" />
But how can I make a confirm box appear before the deletion?
It's possible to implement INotifyCollectionChanged or other interface like IObservable to enable to bind filtered data from xml file on this file changed ? I see examples with properties or collection, but what with files changes ?
I have that code to filter and bind xml data to list box:
XmlDocument channelsDoc = new XmlDocument();
channelsDoc.Load("RssChannels.xml");
XmlNodeList channelsList = channelsDoc.GetElementsByTagName("channel");
this.RssChannelsListBox.DataContext = channelsList;
How can I break long formulas in LyX into two (or more) lines? I know how to write several lines of equations in one "math box" but I'm looking for a solution to break lines even in the middle of a parenthesis.
I'm using LyX 1.6.4 and currently, when the formula is too big, it doesn't do anything (it just doesn't print the last segment of it, which is "beyond" the page).
Is this possible in LyX?
yea so I'm trying to display a paragraph in a tooltip when I hover a certain picture box. The problem is, the tooltip takes that paragraph, and spans it on one line, all accross my screen. How can I make it so that it takes a smaller, more readable area?
or, maybe you have another technique to achieve the same thing, but without the tooltip function?
I like to mess around with AI and wanted to try my hand at face recognition the first step is to find the faces in the photographs. How is this usually done? Do you use convolution of a sample image/images or statistics based methods? How do you find the bounding box for the face? My goal is to classify the pictures of my kids from all the digital photos.
Thanks in advance.
Is there a way to create a subgraph from a full graph in JGraph? When I update the subgraph, I want changes to propagate to the main graph. Does JGraph provide a relatively easy way for doing that out of the box (I couldn't seem to find one...)?
thanks,
Jeff
Hi All,
In Perl tk I have designed one interface in that I have one frame .
That frame has some Entry And Text box . When I am clicking the button
those Entry and Text value has to clear in the Frame .I know that we can
access each ( Entry , Text ) object then we can clear using delete function.
I need some as like html reset functionality . How can do this things in Perl Tk......
Thanks ...
I installed msysgit on other Windows machines with no problems. On this Vista 64 bit Ultimate box, I installed the 3 most recent versions of msysgit. On all three installs, when I do a "git bash here", I get exactly this on the command window:
sh.exe": fork: Permission denied
sh.exe"-3.1$
NThe git command doesn't work. I get the same permission denied message. Any clues as to how to fix this?
I am trying to tell the setup program to add PostSharp to the "Add Reference" dialog box of Visual Studio for Windows Phone 7 projects.
I figured out that the registry key for Windows Phone Applications is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Silverlight for Phone\v4.0\AssemblyFoldersEx.
What's the corresponding key for Windows Phone Games?
i'm trying to figure out how to layout a simple dialog in WPF using the proper dialog units (DLUs).
i spent about two hours dimensioning this sample dialog box from Windows Vista with the various dlu measurements. Can someone please give the corresponding XAML markup that generates this dialog box?
(Image Link)
Now admittedly i know almost nothing about WPF XAML. Every time i start, i get stymied because i cannot figure out how to place any control. It seems that everything in WPF must be contained on a panel of some kind. There's StackPanels, FlowPanels, DockPanel, Grid, etc. If you don't have one of these then it won't compile.
The only XAML i've been able to come up with (uing XAMLPad) so far:
<DockPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Image Width="23" />
<Label>Are you sure you want to move this file to the Recycle Bin?</Label>
<Image Width="60" />
<Label>117__6.jpg</Label>
<Label>Type: ACDSee JPG Image</Label>
<Label>Rating: Unrated</Label>
<Label>Dimensions: 1072 × 712</Label>
<Button Content="Yes" Width="50" Height="14"/>
<Button Content="Cancel" Width="50" Height="14"/>
</DockPanel>
Which renders as a gaudy monstrosity. None of the controls are placed or sized right. i cannot figure out how to position controls in a window, nor size them properly.
Can someone turn that screenshot into XAML?
Note: You're not allowed to measure the screenshot. All the Dialog Unit (dlu) widths and heights are specified.
Note: 1 horizontal DLU != 1 vertical DLU. Horizontal and vertical DLUs are different sizes.
Links
Microsoft User Experience Guidelines: Recommended sizing and spacing
Microsoft User Experience Guidelines: Layout Metrics
Bump: 2011/05/14 (15 months later)
Hello,
I have a DataGridView that I am binding to a POCO. I have the databinding working fine. However, I have added a combobox column that I want to be different for each row. Specifically, I have a grid of purchased items, some of which have sizes (like Adult XL, Adult L) and other items are not sized (like Car Magnet.)
So essentially what I want to change is the DATA SOURCE for a combobox column in the data grid. Can that be done?
What event can I hook into that would allow me to change properties of certain columns FOR EACH ROW? An acceptable alternative is to change a property when the user clicks or tabs into the row. What event is that?
Seth
EDIT
I need more help with this question. With Triduses help I am SO close but I need a bit more information.
First, per the question, is the CellFormatting event really the best/only event for changing the DataSource for a combo box column. I ask because I am doing something rather resource/data intensive, not merely formatting the cell.
Second, the cellformatting event is being called just by having the mouse hover over the cell. I tried to set the FormattingApplied property inside my if-block and then I check for it in the if- test but that is returning a weird error message. My ideal situation is that I would apply change the data source for the combo box once for each row and then be done with it.
Finally, in order to set the data source of the combobox colunm I have to be able to cast the Cell inside my if block to a type of DataGridViewComboBoxColumn so that I can fill it with rows or set the datasource or something. Here is the code I have right now.
Private Sub ProductsDataGrid_CellFormatting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles ProductsDataGrid.CellFormatting
If e.ColumnIndex = ProductsDataGrid.Columns("SizeDGColumn").Index Then ' AndAlso Not e.FormattingApplied Then
Dim product As LeagueOrderProductInfo = DirectCast(ProductsDataGrid.Rows(e.RowIndex).DataBoundItem, LeagueOrderProductInfo)
Dim sizes As LeagueOrderProductSizeList = product.ProductSizes
sizes.RemoveSizeFromList(_parentOrderDetail.SizeID)
'WHAT DO I DO HERE TO FILL THE COMBOBOX COLUMN WITH THE sizes collection.
End If
End Sub
Please help. I am completely stuck and this task item should have taken an hour and I am 4+ hours in now. BTW, I am also open to resolving this by taking a completely different direction with it (as long as I can be done quickly.)
Seth
Hello everyone,
I am using scp command to copy file from a MacBook Pro OS X 10.5 to another Linux box (Red Hat Linux Enterprise 5).
I am using the following command on Mac, sudo scp ~/.ssh/mykey.rsa [email protected], there is no output from Mac command line. I am not sure whether the scp is success or not. Where is the location the file mykey.rsa on remote computer 10.10.100.101?
thanks in advance,
George
I've read (but not tested) that Isolated Storage uses Sha1Managed, which is not FIPS-compliant?
Is that accurate, and can anything be done to use Isolated Storage on a FIPS-compliant WinXP SP2 box?
I've seen mention of "Isolated Storage" within both the ClickOnce and Silverlight spaces. I'd appreciate an informed answer regarding either (or both!).
how do I create it so that when I click "report user", a box displays and it shows a list of reasons why to report the user and a submit button.
I rarely use javascript...can someone point me in the right direction.
I'm interested in using fcbkcomplete, which has:
onselect – fire event on item select.
onremove – fire event on item remove
What I'd like to happen for those two events is to alert a list of the IDs/values of the items in the input box.
Can you help me understand how to get these values?
Thanks
I have two classes
Company
CompanyKey
CompanyName
Person
FirstName
LastName
CompanyKey
The list items on the combo box is bound to a collection of CompanyObjects.
How to I databind the selected item property of the Combobox to the Person.CompanyKey property?
I have some command-line commands to execute on a Windows machine. The programs I need to run are only available on Windows.
Is there a way to easily to do something like I would do with SSH? Example of what I mean:
ssh [email protected] "remote command to execute"
...or do I have to Remote Desktop just to do this? (I'd like to run the commands programmatically from another computer rather than running them by hand.)
I have been struggling with this for some times.. I searched around but didnt get a solution yet. This is only an issue on production server. In my development environment, everything works just fine.
I am using JQuery/Ajax to update product information based on product's Color attribute. for example, a product has A and B color, the price for color A is different from color B.
When user choose different color, the price information is updated as well.
What I did is to first add a javascript function:
function updateProductVariant() {
var myval = jQuery("#<%=colorDropDownList.ClientID%").val();
jQuery.ajax({
type: "POST",
url: "/Products.aspx/GetVariantInfoById",
data: "{variantId:'" + myval + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
var obj = jQuery.parseJSON(response.d);
jQuery("#<%=lblStockAvailablity.ClientID%>").text(obj.StockMessage);
jQuery(".price .productPrice").text(obj.CurrentPrice);
jQuery(".price .oldProductPrice").text(obj.OldPrice);
}
});
}
Then I can register the dropdown list's 'onclick' event point to function 'updateProductVariant'
GetVariantInfoById is a WebGet method in the codebehind, its also very straightforward:
[WebMethod]
public static string GetVariantInfoById(string variantId)
{
int id = Convert.ToInt32(variantId);
ProductVariant productVariant = IoC.Resolve().GetProductVariantById(id);
string stockMessage = productVariant.FormatStockMessage();
StringBuilder oBuilder = new StringBuilder();
oBuilder.Append("{");
oBuilder.AppendFormat(@"""{0}"":""{1}"",", "StockMessage", stockMessage);
oBuilder.AppendFormat(@"""{0}"":""{1}"",", "OldPrice", PriceHelper.FormatPrice(productVariant.OldPrice));
oBuilder.AppendFormat(@"""{0}"":""{1}""", "CurrentPrice", PriceHelper.FormatPrice(productVariant.Price));
oBuilder.Append("}");
return oBuilder.ToString();
}
All these works fine on my local box, but if i upload to the production server, catching the traffic using fiddler, /Products.aspx/GetVariantInfoById becomes a Get call instead of a POST
On my local box,
HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Thu, 03 Mar 2011 09:00:08 GMT
X-AspNet-Version: 4.0.30319
Cache-Control: private, max-age=0
Content-Type: application/json; charset=utf-8
Content-Length: 117
Connection: Close
But when deployed on the host, it becomes
HTTP/1.1 302 Found
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Content-Length: 186
Via: 1.1 ADV-TMG-01
Date: Thu, 03 Mar 2011 08:59:12 GMT
Location: http://www.pocomaru.com/Products.aspx/GetVariantInfoById/default.aspx
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
then of course, then it returns 500 error titleUnknown web method GetVariantInfoById/default.aspx.Parameter name: methodName
Can someone please take a look? I think its some configuration in the production server which automatially redirects my webservice call to some other URL, but since the product server is out of my control, i am seeking a local fix for this.
Thanks for the help!
Are there any major issues to be aware of running a PHP 5 / Zend MVC production application on Windows? The particular application is Magento, an ecommerce system, and the client is really not interested in having a Linux box in their datacenter. Has anyone had luck getting PHP 5 and Zend MVC working correctly on IIS?
When setting the Required property of a IntraWeb control I get a nice little message box saying "Bezeichnung is a required field" if I leave it blank.
How can I change the Text of those messages?
(My application is in german language)
I know soft shadows are not supported by the UILabel our of the box, on the iPhone. So what would be the best way to implement my own one?
EDIT: Obviously I will subclass the UILabel and draw in the -drawRect:
My question is, how do I get the contents of the label as graphics and draw around them, blur them etc...
I've implemented a basic custom layout engine in Windows Forms that does control sizing and positioning. I was hoping to allow the AutoScroll features to work untouched, but any time I have enough controls on the screen to require a scroll bar, some of the layout events that get fired (i.e, a rich text box that expands the height as it types) not only fire the layout events, but they force the scroll bar back at (0,0).
Do I have any options besides looking at the scroll position and positioning the controls manually based on that?
how do i prevent expanding the jquery blockui dialog box? i thought draggable: false? but that does not work.
// this is essentially the default dialog if not overriden
initDialog: function(e) {
// modify timeout to do jquery dialog
if (typeof jQuery.ui != 'undefined') {
var _session = this;
$("#" + this._clientId).dialog({
autoOpen: false,
bgiframe: true, draggable: false,
modal: true,
buttons: {
Ok: function() {
$(this).dialog('close');
CallServer();
}
}
});
}