199,113 Archived Topics
Remove Filter ![]() | |
I am making a page which allows the user to edit a specific row based on the querystring value. What is the best way to load data into the textboxes and to reflect the changes back to the database. **Example:** Request -> example.com/editpage.aspx?id=123 The page should display data from row … | |
Is ther a fastest way to retrieve data from sql server like the sqlbulkcopy the fastest way to insert large data.? | |
hey just wondering if you can make an method that you input a string and convert it in the method and return a int? something like public string[] ConvertString(string[] Cards) { int[] intCards = new int[52]; for (int a = 0; a <= 51; a++) { int.TryParse(Cards[a], out intCards[a]); } … | |
Hi All!!! im currently at a roadblock in my knowledge of using mysql and php date/time functions. the program i am trying to write, needs to incoporate the current date in the mysql query to pull the correct information to display in real-time.. currently the server is on east coast … | |
Hi All, I want to generate time table reports. A form includes labels to enter grade, class and stream. After selecting data user should click on "Generate" button and relevant time table details. The data is submitted for the following page and there was an empty set of data shown … | |
How to write a method in Java to compute the 'Letter Grade' given a percentage number grade. Method signature: public String checkRange(int grade) | |
How many pages of pdf can view as images by imagick.i need it in my project to view all pdf file as images.Is it possible by imagick. | |
Basically I have a Delphi application which downloads some data on run time, it basically executes Form.OnCreate; and then ENABLES a TTimer component to do the downloading. This has been working fine for me as at least the user sees the interface whilst it's loading but now I have a … | |
Hi All, I have a list of hex values that originated from a text string that was downloaded having now created a list of thes values approx 804 of them, when i run the list items through a loop to conert hex into dec had an error looking at this … | |
Hi Guys - newbie here.. I have been working with OLEDB connection for the past few weeks and now have this connection in ADO and i'm not sure how to proceed. **The Connection information is the following:** private ADODB.Connection adoConn = new ADODB.Connection(); private ADODB.Recordset adoRS = new ADODB.Recordset(); and … | |
Hi everyone just wanted to ask: 1) How to transmit captured data through the internet from point a(sender), then get it to point b(receiver) in steady but fast format? "probably simmilar to Http or voip and close to ATA voice adapter without to much coding and hardware involved" I think … | |
I have a class (Point2D), and an instance variable (double tav) in this class. I would like to compare different Point2D objects (based on variable "tav") by the relational operators (<,>). (a < b) means that (a.tav < b.tav). Is there any way to solve this problem? public class Point2D … | |
Hi Guys, While i managed to add rows and save them in the grid. I want to know the syntax for Update the data in the grid directly. Thanks Sai private void btnUpdate_Click(object sender, EventArgs e) { string col2 = dg[1, dg.CurrentCell.RowIndex].Selected.ToString(); string col3 = dg[2, dg.CurrentCell.RowIndex].Value.ToString(); string col4 = … | |
Is it mandatory to handle an exception that is thrown using the `throw` keyword? If so is there a separate rule for Checked and Unchecked Exception, as in who should be mandatorily caught? public void met() { throw new ArithmeticException | |
Hello, I need to write a function that would take a string and break it up into tokens (ie words, numbers, and punctuation). First it needs to break up the string and store them into an array called Token[]. Obviously a for loop needs to written however should I just … | |
HI , everyone can you please write a program for me , I have a set with 5 things in it thats line a={1,2,3,4,5} but it could be everything possible and there are subsets like b={1} c{1,2} d{1,2,4,5} but I cant write the progam so if you can write a … | |
Hi need help i setting up both Adding and Updating datagrid cells in the Save_Click event. Right i used seperate click events for Add_Click and Updating_Click but i want to both of them in the Save_Click event rather than seperately. Thanks in advance Here is my code using System; using … | |
Hey, I might be having a blonde moment but here goes.. I'm trying to split a massive 1D vector into blocks at different places (If that makes sense), it should basically go like this: 0 201 401 601 801 .. .. .., 57201 2 202 402 602 .. .. .. … | |
![]() | //==============================================================================// // RPS (Rock Paper Scissors) // Author: SoulPour777 / Janrae Mendoza // A Simple C++ Game // =============================================================================// #include <iostream> #include <cstdlib> #include <ctime> using namespace std; string player; string player2; int wins; int loses; int roll; int draws; void error(); void gamePlay(); void Scene_Result_Display () { cout << … |
how can i trap my textbox that allows numbers and letters only, no space no special characters e.g (,./;'[]-=\`<>?:"{}_+|~!@#$%^&*()) | |
Hi i got a script from some website, it is an alternative for marquee so its cross browser. i put an iframe for it to scroll endlessly but after it scrolls the iframe, it keeps scrolling until it disappears off the screen, leaving behind a transparency until it starts anew. … | |
How to run shell commands from python. eg. How to use 'echo $a' commands? where a is any variable. | |
Im trying to get my program to look like the following Welcome to the 64th Primetime Emmy Awards! ============================================================================== The nominees for Outstanding Comedy Series are: [1] Write In [2] The Big Bang Theory, CBS [3] Curb Your Enthusiasm, HBO [4] Girls, HBO [5] 30 Rock, NBC [6] Veep, HBO … | |
Hi all, I have an issue with a loop as it contains communication between my server and a remote one. If the remote server has an issue then it takes forever to complete the loop and the execution times out. What it currently is: $servers = mysql_query("SELECT * FROM server_tab;e … | |
Hey! So i have started learning c, quite refreshing when i normally code in Java :) I have this task where i need to store three int values in an unsinged int via bitwise operators. Its for a RGB picture where the colour is limited to 256. I have done … | |
Hi everyone. My question is how to copy values of 2 arrays from one function into 2 new arrays into another function? Copy data from arraay1[i] into arraay3[8] and from arraay2[i] into arraay4[8] ? int onefunction(int araay[]){ ....... ....... arraay1[i]; arraay2[i]; } int twofunction(int araay[]){ arraay3[8] = {0}; arraay4[8] = … | |
Can someone please tell me how to control a windows form from another form? I have one form (form2) which has a button. When this button is clicked, I need my other form (Form1) to hide a button. I know all the code except for how to make form2 access … | |
Hello, I am trying to create a program that will allow me to find a certain phrase, (always between brackets and always with a "'0" in it) and replace it. Basically I have something like [ k '0 ir e ] and what I need to do is use regular … | |
Hi. Does anyone know how I can create a new printer port in C#? At the moment I've got this, which uses WMI (System.Management): [code=C#] ManagementClass portClass = new ManagementClass("Win32_TCPIPPrinterPort"); ManagementObject portObject = portClass.CreateInstance(); portObject["Name"] = portName; portObject["HostAddress"] = "174.30.164.15"; portObject["PortNumber"] = portNumber; portObject["Protocol"] = 1; portObject["SNMPCommunity"] = "public"; portObject["SNMPEnabled"] … | |
I have a website that runs fully on PHP. The footer is contained in footer.php. Is there a way to make the footer customizable via Wordpress? | |
Hi All, I would like to know the differences between Sessions and Viewstates. And best uses of Sessions and Viewstates. Thanks and with regards, Madhusudhan | |
Hey so for a couple of months now Ive been facinated with c++ and have been going through various tutorials and examples of creating console based applications dealing with arrays,pointers, classes, etc.So I really want to get into the GUI side of it. But from word of mouth I hear … | |
can anyone give me a cool c++ program using alloc and free you can use c also | |
I have a dropdown list on each cell of table row. Now what I need is dynamically add more dropdownlist on a particular cells with pressing the add button. Any code snippet to help on this? Thank you. | |
Hello all! My problem is: I have 2 web php pages, in a online server. 1 is listing database content, the other is to "download" the 1º but in html... I'm doing this by getting the content of 1º page, in a link like http:\\mysite.com\page.php, to make the page run … | |
i want to display hindi text in label but there is no option of hindi font in the font property of label ? | |
Hello, Cek this web: [Click Here](http://www.jsutama.com/)] It's not me who created it. I must modify it. How to make the animation speed goes slower. <html> <head> <title>::: PT JS Utama :::</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="shortcut icon" href="favicon.ico"> <script src="Scripts/swfobject_modified.js" type="text/javascript"></script> <script type="text/javascript"> <!-- function MM_swapImgRestore() { //v3.0 var … | |
Hello, I have a made a forum like page where a user can submit a thread and the information gets stored in a database. However, when I try to output the data it outputs it without any line breaks in it, example: The user inputs: Hello, This a paragraph It … | |
I need in my project to view pdf files such that no one can save the pdf file.Is it Possible.IF it is please tell me the way. | |
I am rewriting an internal Coldfusion app that stores passwords in the database using Encrypt and Decrypt into C#. My Coldfusion code is using two parameters like this: `<cfset strDecrypted = decrypt(ToString(toBinary(strBase64Value)),"keycode") />` Where strDecrypted is the decrypted string returned, strBase64Value is the encrypted string in the database and "keycode" … | |
I am creating the Simple Blog from PHP for absolute beginners book. I have worked through the book and my only error now occurs when I am logged in as the admin and try to Post a Blog. The errors I get are: Warning: array_push() expects parameter 1 to be … | |
Hi I just completed my database hospital application and now i'm ready to export it into a JAR file. I palced the DB in the classes subfolder and played with ClassLoader but got nothing! I used the following code String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=f:hospitalDb.mdb;}"; any idea … | |
int wordpercent = ((count/totalwords)*100); JOptionPane.showMessageDialog(null, "Count: " + count); JOptionPane.showMessageDialog(null, "Words: " + totalwords); JOptionPane.showMessageDialog(null, "Character Count: " + length); JOptionPane.showMessageDialog(null, previousletter); JOptionPane.showMessageDialog(null, nextletter ); JOptionPane.showMessageDialog(null, "Your word makes up " + wordpercent + "% of the document"); This is the final part of my program code. The program lets … | |
Why is 'BusyIndicator' not found? I am using Silverlight 5 toolkit and I am references that version of Silverlight.Windows.Controls.Toolkit in my silverlight demo. But I get this error and I do not know what to do Error 16 The tag 'BusyIndicator' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit'. C:\Users\Bobbi\Documents\Visual Studio … | |
How To Modify An Element in the Dictionary Class? ======================================= C# has this cool Dictionary class that you can use like a Hash Table. Is there a way of changing the value of an indexed element without resorting to removing it like this? int value = runningcount[city]; runningcount.Remove(city); runningcount.Add(city, ++value); | |
#include<stdio.h> #include<conio.h> void main() { float a[5][5],x[3];float t,s; int i,j,k; printf("enter a matrix of order 3*4"); for(i=0;i<3;i++) { for(j=0;j<4;j++) { scanf("%f",&a[i][j]); } } for(i=0;i<3;i++) { for(j=0;j<4;j++) printf("%f ",a[i][j]); printf("\n"); } for(i=0;i<=1;i++) { for(j=i+1;j<=2;j++) { t=a[j][i]/a[i][i]; for(k=i;k<=3;k++) a[j][k]=a[j][k]-t*a[i][k]; } } printf("The upper triangular matrix is as\n"); for(i=0;i<3;i++) { for(j=0;j<4;j++) printf(" %f",a[i][j]); … | |
Hello everyone first time posting here, I have spent hours trying to figure out how to write this program that our instructor has given to us as an assignment. http://en.m.wikipedia.org/wiki/Bogosort#section_3Instructions are bellow Frequently, the temperatures on the news are given in Centigrade rather than Fahrenheit. The formula for conversion is … |
The End.