5,346 Posted Topics

Member Avatar for pandeyprashant

Exclude autonumber column from the list. I presume that the table TestTable has three columns; ID,Name,Age where column ID is autonumbered. [code=jsp] String sql="insert into TestTable (Name,Age) values ('A',20)"; [/code]

Member Avatar for pandeyprashant
0
849
Member Avatar for ehsankhan2000

[code=jsp] .... if(role.equals("user")){ %> <jsp:forward page="user_home_page.jsp"/> <% Vector vc=new Vector(1,1); session.setAttribute("Shopping_List",vc); } else if(role.equals("admin")){ %> <jsp:forward page="admin_home_page.htm"/> <%} else out.println("<p><fontface=\"Arial\"size=\"2\" color=\"#800000\"><b>You have entered incorrect logon information. Please enter correct logon details.</b></font></p>"); %> [/code]

Member Avatar for kvprajapati
0
81
Member Avatar for jaiprakash15

Use &ampersand; entities. [code] submit=મોક્લશો [/code] [noparse] submit=&#2734 ;&#2763 ; &#2709 ;&#2765 ;&#2738 ;&#2742 ;&#2763 ; [/noparse]

Member Avatar for kvprajapati
0
101
Member Avatar for pandeyprashant

In addition to the post #2 of javaAddict, you can use java.util.ResourceBundle class to read properties file. my.properties [code] emp.firstname=mr.x emp.city=abc [/code] Read properties. [code=java] ResourceBundle rb=ResourceBundle("my"); // name of property file System.out.println(rg.getString("emp.firstname"); ... [/code]

Member Avatar for kvprajapati
0
97
Member Avatar for babbu
Member Avatar for Bei_Mu_tian

Refer this link - [URL="http://www.codeproject.com/KB/COM/outlookcontacts.aspx?msg=438390"]http://www.codeproject.com/KB/COM/outlookcontacts.aspx?msg=438390[/URL]

Member Avatar for Bei_Mu_tian
0
117
Member Avatar for hjdaniel.sun

Read the manual page of mysql - [URL="http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy-cmdline.html"]http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy-cmdline.html[/URL]

Member Avatar for kvprajapati
0
67
Member Avatar for Piya27

Here is an example - [URL="http://www.daniweb.com/forums/thread210409-2.html"]http://www.daniweb.com/forums/thread210409-2.html[/URL]

Member Avatar for kvprajapati
0
100
Member Avatar for kbjustin
Member Avatar for BestJewSinceJC
0
148
Member Avatar for daviddoria
Member Avatar for manutd4life

