5,346 Posted Topics

Member Avatar for dmanw100

>It's throwing an EOFException when attempting to open the file. No, that's not true. FileInputStream constructor throws FileNotFoundException. EOFException signals that an end of file or end of stream has been reached unexpectedly during input. Post your complete code.

Member Avatar for dmanw100
0
152
Member Avatar for johnray31
Member Avatar for tux4life
0
125
Member Avatar for Manak

Little correction to Ramy's code. [CODE=C#] String connectionString = System.Configuration.ConfigurationSettings.AppSettings["dsn"]; string Query = String.Format("SELECT RegNo FROM Student WHERE RegNo ='{0}' ", cmbRegNo.Text); OleDbCommand cmd=new OleDbCommand(Query,new OleDbConnection (connectionString)); cmd.Connection.Open(); int id =(int)cmd.ExecuteScalar(); cm.Connection.Close(); [/CODE]

Member Avatar for Manak
0
257
Member Avatar for amer2812

>i was searching in toolbox the oledbdata... No, there is no oledbdata control. You may use SqlDataSource instead. OleDBDataAdapater is a class of System.Data.OleDB namespace.

Member Avatar for kvprajapati
0
34
Member Avatar for silvia21

Welcome silvia21. It's called Internationalization with PHP. Read this [URL="http://php-flp.sourceforge.net/getting_started_english.htm"]http://php-flp.sourceforge.net/getting_started_english.htm[/URL]

Member Avatar for kvprajapati
0
67
Member Avatar for mundetas
Member Avatar for Ramy Mahrous
1
2K
Member Avatar for Nikhar
Member Avatar for s_sridhar
0
109
Member Avatar for stevelk

Source program must be surrounded with BB code tags: See # icon at toolbar and also read [URL="http://www.daniweb.com/forums/announcement61-3.html"]How to use bb code tags?[/URL]. >When i click the search button, why can not display the data from database into combobox? What's wrong with my code? Anyone can help me solve this …

Member Avatar for GeekByChoiCe
0
73
Member Avatar for ankur shah

ankur shah>What is the solution for that??? Did you work out to get the solution? What size of a file and what it contains? Post complete or fragment of your program. Source code must be surrounded with code tags; Use # icon at the toolbar of editor.

Member Avatar for tux4life
0
127
Member Avatar for vizy
Member Avatar for tripes

[QUOTE=tripes;897865]i have used the code that you have provited but it gives me an errror... it sais: ReadAllLines is not a member of 'System.IO.File'[/QUOTE] Use System.IO.StreamReader class.

Member Avatar for Teme64
0
211
Member Avatar for ayesha789

I hope you will develop a sample from these steps: 1. Ask email from the user. 2. Verify the user account by sending an email along with a token (a unique identifier) and a url having a token for a request. 3. When a user request by clicking at url …

Member Avatar for ayesha789
0
155
Member Avatar for valinux

Many many happy returns of the day. Welcome valinux. You must have to learn operating system first. After that you may start c++ programming. Please read this thread - [URL="http://www.daniweb.com/forums/thread199256.html"]http://www.daniweb.com/forums/thread199256.html[/URL].

Member Avatar for csurfer
0
157
Member Avatar for djdanjo82

First thing - Your source code must be surrounded by the bb code tags. See # icon at toolbar or read this [URL="http://www.daniweb.com/forums/announcement9-3.html"]How to use BB code tags?[/URL] There are two methods for synchronization: 1. Object lock 2. Class lock Use synchronized keyword to qualify a method or a block.

Member Avatar for djdanjo82
0
124
Member Avatar for niruyadla

What is your problem? Source program must be surrounded with BB code tags: See # icon at toolbar and also read [URL="http://www.daniweb.com/forums/announcement61-3.html"]How to use bb code tags?[/URL].

Member Avatar for William Hemsworth
0
168
Member Avatar for DaveyMoyes

Html form tag and action attribute: Add following code into home.php [CODE=PHP] <form method="post" action="test.php"> Mobile <input type="text" name="mobile"/> <input type="submit" value="Submit"/> </form> [/CODE] and test.php [CODE=PHP] <?php $mobile=$_POST["mobile"]; ... ?> [/CODE] Your source code must be surrounded by bb code tags. [URL="http://www.daniweb.com/forums/announcement9-3.html"]Read - How to use BB code tags.[/URL]

