The topic is the question, is there a way to access embedded resources folder by name dynamically via string? The closest I think I've gotten is the following code which has error "Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<string>' to 'string'", if i try to get the only folder it should return with [0] it gives error "Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<string>'" string prefix = "namespace.folder." var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames().Where(name => name.StartsWith(prefix)); Any help would be much appreciated, Smalls

Member Avatar
Member Avatar
+0 forum 3

I'm new to mobile development. I'm using html5,php,cordova,phonegap for the development of mobile application. I have done everything which i need.But i need to populate the dropdowns dynamically based on the previous dropdown selection. i.e., Based on the state the cities to be populated and based on the cities the locations need to be populated. Please help me out how to solve this problem. Thanks in Advance.

Member Avatar
Member Avatar
+0 forum 1

could anyone tell me how to dynamically select an item in a listview?? i tried `listview.setSelection(1);` and `listview.performItemClick(listview,3,listview.getItemIdAtPosition(3));` both of them don't work..please help me.

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I have a class called Account with variables called Balance and Status. The Member Name is given by the User through cin and represents an the Account Number. How can I diynamically create an object through cin and give their variables a value through cin? I have been looking for hours and just cannot figure it out. Any help is appreciated. Thanks guys. Here's my code. It won't compile as I'm just trying to show what I want to do. class Account { public: char Status; int Balance; }; int main() { int Nmbr; int Bal; char Stat; …

Member Avatar
Member Avatar
+0 forum 12

Hello, I have csv filename with date. Everyday i have same csv file with respective date. I need to read filename (*everyday date changes in filename*) and do operation. For example, I have file "**cells_20140106_165532.csv**". I did like this to read it in general: $filename = "cells_".date('Ymd_hmi').".csv"; $file_contents = file_get_contents($filename); $importcsvsql = ""; `//error: cells_20140114_110109.csv` It is taking current date instead of filename's date. It is generating empty file "*cells_20140114_110109.csv*" Thanks in advanced.

Member Avatar
Member Avatar
+0 forum 8

How to create a form with a a button add_subjects which adds one textbox on each click, at runtime in VB and a corresponding label, 3 buttons - Add, Edit and Delete, for each textbox created. Once each texbox's corresponding Add _button is clicked, it passes textbox's value is passed to the label.

Member Avatar
Member Avatar
+0 forum 1

I have been trying to do this and i dont know why exactly its not working.. Here's the idea. I want to receive the name and age of a person via POST method and then put it in an array dynamically, so that as more names and ages are added, the array is increased. <?php if (isset($_POST['submit'])){ $name= $_POST['name']; $age= $_POST['age']; foreach($array as $name=>$age){ $array[$name]= $age; } print_r($array); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form method="post" action=" <?php $_SERVER['PHP_SELF'];?>"> Name: <input type="text" name="name"/> age:<input …

Member Avatar
Member Avatar
+0 forum 6

am compiling the java program inside another javaprogram..... how to add an additional library to that conpiling java program....

Member Avatar
+0 forum 0

Hello Everyone, So I have a problem that is genuinely stumping me here. The sad part is this is probably something very easy. I'm using the following script for a site I'm working on: http://css-tricks.com/rethinking-dynamic-page-replacing-content/ However, one of the "pages" i'm working on requires a verticle menu that you can switch through the content with a JavaScript selector (it allows you to see various lists, so loading different pages would be somewhat of a hassle for the user). I'm attempting to do this with tabsLite, from the jQuerty UI framework (minus the actual framework): http://plugins.jquery.com/tabsLite/ Here's my issue: * The …

Member Avatar
Member Avatar
+0 forum 7

Hello. I am curious if it is possible to create functions dynamically in such a way, that (1) the names of the functions to be retrieved from an array and (2) these names could be used also inside the functions. I have a code that is solving the first problem, any ideas how to solve problem 2? Thanks. <?php $myarray = ['myvalueone','myvaluetwo','myvaluethree','myvaluefour','myvaluefive']; for($i=0, $n=count($myarray); $i<$n; $i++) { $functionname = $myarray[$i]; $$functionname = function(){ echo 'The name of the function is ... .'; }; } $myvaluetwo(); // The result need to be: The name of the function is myvaluetwo. ?>

Member Avatar
Member Avatar
+0 forum 11

I want to add and delete 3nos of text field and label in a row dynamically using Add and delete button in javascript. Is any one help me in this regard...

Member Avatar
Member Avatar
+0 forum 7

I develop a project that consist of many tables. In admin menu table names shows dynamically in a dropdownlist from a database. Pls help me to do this

Member Avatar
Member Avatar
+0 forum 3

