In a repeater control I've Eval binding as:
<%#Eval("PubDate", "{0:dd-MMM-yyyy}")%>
But date time format needs to be configurable from the web.config.
I want to access datetime format from web.config in markup like:
<%#Eval("PubDate", "{0:<%$ AppSettings: DateTimeFormat %>}")%>
But is is not working...
Any suggesions?
I have used Kendo UI Multiselect control and it is working fine.
But I have one issue now that if I tap on a textbox for selecting different values then the default mobile textbox popup window come up which I want to prevent.
I tried Readonly="true" but that will simply disable the function and not able to select any values from that.
So I want to prevent this input window when I click on a textbox.
I altered a bunch of project files in our solution, to add a reference path to all of them. I didn't realize that Reference Paths are stored in the .user file for the project. Is there a way to store those in the .csproj file, so they can be checked into source control?
I'm using selenium IDE to test my webpages but unfortunately I cannot use it to test those pages that return an xml response. Some people use Selenium Remote Control, others use modules like WWW::Mechanize and Test::XML or Test::XPath.
What is the best way to test the XML responses?
I'm wondering if theres already a combo let say jQuery - Some C# DLL to proive a secure both way communication between ASPX forms with jQuery and a control layer based on ashx files with C# classes...
Wikipedia Comparison of revision control software User interfaces table shows Bazaar as not having Netbeans support. Is there development underway to provide this feature for Bazaar?
I find it difficult to control detailed behavior of wxwidgets auinotebooks.
There seems no "SetTabToolTip" method for any tab (not the page).
Setting the tooltip for the whole notebook doesn't work for tabs.
After several days of googling, no valuable result found... Any hint?
I have FrameworkElement, for example Grid, that has children(Cells, implemented in another control). When main Window changes size, i handle sizeChanged in Grid at first, and after that in some of its children. How can i get notify that all children sizeChanged events finished processing? Of course, i can raise other event in child sizeChanged and increase some counter, but for some reasons it is not the best decision.
Can anyone recommend something? Thanks!
Based on the suggestion give here, and the information given here on how to make a custom bindingHandler for a forEach, I decided to attempt to write my own custom binding for a forEach and Masonry.
Because the elements are added on the fly the redrawing and moving around of elements to fill the space doesn't occur. So, this functionality needed to be moved after the elements have been rendered or called after each item has been added.
Here is my bindingHandler
ko.bindingHandlers.masonry = {
init: function (element, valueAccessor, allBindingsAccessor) {
var $element = $(element),
originalContent = $element.html();
$element.data("original-content", originalContent);
//var msnry = new Masonry($element);
return { controlsDescendantBindings: true }
},
update: function (element, valueAccessor, allBindingsAccessor) {
var value = ko.utils.unwrapObservable(valueAccessor()),
//get the list of items
items = value.items(),
//get a jQuery reference to the element
$element = $(element),
//get the current content of the element
elementContent = $element.data("original-content");
$element.html("");
var container = $element[0];
var msnry = new Masonry(container);
for (var index = 0; index < items.length; index++) {
(function () {
//get the list of items
var item = ko.utils.unwrapObservable(items[index]),
$childElement = $(elementContent);
ko.applyBindings(item, $childElement[0]);
//add the child to the parent
$element.append($childElement);
msnry.appended($childElement[0]);
})();
msnry.layout();
msnry.bindResize();
}
}
};
and the HTML implementing the handler.
<div id="criteriaContainer" data-bind="masonry: { items: SearchItems.Items }">
<div class="searchCriterion control-group">
<label class="control-label" data-bind="text: Description"></label>
<div class="controls">
<input type="hidden" data-bind="value: Value, select2: { minimumInputLength: 3, queryUri: SearchUri(), placeholder: Placeholder(), allowClear: true }" style="width: 450px">
</div>
<p data-bind="text: Value"></p>
</div>
</div>
When this shows up on the page It stacks all if the elements rendered via the append method right on top of each other.
You can see in my bindingHandler I am calling bindResize as well as layout(), neither of which seem to be having any effect.
Here's a screenshot of what it looks like in the UI.
i have to render a graph in my web page.i have desigened a class( in C#) file which contain a event for rendering a graph(pie chart).In that event i pass some value i.e
legends which is a string[] and value which is double[] to draw the graph.
But i want that instead of inserting the value directly into the event, pass that value with some function like
public void insertvalue(string[] legends,double[] values)
{
}
how could i do that plese help me????????
And i am using Zedgraphweb control to render the graph.
hi ,
When I'm running the report I'm getting that message above.
The Report Works fine when I press the "Run Report" Button but I want also to avoid
that annoying message that appears when the page loads.
I've tried to set the report viewer control to Enable = false;
and only after hitting the button to Enable = true;
but it didn't work.
Hi,
I have a large data set and i have to apply paging on that data set and after that the result set should be another data set. What is the reliable method to achieve that.
I have tried with 'PagedDataSource' class but i don't know how it is possible to convert to dataset or data table.
In my case i need a general solution. I have to bind to a control like gridview as well as i have to used it with normal html table.
Hi,
I have an address control which display the contact info of the person.
so it displays something like
1234, street
City, CA 12345
Now i want to give user flexibility to create format out of it.
For ex someone might want to display address as,
street, City, Country
OR
Just display their emails:
[email protected][email protected]
Any good ideas on how to it or similar examples?
thanks
Hi,
Is there any good control or plug-in for uploading multiple photos with preview? As far as I understand it is impossible to preview photo on local computer using just JavaScript. So it has to use Flash or Java.
Thanks, also, I use ASP.NET.
Is it real that the TerminateProcess function in Windows could hang because the threads inside the process were stuck in a deadlock?
Example: Process A is running under Process B's control, now Process A gets into a deadlock and Process B detects this and decides to 'Kill' process A using TerminateProcess.
Would it be successful in killing the hung Process A?
Hi
I'm trying to refresh update panel via Javascript:
__doPostBack("<%=upMyPanel.ClientID %>", "");
But somehow its controls are all empty. On other hand they are all filled when I click any trigger control.
How can I fix this?
thanx.
1 - Curious as to how to make a popup asking to confirm if I want to load the program before it loads. Example:
^g::Run C:\GW2\gw2.exe
2 - How to set a title(instead of the script name), align text within msgbox and control the perimeters of msgbox with this format:
F1::msgbox,
(LTrim
Insert Text Here
)
3 - How to either temporarily pause and unpause a specific AHK script only allowing that hotkey to work within the script OR to disable scripted hotkeys while in a full screen application or game OR a "on/off pause/resume" command to disable multiple other commands such as ^g, ^h and the like.
For example, I have a domain name example.com hosted at some host free, and now I want to know where is the IP of the host. so I can't configure the registrar control panel to point to that IP.
So is there any way to know that IP, without configure the name server to point to it.
and I know the Name Server of the hosting. for example ns1.hosting.com
can I ask the specify ns1.hosting.com to get the IP of example.com
Thanks
hi, i really need to place an image somewhere in the page (100 pixels from the left side for example) but i want to control where the center of the image will be,
when i use left:100px; , the image is positioned 100px from its left edge and not from its center...
is there a way i can choose where the center of the image will be and not the left/right edge?
I am new with HP. My problem is my remote control is not working.
Is there is any driver is required ?
if yes which one?
i am using Hp Pavilion DV4 1211tu notebook
Thank u
Hi All ,
The applet methods work fine when JRE is enabled
document.appletName.methodName() ; // Using Java Script .
But when JRE is disabled using the Java Control Panel . on call of " document.appletName.methodName() " method , the browser starts to hang .
How can we make the browser not to hang !!
I am using Object Tag .
Any clues for solving this would be greatly appreciated .
I have some security related service running on my machine (start type = automatic)
In the service control manager, the stop/restart commands are grayed out.
I was wondering how can I develop such service for which the stop operation is disallowed.
Note that I am logged in as an administrator