64,152 Solved Topics
Remove Filter ![]() | |
I want to have the following on SQL Azure: IF EXISTS(SELECT * FROM [sys].[databases] WHERE [name] = db_name() AND [compatibility_level] = 110) BEGIN ALTER PROCEDURE [dbo].[Test] AS BEGIN -- Omitted body containing lots of strings END END or a work-around that does something similar. What follows is what I'm trying … | |
Here is my code: $(document).ready(function () { $(".submit-text").click(function () { var startdate = $("#startdate").val(); /*This line returns mm/dd/yyyy */ var starttime = $("#starttime").val(); /*This line retruns hr:min AM/PM */ var dtstart = new Date("startdate" + starttime); alert(dtstart); }); }); ****On alert it displays invalid date... but if I use.. var … | |
Hi, I seem to be having a problem when attempting to insert a new record into my database through vb.net. From what I can gather, there seems to be an error in the code that the command builder (cBuilder) is creating for me. Here's a copy of the code for … | |
hi experts, i have problem in displaying commas and decimal to a certain amount in a textbox and label. it only display certain amount without comma. below are my codes; ______ Private Sub lblAllowable_Change() lblAllowable.Caption = Format("4321", "#,##0.00") End Sub ____ ____ Private Sub cmdSearch_Click() txtLastname.Text = "" txtFirstname.Text = … | |
Hi, I am using below code to check only one radio button which is in gridview item template. But it allow multiple selection as CheckBoxes. My code: [code=asp.net]<columns> <asp:TemplateField HeaderText="Select"> <ItemTemplate > <asp:RadioButton ID="rd1" GroupName="rdBox" runat="server" /> </ItemTemplate> </asp:TemplateField> </columns>[/code] Please help me. Thanks ! Pankaj Singh | |
hi, i am developing a web application in asp.net, i need to generate UserId and Password for different users. so the UserId is should be in their designation(like EIDPRO-0025,EIDMM-0025,EIDTL-0026).The EIDPRO,EIDMM,EIDTL is different users, I need the Numeric value (0025,0026,0026) should be increment. how to do this? Anyone give me solution … | |
Im trying to call the method "public void insertCard(int p)" within the same class into the method " public void deposit (double amount) " My code for both methods is displayed below. the objective would be to have the deposit method return the last print statement if the card is … | |
![]() | Hi all, I'm having some issues with RewriteRules conflicting in my .htacccess file. For starters, here's the file: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On #Start forum rules RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(jpeg|jpg|gif|png)$ /public/404.php [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] #Start wiki rules RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php … ![]() |
I'm wanting to create a while loop that asks the user if he wants to run the program or not... very basic... I know. I was wanting the prompt to ask the user to input "Y" or "y" to have the program run. Like this: programStart = str(input("Please press 'y' … | |
![]() | Hi I have XML file that appends on the end of the file: <!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><title> </title></head> <body> <form name="form1" method="post" action="GetProductsXML.aspx?username=UASERNAME&password=PASSWORD" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2MTY2ODcyMjlkZC/1D4iGqP0urqyxWR+2OEQ90eHf" /> </div> <div> </div> </form> </body> </html> I am using this function: … ![]() |
Hi, Someone please guide me to get the right sintax to print the numbers of above and below arrays. Right now it print the totals quantity, but what I really want is print each number for above an below array. Thanks. public class RandomArray { public static void main(String[] args) … | |
can anyone help me with this error? INVALID_STATE_ERR: DOM Exception 11 on this line hr.setRequestHeader("Content-type","application/x-www-form-urlencoded"); | |
So I am working on a program and it has two seperate classes.. One of them contain the forum layout and the other contain some calculations and totals.. The problem is that the class with the calculations contain a constructor and other functions that I need to pass from this … | |
Hello, A website I'm working on requires that the Prototype framework is included, but I'm also using jQuery for some custom behaviours. I'm using the jQuery [maximage](http://www.aaronvanderzwan.com/maximage/1/) slider plugin almost successfully; the only issue is that it seems to conflict with prototype - yes, even with jQuery's noconflict used - … | |
Hello all: I would like to query my mysql table for a total number of records inserted during a specified day of the week within a specified time period. More clearly: count number records inserted on Tuesdays during the time period of 2013-01-31 - 2013-02-03. The first day of the … | |
hey i want to add this code to a jquery file that i have to display the autosuggestion results.when its in the body of my other page when the result is recieved it pushes the page down when clicked it goes back up i dont want that. any suggestion? <div … | |
Here is my code:- //choose the table and return records $result = mysql_query("SELECT id, state,country_id FROM state ORDER BY country_id"); $string .= '"'.$val.'", '; $country = null; //get group while($row = mysql_fetch_assoc($result)) { if ($row['country_id'] != $country) { echo '<br>'.'<br>'."[".($row['country_id'])."] = parentarray ["; $country = $row['country_id']; } // get list … | |
Public Class LoginForm1 Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim con As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\ahamdi2\Documents\Visual Studio 2008\Projects\sistemPengesanan\sistemPengesanan\admin.mdf;Integrated Security=True;User Instance=True") Dim cmd As New SqlCommand("SELECT * FROM info WHERE username = '" & UsernameTextBox.Text & "' AND [password] = '" & PasswordTextBox.Text & "' ", … | |
Hi all. I recently set up dual boot Os (7, and Ubuntu 12.10). The namespace call was/is working on the Windows 7 env (same version of XAMPP). I know Linux is case sensitive so i have amended the file/folder calls. Although the file exists, i am getting: `Message: Class classLib\dataBase\database_Connection … | |
I have this part of code <?php $showmonth=$_POST['showmonth']; $showyear=$_POST['showyear']; $showmonth=preg_replace('#[^0-9]#i','',$showmonth); $showyear=preg_replace('#[^0-9]#i','',$showyear); $day_count=cal_days_in_month(CAL_GREGORIAN,$showmonth,$showyear); $pre_days=date('w',mktime(0,0,0,$showmonth,1,$showyear)); $post_days=(6-(date('w',mktime(0,0,0,$showmonth,$day_count,$showyear)))); but i get errors like undefined index showyear,and errors on cal_days_in_month parameter 3 expected to be long, and also mktime parameter 6 expected to be long all due to the undefined index, how do i fix … | |
can anyone show me how to upload a binary file using Ajax (and php of course) I mean the html and js ? ![]() | |
Hi Guys, Right... I've managed to run select statements with associated Joins to show the data I want in DGV's which is great. Seems to be working fine. I'm not to the point where I need to be able to Insert, Update & Delete Rows in my Database. I am … | |
hi, i am trying to run the java EE application and when i clean and build the EJB and the web compoenent i get an error as below > Failed to execute goal on project account-web: Could not resolve dependencies for project edu.depaul.cdm.se:account-web:war:2.0.0: Failed to collect dependencies for [javax:javaee-web-api:jar:6.0 (provided), … | |
![]() | Please help. I am trying to change data in my MySql database. I am able to input new data, but when i try to change anything, it doesn't work. Here is my code: <?php $id = $_REQUEST['id']; $newname = $_REQUEST['newname']; $newemail = $_REQUEST['newemail']; $newpassword = $_REQUEST['newpassword']; mysql_connect("localhost", "root", "") or … ![]() |
Hi All, We 've 20 promotional websites and we want to centralize the contact us form. We have contact us form that is kept in Server 2 and all the other web sites kept in server 1, now i need to include the contactus form server1 inside server 2 websites. … | |
I am compiling some source that is linked to two packages. One is OpenCV and the other is a driver library for an infrared camera. The company only provides a 32-bit version of the library via an rpm package. I compiled OpenCV from source and it's libraries are installed in … | |
Hi, I have a problem that wants to be calculated only by while loop. (no other loop, no goto, break) Develop a program that will input the miles driven and gallons used for each tankful. The program should calculate and display the miles per gallon obtained for each tankful. After … | |
Hi all i am obtaining game stats data through c# using HttpWebRequest and am returning chunks of data which is passing through class variabled held in dll files. my question is which i am unsure of is i would like to add a progress bas to show the players current … | |
Hi experts,gud day! Here I am again needing your help. How will I code condition that textbox will only be enable after 6 months from date of hired or textbox will be disabled after typing certain amounts because it is not yet 6 months from date of hired. A message … | |
hi friends I am trying to search a table with last and first name and update table after changes .I can retrieve rows and display in datagridview, I would like to know how do I update table after changes, i would appreciate any help Private Sub TextBox1_TextChanged(ByVal sender As System.Object, … | |
HI Friends, SQL> edit; SP2-0110: Cannot create save file "afiedt.buf" how to fix this problem. ![]() | |
I'm pretty new to AJAX so this may look like simple questions but..., so i want my file to be stored in a table in a db i have on my localhost, i'm using iframe <iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe> what source do i provide, what about the … ![]() | |
Is there a way to see if the user is using Windows 7. If yes, can we change their theme when the Form loads, and change it back when it closes? Thanks | |
I want to store '\092' (which is backslash ASCII code) in a char variable but Java does not allow me. Does anyone know what the problem is and how I should store that? | |
I have built a web site and it works in every browser except for, of cource Internet Explorer, is there some normalized code that I can copy and paste that will make everything work in I.E.? Or do I need to go through and make a new css for everything … | |
Hi I have some code that has 2 querys to fill 2 dropdown boxes. I need to get an id from one depending on which selection is chosen, put it in a variable to use in the second query. My code is below with comments of what I want to … ![]() | |
I have a site for youth basketball, where parents can list their kid to get them onto a team. The listings that get replied to by teams needing players are deleted, but some listing remain on there for months or years. To combat the potential confusion of which grade a … | |
Hi Friends.. i have one form where combobox is include... i want to use popup form with respect to selected combo box values using jquery function.... i have this code for combo box.. <label id="label">First Schedule </label> <select name="cmbFS" id="cbmFSId" style="width:205px;"> <option value="">---SELECT---</option> <option value="FSchedule" >Second Shedule</option> <option value="Reject">Reject</option> </select> … | |
Hi, A very simple question I'd like to ask, why intializing a var outside a function, it cannot be used in that function? exmaple: <script type="text/javascript" > var myvariable = document.getElementById("someID"); function someMethod(){ //some stuff here, and I cannot use myvariable inside here why? } </script> | |
When a simple-escape-sequence like '\n' is evaluated, what would be the result? Is it ASCII 10? How I can show ASCII 10 as a character? Isn't it '\n' again? I am confused! Can someone please help me with the issue? | |
Hello, I have this code over here: <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <title>Admin area - Sydcul URL Shortener</title> <meta name="description" content="Free URL shortener"> <meta name="keywords" content="sydcul, url, shortener, tiny, url, tinyurl, bit, ly, bitly"> <meta name="author" content="Sydcul"> <link href="../stylesheet.css" rel="stylesheet" type="text/css"> <link rel="icon" type="image/ico" href="../favicon.ico"> </head> <body> <center> <h1>Admin … | |
1. I am trying to use this code snippet, to learn how to create a dropdown menu, populated by a mysql database. 2. I have worked out the kinks of the database credentials. 3. I have created and populated a test database. 4. This does actually work, now that it … | |
This .htaccess throws me a 500 error. I've Googled/tried everything. RewriteEngine on RewriteRule ^([0-9]{6})$ decode.php?shorturl=$1 [L] It's for a URL shortener. I am new to this stuff. ![]() | |
systemFolder.targetFolders.dir=LoginInfo.getTargetFolderSystemDir() systemFolder.ser.dir=LoginInfo.getSystemFolderSystemDir() bookMarkDB.name=bookMarkDB.xml bookMarkDB.dir=bookMarkDB bookMarkDB.home=$(ViewResources.systemFolder.targetFolders.dir)+File.separator+$(ViewResources.bookMarkDB.dir)+File.separator+$(ViewResources.bookMarkDB.name); is it possible to concat bookMarkDB.home and bookMarkDB.name ? is the +File.separator going to work? thanks | |
Hi! I would like to ask if it is possible to insert a GIF image on my form? If possible, would you mind to show me how by posting its codes? Thank you in advance...... | |
Hello. Could someone translate this? I have yet to effectively use these expressions. sometimes I use the if statement to evaluate if a var has a certain value. most of the times it works. is the ternary expression used to handle other possibilities that could come up? 1 m != … | |
Hi guys What's the default pointer value in c++? Can I count on the compiler to set an uninitialized pointer to NULL? Is it compiler dependant? What's the "consensus"? Thanks! -FH | |
ViewResources.properties Hello I have a a properties sheet I would like to know how to make bookMarkDB.home reference other properties from the ViewResources.properties sheet below. how can "bookMarkDB.home" create a systemDir by using the properties already defined? The only example I have seen uses $ but I have no clue. … | |
> /* This code works when the added chracter's value is less than or equal to 9. I mean when there is a carry,what will i do to print that. And there should not be used any library function. Run the program and you will understand clearly. */ #include "stdafx.h" … | |
Hello Daniweb, I'm attempting to build an online service, aimed at mobile devices that have GPS or GPS like capabilities. The service would take a users location, and show them locations nearby of interest along with some information, such as a historic landmark and some facts or a restaurant with … |
The End.