How to sort by column header dynamically in the table ? Table should be sorted by all column. <?php $order = (isset($_POST['sortCostCode']) && strcasecmp($_POST['sortCostCode'], 'desc') == 0) ? 'DESC' : 'ASC'; $query = 'SELECT * FROM `Humeur_log` ORDER BY `Humeur_log`.`logid` DESC LIMIT 0 , 30' . $order; $result = mysql_query($query); ?> <tr> <th><a href='?sortcostcode=" . ($order == 'DESC' ? 'ASC' : 'DESC' ) . "'>logid</a></th> <th><a href='?sortcostcode=" . ($order == 'DESC' ? 'ASC' : 'DESC' ) . "'>Prenom</a></th> <th><a href='?sortcostcode=" . ($order == 'DESC' ? 'ASC' : 'DESC' ) . "'>Nom</a></th> <th><a href='?sortcostcode=" . ($order == 'DESC' ? 'ASC' : …

Member Avatar
Member Avatar
+0 forum 10

Hello Everyone. I am having trouble creating new objects in a loop. I am using: DataType *Ptr = new DataType (); I use this in the beggining of the loop then end the loop with: delete Ptr; Each constructor and destructor gets called each time the loop is executed.... but for some reason the constructor is not seeding correctly. I have the Class constructor to be: 1. DataType:: DataType () 2. { 3. srand(time(0)); 4. } Which is to have a different seed when the constructor is called and give different sets of random numbers. For some reason it seems …

Member Avatar
Member Avatar
+0 forum 11

http://www.srisanthi.9xitsolutions.com/SBPoints/Home.aspx as per above link 1. I want to upload plotting map... 2. then i have to assign plotno to it dynamically... 3. when user take his cursor to the particular plot i have to show the description of it which i saved in db 4. those plot get book they should be look in green colour please can anyone tell me how to implement 2,3 & 4th step.. i am doing this usin asp.net C#

Member Avatar
+0 forum 0

