I want to use jQuery to make a call to a c# web service called c.ashx which checks whether that username is valid and returns an error message as a string.
What should I put for data: and content type: if the return valueof the c# webservice is a string value?
jQuery.ajax({
type: "GET",
url: "/services/CheckUserName.ashx",
data: "",
contenttype: "",
success: function (msg) {
alert("success");
},
error: function (msg, text) {
alert(text);
}
});
Hi
I have the Drop down with values as "One year ", "Two year",...etc.. Ok? also i have two ajax textbox with calender extender . I want to popup alert message if dropdown selected value is "One year" and duration between the both textbox value Means dates not matches. getting what i mean ? please help me.
Hello,
Anyone have idea about how to bind Boolean in sqlite with objective - c.
i know how to bind int and string but i don't know about boolean value.
sqlite3_bind_int(addStmt, 1, id);
sqlite3_bind_text(addStmt,3 ,[message UTF8String], -1, SQLITE_TRANSIENT);
but how can i bind boolean value.
Please help me.
Thanks you
Hi,
I am using HttpContext.Current.User.Identity.Name to get a user id
from 2 web application i'am developping.
the problem is when i'am loggin in teh first application i get always HttpContext.Current.User.Identity.Name value (i put test in Application_AuthenticateRequest event) but when i log in teh 2nd application adn i ty to naviagte trough the 1st application teh HttpContext.Current.User.Identity.Name loses value.
Environnement of test : Windows XP / VS.NET 2005 /
Authentication forms
BTW : both application are deployed in teh same machine
Thank you for your help
hi friends
I am making a game in cocos2d , In that while updating score the old score values get on the label and the new value get overwritten. I m using following code to display the score,
LblScore = [CCLabel labelWithString:[NSString stringWithFormat:@"%d",score] dimensions:CGSizeMake(100, 300) alignment:UITextAlignmentCenter fontName:@"Arial" fontSize:32.0];
Because of this the score value are not shown and all things get massed up, If any one having idea how to update new score?
I have 2 classes with a LINQ association between them i.e.:
Table1: Table2:
ID ID
Name Description
ForiegnID
The association here is between Table1.ID - Table2.ForiegnID
I need to be able to change the valueof Table2.ForiegnID, however I can't and think it is because of the association (as when I remove it, it works).
Therefore, does anyone know how I can change the valueof the associated field Table2.ForiegnID?
Thanks.
I have a report with two parameters. The second parameter is only relevant if the first parameter has a particular value. I would therefore like to disable that second parameter unless the first parameter has the proper value.
TIA.
How can I get and change the Style Attribute property value
Example
<div id="styleChanger" style="color: rgb(163, 41, 41);">
// some content
</div>
How can I change the Style property color value
how to check the tag exists and the value is 'On' do something in xsl
please correct me.,
<xsl:if test="$status and $status='On'">
//do something
</xsl:if>
can we skip checking whether the tag exists and direclty check for the value.
<xsl:if test="$status='On'">
//do something
</xsl:if>
is it a correct practice.,
I am trying to get all values in the select. using item.Count shows the correct number of values, but only one .Value is returned from the loop. Why?
Dim fooXML As XDocument = XDocument.Load(Server.MapPath("xml/foo.xml"))
Dim query = _
From c In fooXML...<foobaryear> _
Select c...<event>
For Each item In query
Response.Write(item.Value)
Next
I am trying to read the valueof my slider from a DIV element's title (which may be the issue). That is pushed into the following:
$(document).ready(function() {
$(".myslider5").slider({
value: parseInt($(this).attr("title")),
slide: function(event, ui) {
// more actions
}
});
I think I get NaN error. Any clues?
This might not have a major usecase in projects ,but i was just trying a POC kind of project where in i get the key code,and using its value i want to print the key name on screen
so i want to relive myself off writing switch cases ,so thinking of going by reflection.
Is there a way to get the constant integer of interface's name using its value?
Hai, am using c# and wpf
am having my value as a string,
i need to call the string value in my app.config file
for example in app.config file am having my connection string. the username may vary diff time. am having the user name as a globasl string. i need to call that string in my app.config connection string when application startup????
I noticed that programs like Report Builder allow user to set property value or an expression determining property value. I want to the add same functionality to my application. So is there any simple way to do so or do i have to redefine all type converters so that they allow to set expression in addition to their original functionality.
http://img204.imageshack.us/img204/7934/48707358.jpg
Hi!
I have a table (sql server). One of its columns ('Name') Contains Cyrillic values.
From parameters i recieve value, that contains in this field but the are transliterated.
i mean something like:
var q = from r in m_DataContext.Table where CTransliteration.Transliterate(r.Name).Contains(trans_text) select r;
How can i transliterate value on-fly?
Hi,
is there any possibility to send from formtastic form valueof :string field like
- semantic_form_for :project do |form|
- form.inputs do
= form.input :task_ids, :as => :string
as Array? Currently valueof this field is sending as String and i'd like to no parse this string in controller.
Also, could you give me idea - if task with submitted id is not found - what is best way to catch this situation - validation in controller or what?
How can i reset a display:none and add some value here is the code
onclick="$('reason{$test->id}').css('display:block');
$('#reasonid{$test->id}').val(this.value);"
I have some simple code in an aspx page
<object width="550" height="400">
<param name="movie" value='XXXX' />
<embed src='XXXX' width="350" height="370"></embed>
</object>
I want to be able to dynamically set the valueof XXXX.
What is the best way to do this ?
Hi,
Need help regarding re.
file = 'file No.WR79050107006 from files'
So what I am trying to do is validate if file string contains WR + 11 digit.
result = re.match('^(\S| )*(?P<sr>(\d){11})(\S| )*', file)
Its validate only 11 digit but not WR before it.
How can I do that?
Using re after matching how can I get the match value ( WR79050107006)
I can do string find
index = file.find('file No.')
and then get the valueof next 13 char.
thanks
hello, i want to output some text in an label
<input type="text" size="20" maxlength="20" name="pizza1" value="Margherita">
is there a parameter that the text (value=Margherita) can't be changed, so the text is just displayed.
is input type= "text" the best way to output text? (later on the text is dynamic created)
thanks
Hi friends,
I've spent all day to find but can't find :(
How can I display CCK Field value with php in views_customfield? I tried the ones below, but no result
$node->field_homepage_linking["0"]["view"]
$node->field_homepage_linking["0"]["value"]
value_get('field_homepage_linking')
Appreciate helps!!
I want to use jQuery to make a call to a c# web service called c.ashx which checks whether that username is valid and returns an error message as a string.
What should I put for data: and content type: if the return valueof the c# webservice is a string value?
jQuery.ajax({
type: "GET",
url: "/services/CheckUserName.ashx",
data: "",
contenttype: "",
success: function (msg) {
alert("success");
},
error: function (msg, text) {
alert(text);
}
});
I have this in my controller:
ViewBag.PriceListId = new SelectList(m_db.PriceLists, "Id", "Name", us.PriceListId);
It contains two values now, but I want to enable the user to choose only the second value, and just if he does something else - allow him choose one of the both values.
How do I omit the first value, and add and set him to default after that?
Shoud I do it in my controller or use jquery?
Thank in advance.
Where does the Windows XP control panel get the value for the "Comments" field from? I'm writing an EXE control panel application, and it doesn't appear from the documentation that you can provide a value for that field.