Ajax Toolkit MaskedEditExtender different lengths on the same control |
I'd fall to jQuery. Evaluate the text in the TextBox for your area code,
then use .attr() to change the Mask attribute of the MaskedEditExtender.
http://api.jquery.com/attr/
|
Can I use the ASP.NET AJAX Control Toolkit in my MVC4 Application? |
The documentation for the toolkit states specifically that it is for web
forms, not mvc.
http://ajaxcontroltoolkit.codeplex.com/
If there is a specific piece of functionality you required, then you might
want to see if there is a plugin available for jquery to replicate it.
http://api.jquery.com
|
Loading latest version of an assembly |
It depends on the target .Net Framework Version you are using.
Try targeting the .Net Framework Version that the assemblies that you want
to load are for and use Specific Version = false.
It will automatically load the required version.
|
use latest version of ie in webbrowser control |
You can try this link
try
{
var IEVAlue = 9000; // can be: 9999 , 9000, 8888, 8000, 7000
var targetApplication = Processes.getCurrentProcessName() + ".exe";
var localMachine = Registry.LocalMachine;
var parentKeyLocation = @"SOFTWAREMicrosoftInternet
ExplorerMAINFeatureControl";
var keyName = "FEATURE_BROWSER_EMULATION";
"opening up Key: {0} at {1}".info(keyName, parentKeyLocation);
var subKey =
localMachine.getOrCreateSubKey(parentKeyLocation,keyName,true);
subKey.SetValue(targetApplication, IEVAlue,RegistryValueKind.DWord);
return "all done, now try it on a new process".info();
}
catch(Exception ex)
{
ex.log();
"NOTE: you need to run this under no UAC".info();
}
|
How to validate a string date with Ajax Control Toolkit (CalendarExtender)? |
DateTime dt1;
DateTime dt2;
if (DateTime.TryParse(TextBox1.Text, out dt1) &&
DateTime.TryParse(TextBox2.Text, out dt2) && dt1 <= dt2)
throw new Exception("I do not like this.");
|
Ajax Control Toolkit Slider Handler Image Positioning |
I'm not sure what the sliding js for the component looks like and if it
changes the top position for the handle. If it does not change, you can add
this to .handleClass
top:-5px;
If you want to make colors change, you must have another div over the
handle with opacity:0, which changes it's transparency as the handle moves
right. If you supply some the handle js, maybe I can add some code.
|
Discard combining in AJAX Control Toolkit Release July 2013 |
There is an "issue" in the codebase of AjaxControlToolkit July 2013 release
in the way controls are resolved from Control Bundles.
I experienced the same issue as you have in my project after upgrading from
Codeplex.
This is my issue and context.
I have many custom controls using and inheriting from AjaxControlToolkit
resources and scripts
Custom controls are in a second assembly
Each one has a ClientScriptResource and dependencies on third custom
controls
so after upgrading, I created the AjaxControlToolkit.config to register
custom controls, and there has started my hours of debugging and suffering.
Without more words about the context, this are steps:
Create a AjaxControlToolkit.config as said in the Question EDIT above
Create a control bundle with name or not, you knows
For cus
|
AJAX Control Toolkit TabContainer Throws Specified Argument Out of Range of Valid Values |
I'm guessing that in the ASPX you have no TabPanels. That is why you are
getting that error, because index 0 is not valid until you populate the
tabs in PageLoad.
Get rid of the ActiveTabIndex=0 in your markup, and then after you have
added your tabs programmatically, call it there:
TabContainer1.ActiveTabIndex=0;
|
How do clear/set value of Asp.Net TextBox that has an Ajax Control Toolkit HTML Editor Extender from the client? |
You can use this script:
function clearHtmlExtender(){
var extender = $find("<%= htmlEditorExtender.ClientID %>");
extender._editableDiv.innerHTML = "";
extender._editableDiv_onblur();
}
The short description: script above resetting content of editable div
(_editableDiv.innerHTML) and then force extender to assign this hrml to
target textbox.
|
The Controls collection cannot be modified because the control contains code blocks(i.e.<% ...%>) ajax toolkit html editor |
I have faced this error before. Solution is, check in your master page, if
you have javascript with <% ... %> block, then remove it from head and
add in body section.
Hope it helps you.
|
How to perform better document version control on Excel files and SQL schema files |
Since you've tagged your question with git I assume you are asking about
git usage for this.
Well, SQL dumps are normal text files so it makes perfect sense to track
them with git. Just create a repository and store them in it. When you get
a new version of a file, simply overwrite it and commit, git will figure
out everything for you, and you'll be able to see modification dates,
checkout specific versions of this file and compare different versions.
The same is true for .xlsx if you decompress them. .xlsx files are zipped
up directories of XML files (See How to properly assemble a valid xlsx file
from its internal sub-components?). Git will view them as binary unless
decompressed. It is possible to unzip the .xlsx and track the changes to
the individual XML files inside of the archive
|
This Android SDK requires Android Developer Toolkit version 22.0.0 or above. Current version is 21.1.0.v201302060044-569685. |
I had the same problem last week, I tried everything, but nothing helped
me.
Finally fixed it only by re-downloading ADT bundle whole again.
Give a try before everything through
https://dl-ssl.google.com/android/eclipse/ not http
|
Loading files via AJAX with CodeIgniter/MVC |
You should go from your View to the Controller:
<script type='text/javascript' language='javascript'>
$('#search_bar').keyup(function(){
$.ajax({
url: 'search_bar.php',
type:'GET',
data: {q: search,
success: function(result){
//Insert code here
} // End of success function of ajax form
}); // End of ajax call
});
</script>
Then in your controller, load a model if necessary:
public function weigeren() {
$user = $this->CI->authex->getUserInfo();
$data['title'] = "Test";
$this->load->model('search_model');
$query = $this->input->get('q');
if (isset($user)) {
echo $
|
How to ensure latest version of iOS Simulator Version? |
Go to XCode -> Preferences -> Downloads and check the box that says "Check
for and install updates automatically"
There you can also see what other components are available for you to
download.
Hope this helps!
|
Large SVG files that are generated dynamically on an AJAX request are not loading properly in IE9 |
With SVG you're looking for an SVGLoad event. It happens to be mapped to an
attribute called load but if you're using addEventListener it's SVGLoad you
need to look for and not load. E.g.
rootElement.addEventListener("SVGLoad", handler, useCapture)
Another gotcha for SVG is that SVGLoad events don't go to the window object
so you can't do window.addEventListener as you can with html.
|
Set selected date for TimePicker(Extended Toolkit - WPF) control |
Your TimePicker returns a nullable DateTime object, so if you already have
a DateTime object containing Date information, and you want to combine it
with your second DateTime object containing Time information, you can do a
DateTime.Parse, outputting them both as strings:
//date is your existing Date object, time is the nullable DateTime object
from your TimePicker
var dateTime = DateTime.Parse(string.Format("{0} {1}",
date.Date.ToShortDateString(), time.Value.ToLongtTimeString()));
|
Ajax Controls Toolkit and Ajaxmin |
Matty's suggestion to check the sample project sent me back to the
directory where I'd unzipped it, then checked the file
AjaxControlToolkit.Binary.NET40.zip, which had the AjaxMin.dll file in it.
I had admin move the file to C:Program FilesMicrosoft Visual Studio
10.0VBBin (I don't know if that directory matters, it works for me), then
in VS added the DLL as a reference to the project. The few errors I've
gotten since are nothing to do with ajaxmin.
|
IBM Worklight 6.0 - Gets a noticeable blip in hybrid application(used Dojo toolkit 1.9) while loading the framework libraries and css? |
Did you put "visibility: hidden" on your body element? You need to put it
(and remove the "display: none" that some worklight versions are adding)
and Dojo Mobile will make sure to remove it when it is ready to display the
screen.
|
How to view changes after "Get Latest Version"? |
Best thing to do is a folder comparison before you get the latest version.
In Source Control Explorer, you can compare the differences between two
server folders, two local folders, or a server folder and a local folder.
Right click on the target folder and select Compare. Read more here.
|
Getting the latest version of Bootstrap |
You have CDN's that have a similar functionality (BootstrapCDN for
example), but I wouldn't recommend to automatically get the latest version.
If the new version breaks something you wouldn't know it until it's too
late.
Besides, what would the benefit be? Anything major is very likely to break
something, and anything minor is, well, minor.
|
Ajax Cotrol Toolkit is not working properly |
Here's what you can do:
Check that AjaxControlToolkit.dll and AjaxControlToolkit.pdb are in your
Bin Folder.
Place the assembly
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit" TagPrefix="cc1" %> above the page.
Make sure the ScriptManager is below the BodyContent of ContentPlaceHolder
<asp:Content ID="BodyContent" runat="server"
ContentPlaceHolderID="MainContent">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
Double-Check the TagPrefix and the TargetControlID of the CalendarExtender
<cc1:CalendarExtender ID="CalendarExtender1" runat="server"
TargetControlID="TextBox1">
|
Ajax toolkit calender extender not working |
Try these tips:
Right click on any Toolbox tab and Select 'Show All' menu item
Find if your previously added "AjaxToolkit" tab is visible in the list now?
(which it should be)
If it is empty, remove the tab and recreate and fill it accordingly
OR
You may "Reset Toolbox" altogether, but take cares if any other custom tabs
you had added in the past would also get reset by this action. (That may
cause projects using controls from those tabs, work improper)
|
How can I add pins to two different entity layers, and then clear the pins on a specific entity layer in Bing Maps AJAX Control, Version 7.0? |
You need to add the pushpins in two different EntityCollection (they're
like Shape layer), see:
http://msdn.microsoft.com/en-us/library/gg427616.aspx
If you added the secondary pushpins in a separate entity collection, then
you can call clear() on the specific entity collection to remove the
secondary pushpins and add the new ones without removing your main
pushpins.
If you need more help, let us know.
|
Convert solution to the latest version |
Visual Studio should do update the projects and solutions for you. In my
experience, it only shows unavailable when the project is located in a
different location than where the solution file is looking for it. Perhaps
you recently changed the name or copied only some of the files?
At the very least you should be able to remove the unavailable projects and
re-add the original projects. They'll be converted as they're added.
|
Jenkins - How to only archive latest version |
Solution 1 : cleaning
You may just the following command
mvn clean package
instead of
mvn package
It will remove all artifacts and previous compiled classes.
So, Jenkins won't upload all jars in you repo.
Solution 2 : deploy
You could also rune the following command, that only require maven
configuration (Jenkins independant)
mvn clean deploy
This will indeed push your maven artifacts into your local repo (like
install) and then into you main / corporate repo.
It require more configuration (pom.xml > repositories, distribution
management, settings.xml > accounts / credentials.
Take a lool here :
http://maven.apache.org/plugins/maven-deploy-plugin/
http://books.sonatype.com/mvnref-book/reference/lifecycle-sect-common-goals.html#lifecycle-sect-deploy-phase
This is
|
Upgrade Extjs 3.3 to latest version |
I think the specific steps involved will depend on the size and scope of
your project. The folks at Sencha have tried to lower the migration
barriers by offering a migration pack to get your planning started.
Ext JS 3 to 4 Migration
Sencha Migration Screencasts
Also, a developer by the name of Steven Schwenke blogged about his
experience migrating an application from 3 to 4:
migrating from extjs 3 to extjs 4
Hope that helps!
|
How do i install the latest version of Ruby on Mac? |
Have you installed ruby-box for your new Ruby? Try running this, and trying
again:
gem install ruby-box
Also note that require "rubygems" is useless and redundant (the interpreter
deals with all this for you) in Ruby 1.9 and onwards.
|
Get the latest version of project from TFS using powershell |
Assuming you are in the PowerShell console or ISE and have changed your
directory to the location you want to sync...
You need to "dot source" the file that contains your function (or add it to
your profile) so the function is defined in your environment. It appears
like TFSExtensions.ps1 is the name you or someone gave it. You type a
period followed by a space followed by the path to the file and filename
(i.e. . ....MyToolsTFSExtensions.ps1).
Once the function is defined, you can run it by typing its name (and any
parameters, if any) which in this case is just Get-LatestVersion.
This function takes the directory that you are working in as the workspace
location. BTW:The forward slashes (/) in the tf.exe command line look like
they are not needed. I was able to run the command withou
|
Query to get latest version if any or just the document otherwise |
By filtering on h.state from the WHERE clause, you are implicitly
converting your outer join to an inner one; you should instead place that
condition in the join criteria:
SELECT d.*, MAX(h.Version)
FROM documents d LEFT JOIN revisions h
ON h.DataID = d.DataID
AND h.state = 'Published'
GROUP BY DataID
See it on sqlfiddle.
|
ClearCase UCM: Get latest version from Dev-stream |
You need to make sure the parent folders are selected as well:
element vob/... .../DEV-STREAM-NAME/LATEST
element vob/path/... .../DEV-STREAM-NAME/LATEST
element vob/path/to/... .../DEV-STREAM-NAME/LATEST
element vob/path/to/folder/... .../DEV-STREAM-NAME/LATEST
element * /main/LATEST
If one of the parent folder has no version in DEV-STREAM-NAME, but a
version in the parent stream (like INT-STREAM-NAME), you would need to
select that as well.
element vob/path/to/... .../INT-STREAM-NAME/LATEST
|
Cassette NullReferenceException on the latest version |
Finally I managed to fix it. Instead of downloading Cassette.Aspnet from
Nuget, I downloaded Cassette, Cassette.Aspnet and Cassette.Views from their
GitHub repo, added to the solution, and it worked.
|
Use Ivy API to obtain latest version of a dependency? |
I believe you can use latest.integration revision value to specify the
absolute latest version needed. For example, specify your Ivy dependency
like so:
<dependency org="mockito" name="mockito-all" rev="latest.integration"
/>
You can also specify latest.milestone or latest.release if you don't want
the "edge" version. Here is a good explanation on the rev value:
http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html
|
deleting all zip files in target directory and only keeping latest two zip files |
Not a optimized one but you can use.
String[] extensions = {"zip","rar"};
Collection<File> fileList =
listFiles(FilePath2,extensions,false);
File[] fileArray = new File[fileList.size()];
int x = 0;
for (Iterator iterator = fileList.iterator(); iterator.hasNext();) {
fileArray[x] = (File) iterator.next();
x++;
}
File temp;
for(int i=1; i< fileArray.length ; i++) {
for(int j=0; j<fileArray.length-1; j++) {
if(fileArray[j].lastModified() >
fileArray[j+1].lastModified()) {
temp = fileArray [j];
fileArray [j] = fileArray [j+1];
fileArray [j+1] = temp;
}
}
}
for(int i=0; i< fileArray.length-2 ; i++) {
deleteQuietly(file
|
Select only the latest version of the data with SQL join |
SELECT *
FROM products
WHERE offer_id = (SELECT MAX(id) FROM offer)
or, if you prefer the join syntax
SELECT p.*
FROM products p
INNER JOIN (SELECT MAX(id) id FROM offer) o ON p.offer_id = o.id
Edit (still not completely sure this is what you want without seeing your
desired results)
SELECT p.*
FROM products p
INNER JOIN offer o on p.offer_id = o.id
INNER JOIN
(SELECT number, max(version)
FROM offer
GROUP BY number
) oMax ON o.number = oMax.number AND o.version = oMax.version
|
Canvas is not working on Android latest version 4+ |
This is probably because ICS+ defaults hardware acceleration to true, and
some of your drawing calls on the canvas aren't supported in hardware mode,
check the following:
http://developer.android.com/guide/topics/graphics/hardware-accel.html
You can turn it off in your application tag in your manifest, per activity
in your manifest, or on the view itself with setLayerType
|
hadoop eclipse plugin latest version |
You can find the src for eclipse plugin(hadoop-1.1.2) here. And this is the
page that can take you to the desired version.
HTH
|
Mysql Group By Last Slno (Latest Version) |
Something like:
SELECT slno,title,date_added
from files,
(select max(slno) as mslno,comp_name from files where cat=:cat group by
comp_name) t1
where cat = :cat
and slno=mslno
and files.comp_name=t1.comp_name
Order By files.comp_name DESC limit 12
|
PIP command to determine if the latest version is installed? |
'pip search' gives you that information. e.g.:
$ pip search SOAPpy
SOAPpy - SOAP Services for Python
INSTALLED: 0.12.0
LATEST: 0.12.5
versus:
$ pip search MarkupSafe
MarkupSafe - Implements a XML/HTML/XHTML Markup safe string
for Python
INSTALLED: 0.19 (latest)
|
Python (latest version) Syntax Error |
print is a function in py3.x:
print newReadData
should be :
print (newReadData)
Demo:
>>> print "foo"
File "<ipython-input-1-45585431d0ef>", line 1
print "foo"
^
SyntaxError: invalid syntax
>>> print ("foo")
foo
statements like this:
elif userInput == "yes" or userInput == "ye" or userInput == "y"
can be reduced to :
elif userInput in "yes"
|
Update Magento to specific version (not latest) |
Two different ways of handling this, 1) Manually...
From my experience, what you end up doing is scrapping Magento Connect
(which often is the source of all evil, when you've had it do partial
upgrades two or three times in a row), downloading the whole package from
the download archive (you have all the versions available from there on the
Release Archives tab), unzipping them to a directory and then either on the
server, copying them into your Magento root directory or from a remote
workstation, ftp/scp uploading them to the server Magento root directory.
If you're serious about running Magento, you will have a development server
that you do this to several times to find out where all the upgrade
breakages are so you can weed out busted templates, detect forgotten core
modifications,
|