I am working on a project where i need to dynamically count how many buttons need to be added to a certain panel. Each button press has to change a variable in the parent class and then to excute generation of a child panel which also dynamically generates buttons. my problem is that even though I am able to generate the buttons, and add them to the layout, I dont know how to change their individual actionlisteners. The code I have right now is this: private void PopulateBooks() { for (int i = 0; i < 14; i++) { books.add(new …

Member Avatar
Member Avatar
+0 forum 1

Hi I populate a drop down menu like this: <select name="mySelect"> <?php $result= mysql_query('SELECT DISTINCT Year FROM MonthlySales'); ?> <?php while($row= mysql_fetch_assoc($result)) { ?> <option value="<?php echo htmlspecialchars($row['Year']);?>"> <?php echo htmlspecialchars($row['Year']); ?> </option> <?php } ?> </select> Then build a HTML table like this: <?php while( $row = mysql_fetch_row($results) ) { echo "<tr>"; foreach($row as $cell) //Display all data in this row of user data... echo "<td>$cell</td>"; echo "</tr>\n"; } echo "</table>"; mysql_close($conn); ?> My connection details look like so: <?PHP $conn = mysql_connect('localhost', 'root', 'root'); @mysql_select_db('localDB'); $query="SELECT * FROM MonthlySales"; $results = mysql_query ( $query, $conn); echo "<table border='1'>"; …

Member Avatar
Member Avatar
+0 forum 5

Actually i'm creating web template using asp.net and c#. in my user control page i have to create the table dynamically. i just read the data from XML file then retrieve the name and number of columns and rows of each table. while i'm creating the table i assign the name and id to each cell. because i have one row including some textbox for adding the data to database. but after i have created the table i can not access to the textbox cells based on id to get their data and insert it to database. my dynamic table …

Member Avatar
Member Avatar
+0 forum 2

I am trying to create a number of panels that can expand and collapse like an accordion, but more than one can be open at one time. There's an image of an arrow that, when clicked, expands or contracts the panel. Each image of the said arrow has its own unique ID. As of now, I have to create a new onclick event for each image, which in turn causes an event with each respective div. What I want to know is if there‚Äôs a way to write only one (javascript or Jquery) function that can respond to any of …

Member Avatar
Member Avatar
+0 forum 2

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <SCRIPT language="javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var colCount =table.rows[0].cells.length; for(var i=0; i<colCount; i++) { var newcell = row.insertCell(i); newcell.innerHTML = table.rows[0].cells.innerHTML ; //alert(newcell.childNodes); switch(newcell.childNodes[0].type) { case "text": newcell.childNodes[0].value = ""; break; case "checkbox": newcell.childNodes[0].checked = false; break; } } if(table.rows.length>=10){ document.getElementById('addrw1').style.visibility='hidden'; } } function deleteRow(tableID) { try { var table = document.getElementById(tableID); var rowCount = table.rows.length; for(var i=0; i<rowCount; i++) { var row = table.rows; var chkbox = row.cells[0].childNodes[0]; if(null != …

Member Avatar
Member Avatar
+0 forum 1

hi there, i'm creating an app in C# which allows users to select an image by double clicking the "pictureBox1", from there it selects the image, creates a new Graphics object and passes the Bitmap to it. Once the picture has been loaded the user should be able to move the picture around using the mouseDown, mouseMove, mouseUp events. I have got the image to load correctly, but it does not move.. if i alter the code, it moves, but the user is unable to select a new image(by double clicking), and it will just load a box with a …

Member Avatar
Member Avatar
+0 forum 5

I need to instantiate a class during runtime based what a user has selected in a list, but these classes each have their own new specific functions and variables, they use the same named functions, but set different variables, and different numbers of variables. I made an example, since my actual code has classes i made which you'd need to import [CODE]class tester { public void tester(){}; public void main(){ int x=1; if (x==0){ class1 newobj = new class1(); } else if (x==1){ class2 newobj = new class2(); } newobj.testfunc(); } private class class1{ public void testfunc(){ System.out.println("class1"); } } …

Member Avatar
Member Avatar
+0 forum 9

Hi everyone Im new here and not very good with Javascript, so here im asking for a little help for my proyect the problem is Im trying to calculate text fields from results of php query my fields come from the query as amount1, amount2.... what i need is for JS to Sum those fields dynamically, I already did code for when i have all the values and for when the text field name is the same, but never for query results where the names are different this is what i have so far but its not working [CODE]function calculatesumexcon() …

Member Avatar
Member Avatar
+0 forum 9

Hello peeps. I'm trying to update a sql table from mi php Ajax web page, which stores dynamically a table into the page by [icode]table.appendChild(row)[/icode], so that the user can verify the information he is inserting before the actual database update. How do I do this with ajax?

Member Avatar
Member Avatar
+0 forum 2

Since no one answered to my previous thread about a similar issue I rephrase the problem and try my luck again :) I have rather recently started working with prepared MySQLi-statements in php. From what I've learned is it supposed to be much more effective and secure so I've tried to adapt it to my projects as much as possible. The thing that always annoyed me with this technique is that I cannot figure out how to use it in the way you could without prepared statements to easily print out database information. I'm talking about this method: [CODE] $result …

Member Avatar
+0 forum 0

Hi! I have a problem with binding parameters dynamically in my mysqli_stmt objects. As I don't know how many parameters which will be put into this function I must bind the parameters dynamically. Though I cannot understand what's wrong with this method: [CODE] public function execute($unprp_stmt, $data){ //Prepare the stmt $stmt = $this->con->prepare($unprp_stmt); //Get dynamically built parameter string for the bind_param method. E.g. 'issis' $paramstr = $this->get_paramstr($data); // Dynamically build up the arguments for bind_param $params = array(); array_unshift($params, $stmt, $data, $paramstr); print_r($params); // and then call bind_param with the proper arguments call_user_func_array('mysqli_stmt_bind_param', $params); }[/CODE] Out of this I get …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I'm not sure this thread is in a right category. I have a problem relating to software design. I'm developing a software to manage member ranking of a chess club in C#. The requirement is: "Each member has a title in club. The title of a member is based on his/her Elo (a chess rating system), the number of competition he/she took part in and the his/her rank in those competitions. There are 7 titles: Pawn, Knight, Bishop, Rook, Queen, Gold Queen and Gold King. The condition of each title is: - Pawn: + Elo: 0 - 499. …

Member Avatar
Member Avatar
+0 forum 9

HI there, I'm trying to create Drop Down Lists dynamically. Two thing before we start: 1. Im working on a ContentPanel that is inside a master page 2. I cant add anything to the .aspx directly, so all the code must be inside the .aspx.cs This is my code: [CODE] public void GenerateDDL(Page page){ DropDownList element; element = new DropDownList(); element.ID = "uxDropDownList"; page.Controls.Add(element); } [/CODE] So far it worked just fine when it came to adding Labels, Images and Hyperlinks dynamically; but for some reason, when I try to add the DropDownList using the very same process I get …

Member Avatar
Member Avatar
+0 forum 3

Hi there, I got an empty Web content form that contains the content of a master page. When oen fo the buttons on the form is pressed im required to create a new window to show the result. How can I create that new window without actually having to add a new WebContentForm on the solution Explorer (and by that I mean what code should I type in order for me to create a form and make it visible to the user. Dynamically)? (is there any solution like when you dynamically create a new button? like for example: [code=c#]button name …

Member Avatar
Member Avatar
+0 forum 2

Hi there, I got this annoying problem... I have to create dynamically an image control that has got to be accesses later through javascript. In other words, I got an image that was created in the page code, and using javascript I got to be able to work with it The image ID of a previously created image is uxTimerImage, and I've tried accessing it with the following code: [CODE] uxTimerImage = new Image(); uxTimerImage.ID = "uxTimerImage"; ... this.Controls.Add(uxTimerImage); ClientScript.RegisterClientScriptBlock(this.GetType(),"timer", "var timerObject1 = document.getElementById('" + uxTimerImage.ID + "');"+ "var timerObject2 = document.getElementById('<%= uxTimerImage.ClientID %>');"+ "var timerObject3 = document.getElementById('uxTimerImage');", true);[/CODE] The …

Member Avatar
Member Avatar
+0 forum 3

The End.