Hi, does anyone know how to define a SeekBar's minimum value? Is this done in the XML layout or do I need to define it programatically?
Basically I need to change my minimum value from 0 to 0.2
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 am using ASP.NET Callbacks (that implements the ICallbackEventHandler) and in the handler, I try to set a value of the text box:
txtName.text = "Test";
but this value is not set. Is this a limitation with callback? It appears I cannot do much in a callback handler other than sending back a string to the client side (ofcourse I can access the Session etc)
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
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, 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 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 need a way to create an object from a location value. For example if I have the value:
'http://www.legis.state.pa.us/cfdocs/billinfo/bill_history.cfm?syear=2007&sind=0&body=S&type=B&bn=1'
which I get from doc.location.href();
I would like to make the following object:
myObject = {
syear : '2007',
snid : '0',
body : 's',
type : 'B',
bn : '1',
};
Thanks!
D
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.,
this is my view code
<%=collection_check_boxes(nil, :admin_ids, Admin.all, :id, :name )%>
but when i try get the value in the controller i get always an empty value if the user doesnt check any item
and the length is always more than zero
when i write this code
arr = params[:admin_ids] ||= []
puts arr.length
ther arr.length is 1 even if the user doesnt select any of the items
how can i get an array of selected items only with no empty values
Hi All,
How do I conditionally add the style 'color:red' to the .CurrentDifference if the value happens to be a negative value?
Thanks,
rod.
<div class="sRow">
<div class="sLabel p40">
Difference:
</div>
<%= (!String.IsNullOrEmpty(Model.Amount)?Model.Amount.CurrentDifference.ToString("c"):string.Empty) %>
</div>
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 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 value of 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 value of next 13 char.
thanks
In the C++ Standard Library, std::string has a public member function capacity() which returns the size of the internal allocated storage, a value greater than or equal to the number of characters in the string (according to here). What can this value be used for? Does it have something to do with custom allocators?
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?
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.
Hi friends,
Yet I use Soft Keyboard sample from http://developer.android.com/resources/samples/SoftKeyboard/index.html
Here we uses ASCII value from XML ,now at the place of XML I want to generate these value using array.
How can I do this
Thanks in Advance
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
I need to echo all items in my row that have the value of three. If a field has the value of three I then need to echo the 'name' and 'description' on that row.
This is what I have so far
$result = mysql_query($query1) or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
echo $row['status'];
}
I need to write 'if $row[`status´ == 3 echo 'description' 'name' else echo 'no current staus'
I hope I made some sense because I am seriously confused
Hi friends,
i would like to retrive the value from post method..
I know its possible to retrive the get method value - from query string..
So how possible it for post method ?
Thanks,
Praveen jayapal
Hi,
I'm currently integrating facebook into my current app and I've succeeded in retrieving the access_token using the following code:
url="#{url}?#{client_id}&#{client_secret}&#{code}&#{redirect_uri}&type=client_cred"
agent = Mechanize.new
page = agent.get(url)
The page object above has a body which contains text something along the lines of
access_token=XXXXX
I just want to pull out the access_token value. I can get the entire string simply by writing:
page.body
But I was wondering is there a way to get the access_token value without resorting to regular expressions etc?
Thanks.