5,346 Posted Topics
Re: This is your post # 12 and yet your are not aware of how you post source code? Please read [URL="http://www.daniweb.com/forums/announcement18-4.html"]this[/URL] before you post any thing. | |
Re: Welcome SteveInAlabama. >I am forced by the environment to work in the same directory as other projects. Create New Project and save the project in new folder. > How do I tell Solution Explorer to include them, and how do I tell Solution Explorer not include the other modules that … | |
Re: you may try to use System.IO.StringRead object and read this object line by line and split it. I think this whould be faster ... I am guessing. | |
Re: Do you want to display crystal report programatically? If so then create instances of CrystalReportSource , CyrstalReportViewer, and DataSet classes. | |
Re: Welcome Redserpent. InputBox function returns zero length string if cancel button is clicked. Test this code: [CODE=VB.NET] Dim m As String = InputBox("enter name : ") MsgBox(m.Length) [/CODE] | |
Re: Welcome mc080201812. Before you post anything you must read [URL="http://www.daniweb.com/forums/announcement9-3.html"]How to post your problem & source code?[/URL] Source code must be surrounded with BB code tags. Your post must be moved to JSP forum. | |
Re: Welcome funwithme. Please read [URL="http://www.daniweb.com/forums/announcement61-3.html"]How to post?[/URL]. You may use request.getParameterValues() method. [CODE=JSP] <%@ page language="java" %> <% String []ar=request.getParameterValues("name"); String cmd=request.getParameter("cmd"); if(cmd==null) cmd=""; if(cmd.equals("Submit")){ for(int i=0;i<ar.length;i++) { out.println(ar[i]); } } %> <form method="post" action="page3.jsp"> <br/><input type="text" name="name"/> <br/><input type="text" name="name"/> <br/><input type="text" name="name"/> <br/><input type="text" name="name"/> <br/><input type="text" name="name"/> … | |
Re: Welcome NetGD. ReadXML method create two DataTable instances. These two DataTable instances forms a relationship. [CODE=C#] public static DataTable GetPeople() { DataSet dsStore = new DataSet(); dsStore.ReadXml("example.xml"); // Test the count of tables and a relation MessageBox.Show(dsStore.Tables.Count + " " + dsStore.Relations[0].RelationName) return dsStore.Tables["person"]; } [/CODE] [CODE=C#] private void FillList() … | |
Re: Lazy.. why dono't you read [URL="http://www.daniweb.com/forums/announcement24-4.html"]http://www.daniweb.com/forums/announcement24-4.html[/URL]. | |
Re: [QUOTE=pupilstuff;888761]hi , I have made cystal report by wizard but i want to make it through code i as using vs 2005 can anyone help me[/QUOTE] Here are the steps: 1. Create a Data Source. Create a public sub-class of DataSet. [CODE=C#] namespace dbo { public class MyDS : DataSet … | |
Re: [QUOTE=sebastian3;890776]Does anybody know to import Gmail contacts. I have downloaded a useful tutorial at : [EMAIL="http://johnvey.com/features/gmailapi/"]http://johnvey.com/features/gmailapi/[/EMAIL] which is the only one available in search engines. But it is not working !![/QUOTE] What is your problem about import gmail contracts? Can I see your code? | |
Re: Welcome waelaltaqi. You can modify line # 57 [CODE=PHP] <td><a href=\"somepage.php?customerid=$customerid\" target=\"_blank\">somepage.php</a></td> [/CODE] and write following code in somepage.php [CODE=PHP] <?php $custmerid=$_REQUEST["customerid"]; $sql="select * from yourtablename where customerid='$customerid'"; ... ... ?> [/CODE] | |
Re: >Is there any way I can select multiple items in a listview programatically in WPF? Yes. | |
Re: [QUOTE]is it possible to have Postback method on page Refresh.?? (Hold the values of a form on page refresh..!!) [/QUOTE] You want to preserve the data or state of form input tag even after the page is posted back. State management : home-made measures needed to preserve the state. Traditionally, … | |
Re: First problem at a line no 1st. Remove [COLOR="Red"]{[/COLOR]. [CODE=PHP] <?php { [/CODE] Another is : Function should be [COLOR="red"]isset(...)[/COLOR] [CODE=PHP] if(issett($mia) && in_array('firstname',$mia)) [/CODE] ![]() | |
Re: Change the query : delete from.... [CODE=PHP] $query = "SELECT FROM email_list WHERE id = $delete_id"; [/CODE] | |
Re: Here is a problem: Use \r instead of \n. [CODE=C++] data = Tokenize(s, '\r'); [/CODE] | |
Re: >whether i hv to write a connection code in (1) execute method in Action class, OR in (2) servlets, OR in (3) seperate DAO class Option is (3) DAO class. DAO class is an implementation of Model of MVC. Servlet and struts never involve in design of Model classes. - … | |
Re: Here are some steps: 1. Open Excel document using MS-Office API. 2. Open MySql Database connection. 3. Read one after one cell and form a record. 4. Prepare a command object. 5. Execute the query. 6. Go to step 2 till excel sheet has data. If you are having source … | |
Re: Maximum value is to stored with int type is 2147483647. So, you cannot use value of int type. Tryout this code: [CODE=Java] long value=1; for(int i=1;i<=31;i++) { value=value * 2; System.out.println(i + " " + value); } [/CODE] | |
Re: [QUOTE=gitech;890615]Hai friends, i want to invoke .net webservice([url]http://www.meizlik.com/Service.asmx[/url]) in java, how can i invoke, pass parameters to get result. please help me for this problem.[/QUOTE] If you are intermediate with java then try to create a project in NetBean and add webservice client code snippet. Use url with WSDL parameter. … | |
Re: [QUOTE=krishnampkkm;889855]hii How to open a directory using createfile() ? Any idea..? Thanking you.[/QUOTE] Use FILE_FLAG_BACKUP_SEMANTICS flag. | |
Re: Read [URL="http://in.php.net/mcrypt"]http://in.php.net/mcrypt[/URL]. | |
Re: Your Debug\Bin or Release\Bin folder is a deployment folder. However, you may create a setup using Visual Studio using : 1. File + New Project + Other Project Types + Setup Project template. 2. Copy content of ..\bin> to the application folder 3. Create shortcut icons. 4. Build it. | |
Re: >I uploaded all my files through Cpanel to my public_html root folder and set my permissions but my page is still not displaying when I type in the URL. 1. Did you check .htaaccess? 2. Did you know whether nameserver ip is assigned or not. >I have another domain name … | |
Re: [QUOTE=ritu verma;890084]I have a treeview with two nodes..I m showing the contextmenu when the user clicks on any portion of treeview .... [code] Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try Dim N As New TreeNode() Me.TreeViewCategories.Nodes.Clear() With Me.TreeViewCategories.Nodes N = .Add("", … | |
Re: This is your post no 4th. You haven't follow the rules; How to place source? Please read [URL="http://www.daniweb.com/forums/announcement9-3.html"]http://www.daniweb.com/forums/announcement9-3.html[/URL]. Source code must be surrounded with CODE tags. [CODE=C#] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace DBApp { public partial class Form1 … | |
Re: Set Database file property from properties windows: Copy To Output : Copy if newer | |
Re: Welcome IfNot. Use title attribute of HTML tag to show a tool tip. | |
Re: meb111>I need to know the [COLOR="Red"]HWND [/COLOR]of a window. It's a Window data type. CreateWindow or CreateWindowEx() function returns a window handle that uniquely identifies the window. A program uses this handle to direct their actions to that window. >but i dont know how to get that. Through FindWindow or … | |
Re: Welcome navachaitanya. Read [URL="http://www.daniweb.com/forums/announcement18-4.html"]How to post?[/URL]. Your code should be surrounded by BB Code Tags. [CODE=VB.NET] Private Sub UpdateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UpdateButton.Click Try Dim com As New OleDbCommand com.Connection = con com.CommandText = "Update Details Set CUSTOMERNAME= '" & TextBoxcname.Text & "',CUSTOMERNO= '" & … | |
Re: [QUOTE=sam023;887889]Hello I want to get response or content of a url..!!! [code=php] $url="http://203.142.18.33:4480/3030service/airtel.php?mobile=".$mobile."&msg=".$msg."&from=".$from; $file=file($url) ; print_r($file); [/code] but i got an error [function.file]: failed to open stream: HTTP request failed- Response of the file..!! with file_get_contents it showing same error..!! is there any method other to get the response..!! with … | |
Re: [QUOTE=themaster;886395]Does anyone know how to give a GUI look to your C++ "Console Application". I cannot use Win32 API or any other template except the console application because I use Turbo C++ 3.0 IDE for development and I want my Application to be platform independent while using WIN32 API will … | |
Re: Welcome ubest25. Please read [URL="http://www.webdeveloper.com/forum/showthread.php?t=197290"]this.[/URL] | |
Re: Welcome mccs. This is your first post and it is very impressive. You missed Submit Button and also "fruits" is an array and its elements should be written into a table. [CODE=PHP] <?php $cmd=$_REQUEST["cmd"]; // If submit button is pressed if(isset($cmd)) { $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not … | |
Re: Your source code should be surrounded by BB code tags. [CODE=Jsp] ... <script type="text/javascript"> function hyperlinkvalue(passvalue) { var hyper=passvalue; alert(hyper); document.formName.textfieldtoassignlinkdata.value=hyper; } </script> //"ref is the Arraylist" // i is the integer of for loop for(i=0;i<ref.size();i++) { %> <a href="<%=ref.get(i).toString()%>" name="<%=i%>" onclick="hyperlinkvalue("<%=ref.get(i).toString()%>")"><%out.println(ref.get(i).toString()); %></a> <% } %> [/CODE] | |
Re: There are two copies of your database. One which is located in project-solution folder and another is at debug\bin folder. The path you mentioned is target to debug\bin folder. Database file added with project consider as a resource and VS creates a copy of database to the debug\bin folder. To … | |
Re: As you said that you are familiar with PHP/MySql then read this tutorial at [URL="http://www.joomla.org/about-joomla/getting-started.html"]http://www.joomla.org/about-joomla/getting-started.html[/URL] | |
Re: Will you post complete error message description? What does your application do? | |
Re: Headers must be written to the response before the any statement write anything to response. | |
Re: urlencode function: [CODE=PHP] <a href="yourpage.php?gallery=<?php echo urlencode("Sand_&_Surf");?>">HM</a> [/CODE] | |
Re: How many times a pointer operator can appear with pointer to pointer declaration. [CODE=C] int a; int *p; int **q; int ***r; int ****s; .... p=&a; q=&p; r=&q; s=&r; ... [/CODE] Is there any limit imposed by ANSI? | |
Re: This is your 11th post and still you have no idea how to post source code? Please read [URL="http://www.daniweb.com/forums/announcement17-4.html"]http://www.daniweb.com/forums/announcement17-4.html[/URL] You should paste your code in BB tags [CODE=PHP] <?php $query= mysql_query(" SELECT * FROM office WHERE officeID='" . $_GET['officeID'] . "'"); while($entry=mysql_fetch_array($query)) { echo "<br/>Name : $entry[name]"; echo "<br/>Location : … | |
Re: Ajax Controls at [URL="http://www.codeplex.com"]http://codeplex.com[/URL] | |
Re: This is 32nd Post of thacravedawg. The sun isn't up yet - Wake up and format the code I really feel like i'm missing something here... Here's what I have [CODE=ASP.NET] protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string qryString = Request.QueryString["id"]; fillContents(qryString); } } [/CODE] so … | |
Re: [QUOTE=ravi89;886726]Use built-in validators like: compare validtor RegularExpression validator[/QUOTE] Set UICulture & Culture - Globalization/Localization. [CODE=ASP.NET] <%@ Page Language="C#" .... UICulture="en-GB" Culture="en-GB" ....%> ... .. [/CODE] | |
Re: [QUOTE=lagyossarian;888071]I have a SQLDataSource that has an XML string as its data value. I want to blast out the raw XML to the webpage. How do I do that? Thanks in advance for any help or assistance.[/QUOTE] If the control is GridView/DetailsView then use BoundField and set HTMLEncode to false. … |
The End.