multiple

Download HELP with WebClient in C#

Hello I am using this code to download multiple file. My problem is that it downloads them all at one time and what I want to do is have the progress bar show each file downloaded to 100% then go to the next file. I mean I want the first file to download and go to 100% in progress bar then the second one and start the progress bar again ...

I need to have an HTML <select multiple> with a disabled element

I need a way to have a multi-select box that has a disabled element. I want the box to look like: All -----or----- option 1 option 2 with the "----or----" not being able to be selected. So far my code is pretty simple: <select multiple size="4" > <option value="0">All</option> <option value="1">----or----</option> <option ...

Accessing external static resources placed in different assembly and XAP

My prism based silveright application is divided into multiple xaps to reduce initial download size and support multi tenant application. However, I cannot access the resource dictionaries defined in external assembly (i.e. the resource .xaml file is part of an assembly that complies/ is copied into a different xap) Any suggestions ? b...

Can we add multiple files using a single ASP.NET FileUpload control?

We need to upload multiple files using ASP.Net in one go. One option is to use the ASP.Net FileUpload control but it seems that it can't upload multiple files in one go. Any other option or ASP.Net FileUpload control can do multiple uploads in one go with some tuning? ...

Rename multiple sequentially numbered files and change numbering format using BASH?

Hey all,     I have a bunch of sequentially named files in this format: imageXXX.jpg. So it would be like image001.jpg and onward. I just want to keep the number part of this, and get rid of the prepended 0's. So instead, that file would be named 1.jpg. How could I achieve this using BASH? Thanks!   -Trey ...

Multiple database support

Hi, Did you get any way to have different database session for different user session?? If yes please tell me how to do that. Thanks Nitin ...

Entity Framework select from link table with list

Using the following database table structure: Order Table: OrderId OrderName OrderItem Table: OrderId ItemId Item Table: ItemId ItemName I have an 'Order' entity that has an 'Items' collection. What I need to do is return all orders that contain certain items. Example: All orders with items with id: 1, 4 and 5 (I don't care if it ha...

Multiple keys Hash Table (unordered_map)

I need to use multiple keys(int type) to store and retrieve a single value from a hash table. I would use multiple key to index a single item. I need fast insertion and look up for the hash table. By the way, I am not allowed to use the Boost library in the implementation. How could I do that? Thanks. ...

Storing Exceptions in flat file

Hi, In any application, we can do error logging using flat file system. How do we handle a scenario when there are multiple users having exceptions which are logged in the same flat file? Many Thanks. ...

Pass multiple data items from controller to view

Hello there, I am using VS 2010, MVC, VS 2005 I create .dbml file as my model and map tables inside .dbml file i join tables using LINQ to SQL. I want to display record of two tables i.e. tbl_class, tbl_subject COde in my controller looks like this public ActionResult SubjectByTeacher() { var DataContext = new SM...

How to update multiple tables with one SQL statement in DB2

psudo-code as follows: update TABLEA a, TABLEB b set a.addr = 'aaa', b.name = 'bbb' from TABLEA a, TABLEB b where a.id = b.id and a.id = 1 ...

XML Schema: how to have multiple identical elements?

Hi everyone, I'm having quite a hard time on constructing my 1st XML Schema. I need it to verify the correctness of an XML document that forms a questionnaire. So here's the section in don't get: I changed the source. The 1st answer refers to this code: <root> <values> <value>Lorem</value> <value>ipsum</value> ...

How to upload mutiple files by FTP task in SSIS

Hi, I like to upload multiple files, with different names, in a single FTP task to server in SSIS package. I am only able to upload one file. the file names are also different e.g xyz, zbc, ced is there any way to upload multiple file in a FTP task in SSIS. Thanks ...

Multiple Achievements Earned at Once with Openfeint

I have a scenario where it's possible to earn > 1 achievement at the same time. Has anyone come across a good solution for displaying them using OpenFeint? Right now OpenFeint shows 2 overlapping each other -- not that helpful for the user. I'm wondering if OpenFeint has a built-in system for handling this, rather than having to write...

mysql aggregate multiple columns by hour.

Hi all, Had a quick look through and couldn't find my question again. So I'm hoping someone here can help. I have a large table with a similar structure to the below. DateTime | InboundUserID | OutboundUserID | CustomerUserID | Cost | Mins | Account Number I'm trying to group the above data into hourly chunks and store the result in a...

Is it possible to dynamic_cast from one base class to another?

For instance I have code like that class Base1 { virtual void wonderFULL() = 0; }; class Base2 { // all this weird members }; class Derived : public Base1, public Base2 { // not so weird members }; int main() { Derived Wonder; magicFunction(&Wonder); return 0; } void magicFunction(Base2 *ptr) { if (Base1 *b1 = dynamic_...

MySQL: Select multiple rows containing values from one column

Dear all, I'd like to find the car_id's of the cars that have 'FORD' AND 'SILVER' AND the user input value of '200' in the value column: table_cars +----+--------+----------+-----------+ | id | car_id | name | value | +----+--------+----------+-----------+ | 1 | 1 | MAKE | FORD | | 2 | 1 ...

Resource not found when calling ActionResult from Controller from multiple submit buttons

link text I am following the answer in this link, I have done this... <% Html.BeginForm("MyAction", "MyController", FormMethod.Post); %> <input type="submit" name="submitButton" value="Send" /> <input type="submit" name="submitButton" value="Cancel" /> <% Html.EndForm(); %> <% Html.BeginForm("Send", "MyController", FormMethod.Post...

How to configure a single WCF Service to have multiple HTTP and HTTPS endpoints?

What I am trying to do is get a SINGLE WCF Service to work in the development environment which is the HTTP scheme, and, also, have the SAME service work in the production environment which is the HTTPS scheme. If I remove the two Https endpoints (those suffixed 'Https'), it works in the development enviornment; likewise, if I remove onl...

Multiple NSURLCoonections in same View using iphone sdk

Hi, Can any one of you post the code snippet, example tutorial on handling the multiple NSURLConnections from the same viewController using cocoa Touch framework.... Thanks for all your future help..... ...