5,346 Posted Topics
Re: 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] | |
Re: [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] | |
Re: Use &ersand; entities. [code] submit=મોક્લશો [/code] [noparse] submit=મ ;ો ; ક ;્ ;લ ;શ ;ો ; [/noparse] | |
Re: 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] | |
![]() | Re: 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] ![]() |
Re: 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] | |
Re: Here is an example - [URL="http://www.daniweb.com/forums/thread210409-2.html"]http://www.daniweb.com/forums/thread210409-2.html[/URL] | |
Re: Use setPreferredSize method to set size (height/width) of panel. | |
Re: >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 … | |
Re: Is this "nextView4" button is child control? If so, then handles event of parent control. | |
Re: [code=asp.net] GridView1.DataSource=new String[]{TextBox1.Text,TextBox2.Text,TextBox3.Text}; GridView1.DataBind() [/code] | |
Re: Yes you can. (MustInherit, MustOverride - virtual) | |
Re: 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 … | |
Re: 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] | |
Re: 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] | |
| |
Re: 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). | |
Re: [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...... | |
Re: Datatype of amount field must be numeric. For text fields use string (text) to numeric conversion functions. | |
Re: 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] | |
Re: I didn't get you, however following are options: 1. Handles KeyDown,KeyPress events. 2. Use SendKeys.Send Method. 3. Use string indexer. | |
Re: Use manipulators. [code=cplusplus] cout << setiosflags(ios::fixed) << pow(f,n); [/code] | |
Re: 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] | |
Re: 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. | |
Re: Read this [URL="http://www.parashift.com/c++-faq-lite/templates.html"]Template FAQ[/URL] | |
Re: 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 … | |
Re: [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] | |
Re: Icon class is there. [code=c#] System.Drawing.Icon c = new Icon(@"c:\app\mapp\p1.ico"); pictureBox1.Image = c.ToBitmap(); [/code] | |
Re: Thank you very much. Very good explanation of a burning issue - [icode]undefined behaviour[/icode]. | |
Re: [code=asp.net] ddl.DataSource = dTable ddl.DataTextField = "name" ddl.DataValueField="id" ddl.DataBind() [/code] | |
Re: 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] | |
Re: 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] | |
Re: 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(); … | |
Re: A good article - [URL="http://www.codeguru.com/csharp/.net/net_general/comcom/article.php/c4617"]COM+ in .NET [/URL] | |
Re: 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. | |
Re: 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] | |
Re: Use, [code=c#] ... SendKeys.Send("{F2}"); .. [/code] | |
Re: 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] | |
Re: 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(); … | |
Re: 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) | |
Re: I think Image.FromFile() will affect the performance. Load the images into a List<> first, using a separate thread or background worker. | |
Re: Use object or embed tag. | |
Re: [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] | |
Re: ?how can I set a header and footer for each of the ....? Choose another master page for printable pages. | |
Re: 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 " << … | |
Re: [code=cplusplus] for (int i=0; getline(dict,words[i],'\n'); i++) { .. } [/code] | |
Re: >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? |
The End.