OK, I know this has been discussed to death and people got greenlit answers for their questions but none of them work for me.
What I want to do is vertically center thumbnails, which are generated dynamically or loaded via AJAX into a div with a fixed size. In my case 200*200 pixel.
Please go to this site: click here and click on for ...
I am using dynamic Linq to return data for user-input search criteria. My query is working fine except for the user selected dates. My current code is:
StringBuilder whereClause = new StringBuilder();
if (startDate.HasValue || endDate.HasValue)
{
DateTime searchStartDate = startDate.HasValue ? star...
Hi thr..How can i include or exclude existing files/directories from current solution in c sharp through code..
...
Hi,
I am trying to dynamically assign a 2d array to a pointer in a constructor initialize.
FooBar::FooBar()
: _array( new int[10][10] )
{ }
int **_array;
However this does not work. I understand that multidimensional arrays are allocated a bit differently. Is anyone able to elaborate on this with an explanation?
Thanks in advan...
Hey,
So I'm happy updating a JavaScript chart library to represent new data via Ajax. I'm just wondering if anyone knows of a library that will allow me to do this with a nice animation.
Similar to this http://bit.ly/9hJ2rs
Preferably free!
Thanks
Mat
...
I am trying to implement a JSON-RPC solution, using a server connector object wich obtains a list of available functions from a server somehow like
NSDictionary *functions = [server
callJSONFunction: @"exposedFunctions" arguments: nil];
wich is a simplified description, since callJSONFunction actually triggers an asynchronous NS...
I am adding controls dynamically in my webpage.
I add them in onload method.
everything is working fine..
But I m a bit confused about how it works..
I have read in so many articles that all controls get their values from viewstate before load event. Then how my dynamically added controls get their values when i am adding them in OnLoad...
Hi all - tutorials (e.g. ) show how to integrate Flash and MySQL. Also Flash can manipulate and sent this back to server (http://www.kirupa.com/developer/actionscript/create_edit_xml.htm).
To integrate flash and MySQL one can do the following:
(1) MySQL -> php -> Flash (e.g. (http://)library.creativecow.net/articles/brimelow_lee/php_my...
There is some strange behavior with the C# 4.0 dynamic usage:
using System;
class Program {
public void Baz() { Console.WriteLine("Baz1"); }
static void CallBaz(dynamic x) { x.Baz(); }
static void Main(string[] args) {
dynamic a = new Program();
dynamic b = new { Baz = new Action(() => Console.WriteLine("Baz2")) };
...
I have a dynamic text box which is of the size 300 x 300. However, when I load in text from an external file it just ignores this size and keeps on going vertically. The width remains the same which is fine. What I really want to do is use the uiscroller to go through the remaining text. Instead, the text just goes on past the bottom of ...
I'm developing a Python module in C that parses a very efficient protocol which uses dynamic integer sizes. Integers sent using this protocol can range in size from the equivalent of C's 'short' to a 'long long.'
The protocol has a byte that specifies the type of variable being sent (from short to long long), but I'm not sure how to dea...
I'm seeking input on this topic, as explained below. In particular I am looking for a "best known method" or design pattern regarding how to dynamically build HTML.
This is a very common task for me:
Submit something to a server via a POST --> get a list of results back in JSON format --> take this list of 0 to n results and display th...
I have a class "foo" that has a multi dimensional array and need to provide a copy of the array through a getArray member. Is there a nice way of doing this when the array is dynamically created so I can not pass the array back a const as the array is always being deleted, recreated etc. I thought about creating a new dynamic array to pa...
Hi This is reg.. JQuery Datepicker.Any one having example progam that one add datepicker to dynamically created row.give some tips wat r the i need to include js/css files.and give suggestion how can we add datepicker to dynamically created row for textbox.
...
What are the benefits/demerits of using duck typed view models with asp.net mvc?
Recently I've seen an interesting implementation of a twitter search client, using fluent C# dynamic XML wrapper to pass data from the controller to the view, to wrap XML data.
It seems like a better way to pass data - viewModel.Foo instead of using View...
I have an app where generated HTML pages specify a single JavaScript file:
<script language="JavaScript" src="/global.js"></script>
In global.js is the following code, to load a single user-defined user.js file:
var UserJsFile = document.createElement("script");
UserJsFile.type = "text/javascript";
UserJsFile.src = "/user.js";
docume...
hi all, i have a post with a LOT of variables, and I was wondering if there was some way of inserting the information into mysql dynamically, rather than typing it all out manually, as the post variables change depending on what the user selects.
...
Hello,
I am new to writing SQL and would greatly appreciate help on this problem. :)
I am trying to select an entire row into a string, preferably separated by a space or a comma. I would like to accomplish this in a generic way, without having to know specifics about the columns in the tables.
What I would love to do is this:
DECLAR...
I'm implementing a frontpage with "hot" stories based on a certain ranking algorithm. However, I can't figure out how to pass Appengine's datastore my own sort function (like I can in python with sort(key=ranking_function)). I want something like this:
class Story(db.Model):
user = db.ReferenceProperty(User)
text = db.TextProp...
can we dynamically appened where condition on a linq query?
for example:
class Result
{
string v1;
string v2;
string v3;
}
List<Result> result = (from r in results select r);
//i want to do something like the following....
if(conditionA)
{
result = result appened (or v1 = xxx)
}
else if(conditionB)
{
resul...