64,152 Solved Topics
Remove Filter ![]() | |
I have 2 ASP.NET controls, which are the label and textbox. Both of this controls are enclosed with <div></div> When the end-users seletected a radio button which value is `Others` The <div> block and show it up without any postback. by using <div> block is i doing research i am … | |
includ<iostream> includ<conio> using namespace std; int x,z; char op; switch(op);{ cout<<"input two a rate"; cin>>x z; cout<<"category operator ( + , - , * , / , %)"; cin>>op; swich(op) case'+':cout<<"opertor +"<<x+z<< endl; break; case'-':cout<<"opertor -"<<x-z<<endl; break; case'*':cout<<"opertor *"<<x*z<< endl; break; case'/':cout<<"opertor /"<<x/z<<endl; break; case'%':cout<<"opertor %"<<x%z<<endl; break; default:cout<<"your are false"; … | |
Hey everyone, So recently my sister got herself her own laptop (okay it's been a year or so). Anyway, she's been getting horrible at staying up super late messing around on it. Well I decided I'd help my parents out and write a program to control her laptop a little. … | |
$(document).ready(function() { clearTextBox(); }); function clearTextBox() { $('#btnReset').onclick = function() { $('#txtName').val = ""; $('#txtContactEmail').val = ""; $('#txtMessage').val = ""; }; } I am using asp.net to develop my web page. Thus, all those control are on server-side. But whenever my `btnReset` is click is should be clear the textbox … | |
I have some PHP code to get info from a database. $category='New Boats'; $titles=array(); $result=db_query('SELECT vid FROM {taxonomy_vocabulary} WHERE name = :type',array(':type' => 'Boat Types')); $row = $result->fetchAssoc();//8 $vid=$row['vid']; $tid=db_query('SELECT tid,name FROM {taxonomy_term_data} WHERE vid=:vid',array(':vid' => $vid)); while($ttd_row= $tid->fetchAssoc()){ if($ttd_row['name']==$category){ $tid=$ttd_row['tid']; $result=db_query('SELECT entity_id FROM {field_data_field_boat_type} WHERE field_boat_type_tid=:tid',array(':tid'=> $tid)); $eRows=$result->fetchAssoc(); $eid=$eRows['entity_id']; … | |
Dear All, How Can i prevent duplicate record entry in vb.net. Please help | |
Hi in my javascript i need to increase an int value by one after every 5 seconds. How to do this? The script should keep increasing until the user moves away from the page. | |
Hi I would like to know if anybody could help me insert records into a MS access database with VB.net, I'm actually a c# programmer and I have never worked with databases before, I got as far as connecting but as soon as I want to add a record I … | |
I want to create a template file in which I want to create my own styles programatically(in VBA) I have following code Sub Style() Dim myStyle As Style Set myStyle = ActiveDocument.Styles.Add(Name:="Abbreviations", _ Type:=wdStyleTypeParagraph) With myStyle.Font .Name = "Calibri" .Size = 12 .Color = wdColorBlue End With Selection.Range.Style = "Abbreviations" … | |
How would I go about modifying this code to accept characters instead of integers? #include <iostream> #include <cstdlib> using namespace std; struct node { int key; node *next;}; int main(int argc, char* argv[]){ if(argc >2) { int i, N = atoi(argv[1]), M = atoi(argv[2]); node *t, *x; t = new … | |
Implement function ion() that takes a string as input and returns True if the entered string ends in 'ion' and false otherwise. ion('congratulation') True ion('marathon') False How can I start this off and Finish it? | |
Hi Guys, I am trying to teach myself templates and I keep getting lost in all these compilation errors. Here is the latest // This is the interface for the base class template<class V, class I =int> class Array{ private: vector<V> myStore; public: Array(); Array(I size); Array(I size, V value); … | |
So this is what i need to do and its not coming out right in my code. i need A function to calculate how long the balance will take to grow to a given value. This function is not part of the account class. It should take two arguments: an … | |
Hello, I'm having trouble serilizing different classes to the same xml. Class #1 is for accounts Class #2 is for settings public static void SerializeAcc(List<Account> list) { XmlSerializer serializer = new XmlSerializer(typeof(List<Account>), new XmlRootAttribute("Settings")); using (TextWriter writer = new StreamWriter(XMLPath)) { serializer.Serialize(writer, list); } } public static void SerializeSett(List<General> list) … | |
Hey guys I'm having trouble declaring a header file so I can use multiple modules. I have files named main.c foo.h and in main.c I have a <#include foo.h> but it says that it can't find the foo.h file. Why? | |
I was unable to go previous month and next month by clicking the next and previous. And i also unable to display another color when i selected a date. <asp:Calendar ID="cldDOB" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" ShowGridLines="True" Width="220px" NextPrevFormat="ShortMonth"> <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" /> <NextPrevStyle Font-Size="9pt" … | |
 What i am doing wrong? Or there is some retriction? i success to read the whole page as my email content, but the images cannot being display as well as my css style cannot be read too. | |
dear list, what i have to do is, i have perform some mathmatical operation in one function and using its results as input into another function, here is my code of what i had done till now : import math def Math(x1,y1): a = x1+y1 b = x1-y1 c = … | |
Since I noticed that these languages are rather popular, what are the advantages and disadvantages of each over the others? and what is the need/motivation for each one of them? Why are there no C++/Java libraries to deal with those needs? | |
Use a while loop to collect a shopping list of items from the user. Then use a while or for loop to list it back to them. i have: item = int(input('How many items do you have? ')) while item > 0: input('Name of item: ') item -= 1 i … | |
For some reason I am receiving this error , cannot find symbol, method Math random() not found . If anyone knows why it would be of great help. int digit1 = (int)(Math.random() * 10); int digit2 =(int)(Math.random()* 10); this is supposed to give me two separate random digit variables between … | |
i build these code. it's very cool: in test.h: class test { private: bool blVisible; int x=0,y=0; public: void Show(); bool Visible() { return blVisible; } void Visible(bool value) { blVisible=value; if (value==true) Show();//call the event } }; in main.cpp: include <iostream> #include "test.h" using namespace std; test a; void … | |
using templates: how can i do a parameter for accept a function name? | |
the Visual Studio 2010 have 1 way for build properties, in class's. but isn't a portable code:( i'm using GNU\GCC\G++. so don't belive that isn't possible do it in C++;) so anyone can advice me? i was testing these code, but i get problems with char* and i can't use … | |
Hello. I am designing a calculator app as part of a project. I have all the buttons inserted in the correct order. My problem is that the last column of buttons horizontally fills up the rest on the unused screen. As the device size scales, the more and more the … | |
I want to know that How I can Add the table in VB? As for wxample we see in IDM:  As You can see here: there were partition in th listbox. Same I want to create: I try to use multicolumn: checked = true and also adjust width … | |
Evening Sirs, I would like to specialize my search script, by not only searching in one row, but in more. For example my mysql_query looks like this now: $query = "select * from table where street = '$trimmed'"; I would like to query it like this: $query = "select * … | |
Hi, I have problems with getting data out of the **MS SQL Server 7.0** database in right encoding using **odbc** connection: $conn = odbc_connect("Driver={SQL Server};Server=$server;Database=$database; CharacterSet => UTF-8", $user, $password); I had the same problem when I used MS SQL Server 2005 and sqlsrv connection, but I found the solution. … | |
Hi, i am new in asp.net and i found it quiet difficult... i was programming in classic asp and sql server, but asp.net looks quiet different, specially if i do program in C# .... Than i hase a couple of questions : 1) if i do a form with 2 … | |
i created main.php page. this page includes these following php codes, <?php $user = ""; $pass = ""; $db = ""; $connect = mysql_connect("", $user, $pass); if(!$connect) { die ("Could not connect to MySQL"); } mysql_select_db($db, $connect) or die ("Could not open $db: " .mysql_error()); $sql = mysql_query ( "SELECT … | |
1.code -------------------------------------------------------------------------------------------------------------------- static void Main(string[] args) { SqlConnection sc = new SqlConnection("Data Source=pc3490ierf43;Initial Catalog=Persons;Integrated Security=True"); sc.Open(); SqlCommand command=new SqlCommand("Select Name from Persontable",sc); SqlDataReader reader= command.ExecuteReader(); while (reader.Read()) { Console.WriteLine("{0}", reader.GetString(0)); } Console.ReadLine(); } --------------------------------------------------------------------------------------------------------------------- ** 2.code** static void Main(string[] args) { using (SqlConnection sc = new SqlConnection("Data Source=pc3490ierf43;Initial Catalog=Persons;Integrated Security=True")) … | |
Hi Guys, I am trying to teach myself templates in C++. My current assignment is to create a matrix class by using vector of vectors. I have got most of it done but my code is crashing when I try to overload the random access operator in my matrix class. … | |
i got following errors. my login is working fine at localhost. but it is not working on server. please help me. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/rnzsnet/public_html/archler.com/demo1/admin/verify_admin.php:22) in /home/rnzsnet/public_html/archler.com/demo1/admin/verify_admin.php on line 38 Warning: session_start() [function.session-start]: Cannot send session cache limiter … | |
did any body had this error before with xamp in php e Texti: hbinp0ØÿÿÿlfùAnti¸P3GlP3Si°£à¦èÿÿÿlf`<Clea LowMàÿÿÿvk€ AVLC.m3u8øÿÿÿ`pØÿÿÿvk € PUserFlagslnkøÿÿÿŒ ÿÿÿvkA€ C:\Users\Bardh\Downloads\Photoshop_Plugins_x64_8.54.0625.1800.exeTortoisàÿÿÿvk€€Heightàÿÿÿvk€SortPropÐÿÿÿvk€2application/x-mpegDiøÿÿÿ€àÿÿÿvk€è0 Widthd Cðÿÿÿen_GB ÿÿÿnk x[ù¹ÍH~ÿÿÿÿÿÿÿÿX{(œÿÿÿÿ RecognizersÿÿÿC:\Users\Bardh\AppData\Roaming\Unity\WebPlayerPrefs\1øÿÿÿp™àÿÿÿvk€izWrapnkràÿÿÿvkHø‚yurl38ðÿÿÿlfgDISPØÿÿÿvk€,ptUserMoviesLimitàÿÿÿ | |
![]() | Hi, This is my first post, forgive me for not being immediately familiar with any forum protocols. I am trying to read in a txt file and store the data in my class. I keep running into this error Exception in thread "main" java.lang.NumberFormatException: For input string: "./src.Chance" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) … ![]() |
Hello, I am trying to update 3 tables that i have in my db. the second and third INSERT commands there is a specific field that needs to have the ID of the first table last row inserted. first table, admin: +--------------------+ |id username passcode| |1 admin test | +--------------------+ … | |
I will make the process of looping the data to save data into SQL Server database, but field data that must be stored is retrieved from the database access, data taken later not only a record, but a lot of records, so it takes a process of looping in it, … | |
is there any function to add a character at the end of a string? or algorithm? | |
please help why everytime when I run it it has this undefined error ( Notice: Undefined index: u_role in C:\xampp\htdocs\mysite\membership.php on line 136 /> Member Notice: Undefined index: u_role in C:\xampp\htdocs\mysite\membership.php on line 137 /> Administrator) <td>User Role:*</td> <td><input type="radio" name="u_role" value="Member" <?php if($_POST['u_role']=="Member"){echo"checked='checked'";}?> /> Member <input type="radio" name="u_role" value="Administrator" … | |
Hello, I would appreciate some help to import data from a text file to a datagridview. If anyone could give me a hint to get started... The textfiles have the column name in the "[ ]" I would like to read the data after the [wp], [pos], [rad] blocks, the … | |
Hello everyone i have two forms that are similiar the only difference is the rma number. One RMA number will get typed in by the user which will add it to the database and the second one, the user will select an rma number from the database(dropdown menu). What i … | |
I am currently in need of help on a piece of homework, I'm using python 3.3 and i need to set a delay on a times table program that i created heres the code: def get_int(prompt="Enter an integer: "): """this function will loop until an integer is entered""" while True: … | |
i'm trying doing a static clas, but i, always get errors... now i have head pain:( class Pessoa2 { private: static string strnome; public: Pessoa2() { strnome="ana"; } void setnome(string value) { strnome=value; } static string getnome() { return strnome; } }; just seen these static class, what i'm doing … | |
i read several time about Bitwise Right Shift Operator (>>\<<) but i continue without understand them:( can anyone explain to me? i don't undertand what will be the next results:( Half = 25 >> 1; Half = 25 << 1; | |
Define a 5 x10 2-dimensional array of integers (5 rows of 10 columns), randomly generate 50 numbers between 1 and 100, assign them to the array elements and display all the numbers on 5 lines of 10 integers each. [code=cpp] #include <iostream> #include <ctime> // For time() #include <cstdlib> // … | |
Hey Guys Im working on an assignment dealing with arrays. I have to Delete the duplicates in the array and re-display the array with the duplicates deleted. I Have code that I written up that is able to step throgh the process and will display the duplicated elements in the … | |
Hi, im writing a type of password generator, you insert a keyword and it gaves back a password by substituting letters and adding numbers/symbols to the string. Is there a way to split the text from one textbox into several strings every few letters? I´m new to programming, and have … | |
<script type="text/javascript"> (function($){ $(function(){ $("#frmmsg").submit(function(e){ e.preventDefault(); $.post( 'templatemsg.php', $("#frmmsg").serialize(), function(){ document.location.reload(); }); }); }); })(jQuery); </script> | |
Private Sub cmdfind_Click() Dim search As String search = txtfind.Text Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\HOSTEL STUDENT.mdb;Persist Security Info=False" Rs.Open "SELECT * FROM STUDENTS WHERE [REG] LIKE" & "'" & search & "'", Con, adOpenStatic, adLockOptimistic Do Until Rs.EOF Rs.MoveNext Loop If Rs.EOF = True Or Rs.BOF = True … | |
Hi all! I have a user interface where I want to filter a datagridview.. I 've achieved to create filters but I 've failed to filter tha data by date.. I have a sql db and the column of date is of datetime type. When I try to filter the … |
The End.