Member Avatar for DaveyMoyes
0
76
Member Avatar for brianzet

You want to create a php framework which creates a new sites. Did you heard about joomla and drupal?

Member Avatar for brianzet
0
198
Member Avatar for nmakkena
Member Avatar for yisman

Welcome. Your code is incomplete for any suggestion. Please read this [URL="http://msdn.microsoft.com/en-us/library/system.web.caching.sqlcachedependency.aspx"]Article.[/URL]

Member Avatar for kvprajapati
0
140
Member Avatar for tstillwell

Source program must be surrounded with BB code tags: See # icon at toolbar and also read [URL="http://www.daniweb.com/forums/announcement61-3.html"]How to use bb code tags?[/URL]. Mark this thread as "Solved" if you get solution.

Member Avatar for kvprajapati
0
193
Member Avatar for lolveley

f(ex) is an instance method. [CODE=C++] B p; p.f(ex); [/CODE] and include "A.h" in B.cpp.

Member Avatar for siddhant3s
1
114
Member Avatar for nirvaan

Use BB code tags - See # icon at toolbar. I think crystal report misses data source. Which data source (DataSet or Database/Oledb/Odbc) is used?

Member Avatar for kvprajapati
0
127
Member Avatar for balquees

Welcome balquees. Read this [URL="http://www.daniweb.com/forums/announcement17-4.html"]http://www.daniweb.com/forums/announcement17-4.html[/URL] before you post your problem. Did you work out on your problem? If yes then post your code so we can help you. Put your source code - which is surrounded by code tag. See # icon at top of editor.

Member Avatar for kvprajapati
0
235
Member Avatar for nirvaan
Member Avatar for kizUna_rR

Policy file entry must be added with java.security at ..\lib\security\java.security file. [CODE=Java Security File] policy.url.3=file:c:/applet.policy [/CODE]

Member Avatar for kizUna_rR
0
286
Member Avatar for Vivek_1986

Here is sql statement: [CODE=VB.NET] Dim sql as String = "select count(*) from tablename" ... [/CODE] It retun zero (0) result when a table is empty.

Member Avatar for sknake
0
1K
Member Avatar for VIPER5646
Member Avatar for VIPER5646
0
87
Member Avatar for Blaine Tuisee