>Connection property has not been initialized. Connection string is empty. [code=c#] Dim com As New OleDbCommand Dim con as New OleDBConnection con.ConnectionString="Put_connection_string_here" com.Connection = con com.CommandText = "insert into Sales values('" & txtSalesId.Text & "','" & txtCustomerId.Text & "','" & _ txtWatchId.Text & "','" & txtDate.Text & "'," & txtQuantity.Text …

Member Avatar for manutd4life
0
109
Member Avatar for f_atencia

Is this "nextView4" button is child control? If so, then handles event of parent control.

Member Avatar for becooler
0
67
Member Avatar for ritu verma

[code=asp.net] GridView1.DataSource=new String[]{TextBox1.Text,TextBox2.Text,TextBox3.Text}; GridView1.DataBind() [/code]

Member Avatar for ritu verma
0
57
Member Avatar for daviddoria
Member Avatar for kaio-ken

SUMMARY:[icode]Some compilers for small machines, including Turbo C (and Ritchie's original PDP-11 compiler), leave out certain floating point support if it looks like it will not be needed [/icode] Read this FAQ - [URL="http://c-faq.com/fp/fpnotlinked.html"]http://c-faq.com/fp/fpnotlinked.html[/URL] The program needs the floating-point library, but the library was not linked to the program. One …

Member Avatar for kaio-ken
0
535
Member Avatar for athlon32

Here is an answer - [URL="http://www-users.informatik.rwth-aachen.de/~roberts/software.html"]3D/2D meshing program using a generalized ... It is an Open Source Free Software Library intended to provide a set of useful functions to [/URL]

Member Avatar for kvprajapati
0
103
Member Avatar for macla

Read FAQ at - [URL="http://www.cplusplus.com/forum/windows/13514/"]http://www.cplusplus.com/forum/windows/13514/[/URL] and an article at - [URL="http://www.cprogramming.com/tutorial/intro_to_ado_in_c++.html"]http://www.cprogramming.com/tutorial/intro_to_ado_in_c++.html[/URL]

Member Avatar for kvprajapati
0
64
Member Avatar for .netidiot
Member Avatar for mansi sharma
Member Avatar for simfan147

The classes of ADO.NET library are divided into two groups - 1. Provider classes - are used to connect with DB, execute queries and retrieving results. 2. Relational classes. - are used to access data. In-memory representation of data. Provider classes are depends upon the database product (oracle,mysql,ms-sql etc).

Member Avatar for kvprajapati
0
55
Member Avatar for pepemiso

[URL="http://msdn.microsoft.com/en-us/library/bb690938.aspx"]http://msdn.microsoft.com/en-us/library/bb690938.aspx[/URL] Summary: A common scenario for Windows Forms is to create a form that is formatted to resemble a paper form or a report......

Member Avatar for kvprajapati
0
241
Member Avatar for GIGAM25

Datatype of amount field must be numeric. For text fields use string (text) to numeric conversion functions.

Member Avatar for kvprajapati
0
106
Member Avatar for Nicholas Ng

USE ADO.Net providers - System.Data.OledDb. [code=vb.net] ... Dim Cn as New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\csnet\Database1.accdb") cn.Open() cn.Close() ... [/code]

Member Avatar for kvprajapati
1
84
Member Avatar for nejoj

I didn't get you, however following are options: 1. Handles KeyDown,KeyPress events. 2. Use SendKeys.Send Method. 3. Use string indexer.

Member Avatar for babbu
0
108
Member Avatar for prodigyaj

Use manipulators. [code=cplusplus] cout << setiosflags(ios::fixed) << pow(f,n); [/code]

Member Avatar for vmanes
0
123
Member Avatar for chikool

Welcome chikool, You must read, 1.[URL="http://www.daniweb.com/forums/announcement118-2.html"]Homework policy[/URL] 2.[URL="http://www.daniweb.com/forums/announcement118-3.html"]How to post source code?[/URL] 3. Title of thread must reflect your question.[URL="http://catb.org/~esr/faqs/smart-questions.html"]must read article - How To Ask Questions The Smart Way[/URL]

Member Avatar for dgr231
0
112
Member Avatar for DAWNIE

Tem, OP has Microsoft Sql Server database. OP cannot find a name of installed database. DAWNIE, You are using MS - SQL server and you have to use [B]Image[/B] field type to store file content. [B]Image[/B] Field represents array of bytes. To write file content, Use parameterized query.

Member Avatar for DAWNIE
0
2K
Member Avatar for Peter_APIIT

Read this [URL="http://www.parashift.com/c++-faq-lite/templates.html"]Template FAQ[/URL]

Member Avatar for Peter_APIIT
0
171
Member Avatar for atch

Due to Called by value arguments. Value of pointer variables (an address) being copied at formal arguments. A new storage location will be create when the value of an actual argument is passed to a formal argument of method, and modification of the formal argument does not impact the actual …

Member Avatar for kvprajapati
0
129
Member Avatar for si01

[code=c#] List<string> list = new List<string>(); list.Add("PDIA20031.MV PDIA45141.MV TIA20102.MV TICA20033.MV TICA20033.OP"); list.Add("01.62 00.83 100.76 30.58 11.22"); list.Add("01.62 00.83 100.76 30.58 11.22"); foreach(string s in list) { foreach (string ele in s.Split(' ')) Console.WriteLine(ele); } [/code]

Member Avatar for si01
0
92
Member Avatar for DdoubleD

Icon class is there. [code=c#] System.Drawing.Icon c = new Icon(@"c:\app\mapp\p1.ico"); pictureBox1.Image = c.ToBitmap(); [/code]

Member Avatar for DdoubleD
0
615
Member Avatar for Salem
Member Avatar for frk
4
585
Member Avatar for Ana D.

[code=asp.net] ddl.DataSource = dTable ddl.DataTextField = "name" ddl.DataValueField="id" ddl.DataBind() [/code]

Member Avatar for Ana D.
0
86
Member Avatar for DdoubleD

Do not create duplicate thread for the same question. [URL="http://www.daniweb.com/forums/thread210847.html"]http://www.daniweb.com/forums/thread210847.html[/URL]

Member Avatar for DdoubleD
0
174
Member Avatar for group256

Token pasting operator. [code=cplusplus] #include <iostream> using namespace std; #define paster( n,m,k ) cout << "\n" << (token##n k token##m) int main() { int token9 =30; int token8=10; paster(9,8,-); paster(9,8,+); paster(9,8,*); return 0; } [/code]

Member Avatar for group256
0
5K
Member Avatar for krokodajl

Choose Image/varbinary/blob/ole column (field) datatype. Write byte array, [code=c#] byte []b=..... System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection(); System.Data.OleDb.OleDbCommand cmd=new System.Data.OleDb.OleDbCommand("insert into tableName values (col1)", cn); cmd.Parameters.Add("col1",System.Data.OleDb.OleDbType.Binary,b.Length,"col1"); cmd.Parameters[0].Value= b; cn.Open(); cmd.ExecuteNonQuery(); cn.Close(); [/code] Read, [code=c#] ... cmd=new System.Data.OleDb.OleDbCommand("select * from tableName",cn); System.Data.OleDb.OleDbDataReader dr; dr=cmd.ExecuteReader(); while(dr.Read()) { byte []t=(byte [])dr[0]; .... } dr.Close(); …

Member Avatar for kvprajapati
0
146
Member Avatar for b0nz

A good article - [URL="http://www.codeguru.com/csharp/.net/net_general/comcom/article.php/c4617"]COM+ in .NET [/URL]

Member Avatar for kvprajapati
0
115
Member Avatar for Manjunath.G

Welcome Manjunath.G, >but the database connetion not works. what can i do for that..? 1. Look at connection string. 2. Verify that a database is installed or available.

Member Avatar for kvprajapati
0
88
Member Avatar for chirup

Here is a thread for your reference - [URL="http://www.daniweb.com/forums/thread112667.html"]http://www.daniweb.com/forums/thread112667.html[/URL] [URL="http://bytes.com/topic/asp-net/answers/313006-overlay-text-uploaded-picture"]http://bytes.com/topic/asp-net/answers/313006-overlay-text-uploaded-picture[/URL]

Member Avatar for kvprajapati
0
78
Member Avatar for Dajer
Member Avatar for Jostra

Post #2 - Improper syntax. Rows collection of DataTable uses int index argument. [code=vb.net] ... colvalue=datatable.rows(0)("column_name") lstData.items.add(colvalue) ... [/code]

Member Avatar for Jostra
0
717
Member Avatar for darab

Use TableLayoutPanel. [code=c#] int col = 5, row = 5; tableLayoutPanel1.RowCount = row; tableLayoutPanel1.ColumnCount = col; tableLayoutPanel1.AutoSize = true; TextBox[,] a = new TextBox[row, col]; for (int i = 0; i <= a.GetUpperBound(0); i++) { for (int j = 0; j <= a.GetUpperBound(1); j++) { a[i, j] = new TextBox(); …

Member Avatar for darab
0
111
Member Avatar for Srinivasa007

Use the following url pattern: //<server name or IP address>/<virtual directory or website name>/<page name.asp> Set to allow HTTP. (Windows Firewall option)

Member Avatar for kvprajapati
0
58
Member Avatar for qauaan

I think Image.FromFile() will affect the performance. Load the images into a List<> first, using a separate thread or background worker.

Member Avatar for qauaan
0
280
Member Avatar for praveenkumarm
Member Avatar for Alibeg

[B]According to wikipedia[/B]: A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed. [B]Must read article[/B]: [URL="http://en.wikipedia.org/wiki/Segmentation_fault"]http://en.wikipedia.org/wiki/Segmentation_fault[/URL]

Member Avatar for Alibeg
0
182
Member Avatar for Datsun90

?how can I set a header and footer for each of the ....? Choose another master page for printable pages.

Member Avatar for srihari.valluru
0
113
Member Avatar for mrnutty

Please elaborate your question. I don't know why you want to do this and I am not sure whether my answer will help you any. Here is a code I tested. [code=cplusplus] #include <iostream> using namespace std; class Tetris{ public: bool static drawLine(unsigned int p){ cout << "\nTest " << …

Member Avatar for mrnutty
0
142
Member Avatar for gretty
Member Avatar for gretty
0
2K
Member Avatar for DdoubleD

>When the DataSource object is created via the wizard, it will create a TextBox for "Field1", . Which application are you talking about - web or desktop?

Member Avatar for DdoubleD
0
136

The End.