199,114 Archived Topics
Remove Filter ![]() | |
I want to write code behind by close button so when user click rhat button whole application is close... is it possible? //this code is not giving right result... protected void ImageButton3_Click(object sender, ImageClickEventArgs e) { Response.Write("<script language='javascript'>window.open('','_self',''); window.close();</script>"); // Response.Write("<script language='javascript'>self.close();</script>"); //Response.Write("<script language='javascript'> { self.close() }</script>"); //Me.ClientScript.RegisterClientScriptBlock(Me.GetType(), "closemyself", "<script>self.close();</script>"); … | |
Hello All, I have been wondering how possible is it to have an application that would run a php application that would be used for making the database updates as well as handling the business logic while on the front end, have delphi forms So The form will be used … | |
Hello ! i am working on a simple asp.net project , i have two forms , frmlogin.aspx and frmmain.aspx , i want to redirect my frmlogin.aspx when my session is expired. i already added global.asax. i used all these codes at the session end event of it , HttpContent.Current.Response.Redirect("frmlogin.aspx"); Server.Transfer("frmlogin.aspx"); … | |
I have just started to learn PHP.I have installed Netbeans and WampServer, now when i run a sample php code in netbeans, browser showing 404 error.i think everything installed correctly,may be its because of some connection problem with browser and netbeans,should i change something in project properties?.Could someone please help? | |
Hi, I have a webform where users insert their personal data into db. What I want to do is to prevent duplication in PHP code. Currently I'm using query below but some users do deliberete things to go through this validation like swoping name&surname etc. I know that if the … | |
This is my html: <html> Cross Site Scripting Security <form action="komentar5.php" method="POST"> Nama: <input type= "textbox" name="nama" /><br /> Email: <input type= "textbox" name="email" /><br /> Komentar:<textarea name="comments" rows=10 cols=40></textarea><br /> <input type="submit" /> </form> </html> komentar5.php <?php $nama = isset($_POST['nama']) ? $_POST['nama'] : ''; $comments = isset($_POST['comments']) ? $_POST['comments'] … | |
CAN anyone help me in knowing the differences between J2EE, J2SE & J2ME... I am a newbie to Java. Please explain me in detail. Thankz in Advance !!! | |
#plzz help me to solve this problem....i hav tried but there are many errors....# #include<iostream> #include<string> using namespace std; class matchMaker { public: string rtn[] getBestMatches(string members[], string currentUser, int sf) { int i=0,scount=0,x; string rtn[10]={0}; for(i=0;i<20 && scount<2;i++) { if(currentUser[i]!=' ' && scount<2) continue ; else scount++; } int … | |
spoofedform.php <html> Spoofed Form Security <form action="receive.php" method="POST"> Nama: <input type= "textbox" name="nama"></br> Warna Favorit: <select name="color"> <option value="red">red</option> <option value="green">green</option> <option value="blue">blue</option> </select> <input type="submit"> </form> receive.php <?php $nama = isset($_POST['nama']) ? $_POST ['nama'] : ''; $color = isset($_POST['color']) ? $_POST ['color'] : ''; // escape output $newnama = … | |
Hello, This is my first tumblr theme attemt and this is what i have got so far, the masonry is working on the main page, but when the infinite scroll jquery plugin loads the second page the sorting acts funny, here are the urls → Live Url : http://rmlthemer1.tumblr.com Complete … | |
Hey guysz. I had follow up the Daniweb discussion on VB6. I tried to develop a software based on what I got. It is a similar to library system (it is a different program actually). Thanks alot ^^. Now I almost 80% done. So I need a little help 1. … | |
// This code is not solving my problem .Data redundency still exist... lblresult.Text always give 0 :( int count=0 ; string selectSQL = "SELECT Equipment_Name,Vendor_Name FROM CatC"; SqlConnection myConn = new SqlConnection(); myConn.ConnectionString = "Data Source=.;Initial Catalog=ecsd1;User ID=sa;Password=786"; myConn.Open(); SqlCommand cmd1 = new SqlCommand(selectSQL, myConn); SqlDataReader reader; try { myConn.Open(); … | |
My XNA Indie game engine "TemporalWars" code is now available on CodePlex -> http://temporalwarsindieeng.codeplex.com. You can download the engine, which is in C#, and build indie game for Microsoft's XNA platform. Ben | |
I've been given a homework assignment in which I have to create a linked list, then store 25 random integers within it, after I've stored the values I have to find the sum of these 25 numbers, and then the floating point average of them. So for the most part … | |
Let say you have came out with a software written in c is there anyway to insert a clickable icon on your desktop so you can run the program on windows desktop? c is very good but we need to get a clickable icon so we can run our software. | |
Hi All, I have a program for a multiplication table that requires a user to indicate the table they want to see with an integer between 4 and 12 and I would like the final array (MultTable) to look like the following, is this possible? 0 1 2 3 4 … | |
Hi everyone, I am new to C++ and have no idea where to start with classes. I took my first programming class last semester and just started object oriented programming. I am new to classes and this is my first assignment. Any help with a link or anything would be … | |
Hi everybody, what can i missing my code jquery click function display only error function alert msg. plz help me. function changePage(page) { $("#criteria_page").val(page); $("#search_new_friend").click(); } function inviteToMypeople(personalId) { if (confirm("Are you sure you want to invite " + full_name + " to your layer?")) { $.ajax({ url: $("#url_invite_to_layer").val(), data: … | |
Hi, I am very new in writing javascript so please apologize for that if I am asking very simple things. I am trying some thing like this but it's not working: <script type="text/javascript"> $(document).ready(function() { $("#accordion").accordion(); }); $(window).load(function() { $('#slider').nivoSlider(200); }); </script> Please can anyone help me regarding this. I … | |
I want to send query in Html form 'action' to get data from other site. let suppose my url is http://abc.xyz/index.jsp?number=**<?php echo $number;?>** Problem is i can't execute php script in form action.When i press submit it just go to http://abc.xyz/index.jsp?number= without php output value.Is it possible that way? Please … ![]() | |
I am having trouble compiling this program, I have just about everything written up but the compiler errors are keeping me stuck at a standstill. In the WRITEARRAY and READARRAY function are where the main compile errors are giving me subscript is not of integral type and this is making … | |
I'm trying to load a PNG file into a BufferedImage like so: BufferedImage image = ImageIO.read(new File("smile.png")); When I use this line of code alone, it produes the error: Unhandled Exception Type IOException... I can fix this by surrounding the statement with try/catch like so: BufferedImage image = null; try … | |
Hi all... I'm new in vb.net and just create a listview project . I wan to display item from database(.mdb) into listview.how to make the next item going below and not auto sorting by id?...please help me...thank in advance Do While IBSSDR.Read() If IBSSDR.Item("USERDEFINED10").Equals("Y") Then ListView1.Items.Add(IBSSDR.Item("CARDHOLDERID")).ToString() ListView1.Items(ListView1.Items.Count - 1).SubItems.Add(IBSSDR.Item("NAME")).ToString() If … | |
Give then following Class declaration: class Employee { public string Name { get; set; } public int Age { get; set; } public override bool Equals(object obj) { Console.WriteLine("In Equals(Object)"); if (obj is Employee) if (this.Name == (obj as Employee).Name && this.Age == (obj as Employee).Age) return true; else return … | |
Hi, I am not sure if I am posting in the appropriate forum...but i have to generate some task graphs for a research project that I am currently working on. Please suggest what software is best suited for this job, and other methods if any. The project invloves Scheduling algorithms … | |
I am looking forward to develop game in java and might sell it as well so here is the question: Do we need to pay fee to Oracle if we sell our game on the market or host it on our own web site with advertisement on the game page? … | |
![]() | Well, as you might know, when you are attempting to run a script from poweshell and have not used: Get-ExecutionPolicy You will get File C:\scripts\test.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_signing" for more details. At line:1 char:19 + … |
![]() | hello i want to know that how pass parameters to mysql query inside php function i have written function but giveing me error error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource function d_loader($r_ip){ global $con; $result = mysql_query("SELECT * FROM table WHERE h_ip ='$r_ip'"); $row=mysql_fetch_array($result);} ![]() |
Hi Frendz, I have a set of polygon points on google map. I need to find whether the given input point is lying inside of the polygon or not? If anybody found articles related this please guide me. And also i need the same with poly line. | |
I apologise in advance but I have resorted to posting all of my code as I'm really struggling on this! I have created a table which is initially empty then a user imports a text file and creates 'n' rows depending on the content. Each row has an option menu … | |
I am trying to create a gui that will interact with an existing external console application, e.g. the user only changes information in text boxes or radio buttons and that will prompt the VB.net program to sumbit a certain set of commands. I will create a folder for the end … | |
Hi guys Our college has a website(php, html, css) that is hosted elsewhere, but now we have a college database (mssql) on a local server and the Director wants me to link the website to the database at the college's server. Any ideas on how to do that? thanks in … | |
i have this code in main.jsp <html> <head> <link rel="stylesheet" href="/bipi/css/bp.css" type="text/css" media="screen"/> </head> <body> <div class="navigator"> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Add</a> <a href="/bipi/display.jsp">Delete</a> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Main</a> </div> <%--<% String fname = request.getParameter("f_name"); String fage = request.getParameter("f_age"); if (fname != null && fage != null ) { com.test.gerrard.Insert(fname, fage); } %>--%> <form … | |
Hello, I need some help sorting out this error: *Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/new/Archive/phplogin/includes/main/header.php:3) in /Applications/MAMP/htdocs/new/Archive/phplogin/register.php on line 71* I've included the code below, can someone please help me figure this out. I've been working om this issue for 4 hours … ![]() | |
Hi! I am a newbie in PHP and I have a problem. I have a file upload script. In the form one can choose a path (you can choose it from a drop-down menu). But I don't have no idea hot to post it to the PHP file. It's the … | |
Suppose I have this textfile: **Generation #1:** trash_jsdbjsabnf trash_nsdjklfndsnf trash_jlsndfknsf ... trash_akjsdlkjasdasd **Game_List:** game = 111 game = 222 game = 333 **Generation #2:** trash_jsdbjsabnf trash_nsdjklfndsnf trash_jlsndfknsf ... trash_slajdlaskjdlas **Game_List:** game = 119 game = 262 game = 323 ... ... **Generation #500:** trash_jsdbjsabnf trash_nsdjklfndsnf trash_jlsndfknsf ... trash_jkansdklnalsda **Game_List:** game … | |
Can someone please help and tell me what I am doing wrong. <html> <head> <title>FRHG Guest Wireless Account Creation or Deletion</title> </head> <body> <h1 align= "center">Fremont-Rideout Health Group</h1> <h1 align= "center">Guest Wireless</h1><br /><br /><br /> <form method= 'post' action= '<?php echo $PHP_SELF;?>' id='form' accept-charset='UTF-8'> <fieldset> <legend>Account Creation/Deletion</legend><br /><br /> <label … | |
Can you perhaps tell me why I'm getting this error? I'm trying to upload a image to a database through php and I'm getting this error the whole time in my picUpload.php These are the errors I'm getting: [CODE] Warning: move_uploaded_file(avatars/beetgejo.jpg) [function.move-uploaded-file]: failed to open stream: No such file or … | |
I wrote this program because I often am asked by people that know that I like to make games to make just a quick simple game for some reason or another. I always make a simple text based adventure game (like Zork, but simpler) and they are usually happy with … | |
Need your urgent help , i have connected weighing machine with serial port ,now am getting data to a rich textbox in a string form , problem is i dont know how to get the only desired figures. the output string coming in this format from rtbDisplay _A0+0000002 Kg054__A0+0000002 Kg054__ … | |
Ok, I think Im missing something Big in programming logic when comes to web applications. Once again Im clueless about how to proceed in the curent situation. I have a Bing Maps application that connects to a WCF Service to read and write to a database. In this application I … | |
I am trying to create an applicaiton that will verify that a large text file used far a CNC machince has all of the operations in order (someone may have edited the file by mistake) I wish to bubble sort the lines of the file while ignroing other lines. I … | |
I have the following code that I would like to count files in a folder and return their name. Function CountFilesInFolder(strFolder As String) As Long Dim noOfFiles As Long Dim FileName As String FileName = Dir(strFolder) noOfFiles = 0 Do While FileName <> "" FileName = Dir 'ActiveSheet.Cells(noOfFiles, 1).Value = … | |
okay. Here's my problem. I have a form in which a Microsoft Hierarchical Flex Gid (fgdCompany) is used to display records taken from a database to relavent textboxes on the same form. When a record from fgdCompany is clicked, then the data in that record is shown on the textboxes. … | |
Hi All, I'm currently working on finding a solution to strip/edit a texfile in order to pass it through to Oracle's SQLLOADER which in turn will import the data into a table. The textfile will need to be imported into a clob column inside the first table after which the … | |
Hi I am trying to do a new design in this script and I have no idea why but when I put my html/css footer code in the php file it doesn't put the footer where it should be. Here is what I mean [[Click Here](null)](http://revenue.maximumcreation.com/login.php) and this is the … | |
after pulling my hair out with this one, I'm afraid I'm going to have to turn the knowledge of those much wiser.....again! ok so here's the problem, I am following the following two railscasts: [deploying to a vps](http://railscasts.com/episodes/335-deploying-to-a-vps?autoplay=true) [asset pipeline in production](http://railscasts.com/episodes/341-asset-pipeline-in-production?autoplay=true) My setup: Ubuntu Server 12.04 nginx unicorn ruby … | |
hi my complier showing me that i am having 4 errors.In **t1.drawHexagon(int width)**; & **t1.drawPentagon( int width )**.Its says .class and ";" expected. Help. Thank you import java.util.*; import java.awt.*; public class Turtle extends SimpleTurtle { public Turtle (int x, int y, Picture picture) { super(x,y,picture); } public Turtle (int … | |
how to do this? I only know how to set the error [CODE]errorprovider.seterror(textbox, "message);[/CODE] remove the error [CODE]error.provider.seterror(textbox, "");[/CODE] But instead of just removing the error, I want to display something like a check mark. | |
I need help writing a c program to run in Unix that uses pthread library to create a thread that computes the fibonacci numbers. I should provide a parameter to the thread indicating which fibonacci number to return and use pthread_join to wait and collect the returned value and lastly … |
The End.