hey all,
i have the following code
foreach (DataRowView dr in Data)
{
if (dr == System.DBNull.Value)
{
nedID = 1;
}
}
but i get the following error
Operator '==' cannot be applied to operands of type 'System.Data.DataRowView' and 'System.DBNull'
please can some one advice me on how i can check if the value is null or DBNULL
I am using a properties File to store some configuration properties, that are accessed this way:
@Value("#{configuration.path_file}")
private String pathFile;
Is it possible (with Spring 3) to use the same @Value annotation, but loading the properties from a database instead of a file ?
Hello,
I have a combobox bound to a bindingsource. The user must be able to set a null value as selected value. How can I achieve that without making the combobox unbound?
When I trying to send form containing value with xml, I get HttpRequestValidationException:
A potentially dangerous Request.Form value was detected from the client
All approaches I found:
<%@ Page ValidateRequest="false" %> in .aspx-file.
<pages validateRequest="false" /> in
web.config.
[ValidateInput(false)] on
controller's action.
don't help me.
Hope for any advice.
When I put value in textbox then its throught this error. I am making Content Management System.
A potentially dangerous Request.Form value was
detected from the client (elm1="<p>ABC</p>").
when page go to server then it's through error.
Please assist.
Hi,
I have a tabel in an Sql Server 2005 database. I have the following column
IndPL INT DEFAULT 0 NULL
I want to change the column to be of the type NVARCHAR but I receive a constraint violation due to the fact that the column has a default value constraint attached to it.
I need to find out how to remove a default value constraint from a table column or how to change the column type without impeding the constraint.
We get sometimes the following error from our partner's database:
ORA-01438: value larger than specified precision allows for this column
The full response looks like the following:
ORA-01438: value larger than specified precision allows
for this column ORA-06512:
at "UMAIN.PAY_NET_V1_PKG",
line 176 ORA-06512: at line 1
5592988
What can be the cause for this error?
Thank you in advance.
Can I get gnuplot to display the exact y-value or height of a data point (plotted using "with boxes") over its bar? I would like the plot to be easy to read so nobody has to line up the top of a bar with the y-axis and guess what the value is.
Hi all,
In Google Chrome after pressing enter key in WYMEDITOR a new is created. How to change it? I would rather insert tag as it happens after shift-enter combination. (In fact shif-enter creates two ).
Similar question concerns backspace pressed on the beginning of paragraph. How to change this behaviour to erase paragraph (or other) only when it is empty and do nothing otherwise.
I'll be greatful for any hints.
I'm using IIS LogParser 2.2 & I want to get the value of a particular response header. Is there a function I can use in the query to extract the value of one http response header out of the responseHeader field?
Whenever I attempt to set the default value of an optional parameter to something in a resource file, I get a compile-time error of Default parameter value for 'message' must be a compile-time constant. Is there any way that I can change how the resource files work to make this possible?
public void ValidationError(string fieldName, string message = ValidationMessages.ContactNotFound)
In this, ValidationMessages is a resource file.
hai..
Am doing wepsite for show images from local drive using asp.net.am using session object for Transfer image path from first page to second page
its running nice in vs 2003 .but i converted this website to vs 2005.but session value does't pass to next page.i got null value in session object.
am using inproc session mode
kindly help me
thanks
Hello,
I have a Excel spreadsheet and I have 3 columns. column A, column B, Column C.
In column B if there is a value 1 then in Column C it should populate as True and if in column B value is 0 then in C it should be False.
How do I do this in MS Excel
I have one image submit button like this
<input id="enter" name="enter" type="image"
value="Login"
src="images/btn_login.jpg"/>
once i click on this image i got following values
enter.x=39&enter.y=11
but i want to get enter=Login on submit
how to get enter value as login on submit?
Thanks
date value
18/5/2010, 1 pm 40
18/5/2010, 2 pm 20
18/5/2010, 3 pm 60
18/5/2010, 4 pm 30
18/5/2010, 5 pm 60
18/5/2010, 6 pm 25
i need to query for the row having max(value)(i.e. 60). So, here we get two rows. From that, I need the row with the lowest time stamp for that day(i.e 18/5/2010, 3 pm - 60)
Hi All,
in my js I have a var in which i have stored innerHTML.
the var is having value something like
<h2>headline<h2>
<div>....</div>
...........
Now I want to retrieve value of h2 tag..what I am doing is
$(myvar).find("h2").text()
but its not working...what should be the exact syntax.
Thanks.
I have a table:
<table class="datatable" id="hosprates">
<caption> hospitalization rates test</caption> <thead>
<tr>
<th scope="col">Funding Source</th> <th scope="col">Alameda County</th> <th scope="col">California</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Medi-Cal</th>
<td>34.3</td>
<td>32.3</td>
</tr>
<tr>
<th scope="row">Private</th>
<td>32.2</td>
<td>34.2</td>
</tr>
<tr>
<th scope="row">Other</th>
<td>22.7</td>
<td>21.7</td>
</tr>
</tbody>
</table>
i want to retrieve column 1 and column 2 values per row as pairs that end up looking like this [funding,number],[funding,number]
i did this so far, but when i alert it, it only shows [object, object]...
var myfunding = $('#hosprates tbody tr').each(function(){
var funding = new Object();
funding.name = $('#hosprates tbody tr td:nth-child(1)').map(function() {
return $(this).text().match(/\S+/)[0];
}).get();
funding.value= $('#hosprates tbody tr td:nth-child(2)').map(function() {
return $(this).text().match(/\S+/)[0];
}).get();
});
alert (myfunding);
i have the same problem as in the following post
http://stackoverflow.com/questions/1451570/ruby-on-rails-database-migration-not-creating-foreign-keys-in-mysql-tables
so i am wondering, why rails do not support generate foreign key by default???
it is not necessary???
or we suppose to do it manually?
Hi.I am new on iphone development and I have problem with CoreData. I hardly made to sore value in CoreData but How can I look those value like in MySql WorkBench you can see the tables ad also values.In CoreData am I have chance like that?
Hi,
I have a PHP page with two drop down lists. I am using AJAX to populate the second one according to the choice made of the first drop down list.
My problem is that when i am posting both values of the two dropdownlists to another php page in which an INSERT query is being made, the value of the second dropdown list is blank (as if no value was selected from the second drop down list).
Can you please take a look at this code and let me know what I am doing wrong?