Assign a reference of Transaction. [CODE=C#] cmd.Transaction=txn; cmd.ExecuteNonQuery(); [/CODE]

Member Avatar for Blaine Tuisee
0
257
Member Avatar for ritu verma

I hope this code will help you. [CODE=VB.NET] Public Class Form1 Private Class CustomToolStripMenuItem Inherits ToolStripMenuItem Private m_secondaryContextMenu As ContextMenuStrip Public Property SecondaryContextMenu() As ContextMenuStrip Get Return m_secondaryContextMenu End Get Set(ByVal value As ContextMenuStrip) m_secondaryContextMenu = value End Set End Property Public Sub New(ByVal text As String) MyBase.New(text) End Sub …

Member Avatar for ritu verma
0
982
Member Avatar for sandipan.rcciit
Member Avatar for vash47

Use static modifier. [CODE=C#] namespace EGYP { public partial class menuBienvenida : Form { static principal principalForm=null; private void botonNuevo_Click(object sender, EventArgs e) { if(principalForm==null) principalForm = new principal(); principalForm.Show(); } } } [/CODE]

Member Avatar for vash47
0
112
Member Avatar for erictheking1

Welcome erictheking1. You should post your question in ASP.NET forum. Regarding to your problem you must have use javascript with RegExp (regular expression) pattern or RegularExpression Validator control.

Member Avatar for sknake
0
117
Member Avatar for krishnampkkm

Did you read this [URL="http://www.codeproject.com/KB/winsdk/overlappedio.aspx"]http://www.codeproject.com/KB/winsdk/overlappedio.aspx?[/URL]

Member Avatar for kvprajapati
0
106
Member Avatar for ejazmusavi

DataGrid cell return vaalue of DateTime datatype. You may use [CODE=C#] ... DateTime date = DateTime.Parse(total); TimeSpan ts = date.TimeOfDay; .. [/CODE] or [CODE=C#] TimeSpan ts=((DateTime)dataGridView1.Rows[i].Cells[2].Value).TimeOfDay; [/CODE]

Member Avatar for ejazmusavi
-1
96
Member Avatar for RiceFiend

My answer belongs to the post #1. >I have the Fill, Show, Remove, and Find functions working properly, but I cannot get my WriteToFile function to work. I know that there is a problem involving WriteToFile("Success"); 1. WriteToFile is not a member function and its argument datatype mismatch. [CODE=C++] iInfo.WriteToFile("Success"); …

Member Avatar for RiceFiend
0
257
Member Avatar for tulipputih
Member Avatar for MashMeli

Sort property requires a column/field name on which sorting can be done. [CODE=ASP.NET] dv.Sort = "NOID"; // NOID is a field/column name [/CODE]

Member Avatar for kvprajapati
0
81
Member Avatar for ranialexander

Welcome ranialexander. Post your source code. Please use bb code tags when you post your source code. In code editor - # icon represent code and /code tag. Your source code must be surrounded with code tag.

Member Avatar for kvprajapati
0
74
Member Avatar for giritej

Welcome giritej. This is VB.NET forum and your question is regarding to web - ASP.NET. You should have to post your problems in appropriate forum. If you are not familiar with ASP.NET then purchase some books, read them and implement them carefully. And also do not forget to read [URL="http://www.daniweb.com/forums/announcement61-3.html"]announcement …

Member Avatar for kvprajapati
0
155
Member Avatar for mundetas

Use DisplayMember & ValueMember properties while binding datasource to combobox. [CODE=C#] comboBox1.DataSource = dt; comboBox1.DisplayMember = "Title"; comboBox1.ValueMember = "ID"; [/CODE]

Member Avatar for kvprajapati
0
69
Member Avatar for nithy_compvue

String function crypt — One-way string encryption (hashing) and Cryptography Extensions.

Member Avatar for parottamaster
0
56
Member Avatar for Redserpent

>I have a button that when clicked will play an mp3 in windows media player. Did you code? If yes then post it with error description. If no, then use MCI - Media Control Interface window api. To learn more about MCI - read MSDN online pages. Here is a …

Member Avatar for kvprajapati
0
391
Member Avatar for farahshafilla

Try to understand this code - It's string operation. [CODE=JSP] String old="GB0001"; // Assume that this value is come from Database int no=Integer.parseInt(old.substring(2,6)); no++; String format="%04d"; String newstr="GB" + String.format(format,no); System.out.println(newstr); [/CODE]

Member Avatar for kvprajapati
0
98
Member Avatar for Cman2020

[QUOTE=Cman2020;895911]Hello guys this is kind of crazy to ask but i need to know where to locate sqlDataAdapter, sqlConnectio, and datagrid i have looked all the tookbox all i have under data: is datagrdview,dataset, blindingnavigator, pointer, and bindingsource do anyone know where to find the listed item above please and …

Member Avatar for Ramy Mahrous
0
128
Member Avatar for clutchkiller

Move file pointer to the end of file using seekg(); use tellg() to get the length of file. Create char pointer variable; allocates memory to accomodate file content (i.e. length of file). Move file pointer to begin of file and start to read character by character using get() till end …

Member Avatar for siddhant3s
0
176
Member Avatar for manutd4life

>when trying to add i got this error: No value given for one or more required parameter at Sys.. Can you show us your table structure of Details table?

Member Avatar for kvprajapati
0
117
Member Avatar for spidermite

Welcome Spidermite. [CODE=PHP] <?php foreach($_POST['fruit'] as $field => $value) { echo $field, $value; echo "<br />"; } ?> [/CODE]

Member Avatar for kvprajapati
0
126
Member Avatar for CodeBoy101
Member Avatar for manojjena1982

Did you work out? If show post your problem. [URL="http://developers.facebook.com/"]Use facebook API [/URL]

Member Avatar for kvprajapati
0
65
Member Avatar for Traicey

I think poster want to learn something but he/she doesnot know how to learn and where to learn? >Do you know - SQL and PL (Structured Query Language and PL)? No Your select query answered this: (FROM clause is missing) [CODE=C#] string sql = "Select LoanID, BookID, MemberID, LoanDate, ReturnDate, …

Member Avatar for kvprajapati
0
130

The End.