5,346 Posted Topics
Re: [b]>But it is not working, How to validate the email fileld.[/b] I want to know why your code is not working. Please post source code (bean). | |
Re: I'm glad you got it helpful. If you want to ask question, start your own thread. Thread Closed. | |
Re: Welcome to Daniweb. [b]>equal size rectangle over the one clicked on but changing the stroke size? [/b] Great idea. [b]>I'm not sure on how to determine the dimensions I guess of the square clicked.[/b] contains (point) method of rectangle. | |
Re: Line #7 - in.readObject() method reads something which is not belonging to Node object. Can you maybe provide some more information about class Node. | |
Re: I'm glad you got it working. Please mark this thread as solved if you have found an answer to your question and good luck! | |
Re: DataSet has simple and straightforward method. [code] DataSet ds=new DataSet(); ds.ReadXml("file.xml"); .... [/code] Use [b][URL="http://msdn.microsoft.com/en-us/library/w67sdsex.aspx"]DataSource[/URL][/b] method to populates combobox control. | |
Re: Take a look at article - [url]http://support.microsoft.com/kb/834790[/url] | |
Re: [URL="http://msdn.microsoft.com/en-us/library/78f4aasd.aspx"]csc[/URL] | |
Re: This is triggered whenever the selection changes in the DataGridView. You could put constraints. (based upon SelectionMode). [code] private void dgSelectionChanged(object sender, EventArgs e) { if (dg.SelectedRows.Count > 0) { } } [/code] | |
Re: I would suggest to use BinaryReader/Writer or serialization. Have a look at this code: [code] public class Login { public string UserName { get; set; } public string Password { get; set; } static string path = @"c:\folder\p1.txt"; public static void WriteUser(Login obj) { BinaryWriter bw = new BinaryWriter(File.Open(path, FileMode.Create)); … | |
Re: Correction at line #2, [code] SqlDataAdapter da = new SqlDataAdapter("select * from success where au_id='" + TextBox10.Text + "'", "data source=.;initial catalog=joannes;user id=sa;password=joannes"); da.Fill(ds); if (ds.Tables[0].Rows.Count >= 0) { TextBox1.Text = ds.Tables[0].Rows[0]["au_id"].ToString(); TextBox2.Text = ds.Tables[0].Rows[0]["au_lname"].ToString(); TextBox3.Text = ds.Tables[0].Rows[0]["au_fname"].ToString(); TextBox4.Text = ds.Tables[0].Rows[0]["phone"].ToString(); TextBox5.Text = ds.Tables[0].Rows[0]["address"].ToString(); TextBox6.Text = ds.Tables[0].Rows[0]["city"].ToString(); TextBox7.Text = ds.Tables[0].Rows[0]["state"].ToString(); … | |
Re: Line # 28 - Avoid direct use of file/resource. Use following code to load image from the file. [code] Using ms As New IO.MemoryStream(IO.File.ReadAllBytes("C:\MyImage.Jpeg")) PictureBox1.Image = Image.FromStream(ms) End Using [/code] | |
Re: [b]>i would like to ask how to change the row color in datagrid.[/b] Set dataGridView1.Rows[0].DefaultCellStyle.BackColor property. | |
Re: [b]>I want to Upload and Attach my SQL server 2005 database[/b] Take a look at - [URL="http://msdn.microsoft.com/en-us/library/ms247257.aspx"]Deploying[/URL] a SQL Server Express Edition Database and [url]http://www.connectionstrings.com/sql-server-2005[/url] | |
Re: [b]>but I want to add "pause" & "resume" button also there....[/b] Show us your code please. | |
Re: Welcome, You might want to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Daniweb [/URL]rules and homework policy - [URL="http://www.daniweb.com/forums/announcement61-2.html"]We only give homework help to those who show effort[/URL]. | |
Re: Have a look at an article - [URL="http://msdn.microsoft.com/en-us/library/ms406083.aspx"]Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer[/URL]. | |
Re: Welcome, Please read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]member rules[/URL] and [URL="http://www.daniweb.com/forums/announcement61-2.html"]homework[/URL] policy at daniweb. [b]>so i want connectivity code...[/b] Be more specific. Can you maybe provide some more information about what it is you are trying to do? | |
Re: [b]>I want to click on any row & select a cell data, the moment I do this, popup window should get closed...[/b] Learn/Implement [b]window.opener[/b] JavaScript property. eg, [code] ... window.opener.document.getElementById("parentText1").value = val; window.close(); ... [/code] | |
Re: I'm glad you got it helpful. If you want to ask a question, start your own thread. Thread Closed. | |
Re: [b]>I don't understand when to make variables volatile.[/b] Declaring a [URL="http://www.javamex.com/tutorials/synchronization_volatile_java_5.shtml"]volatile[/URL] Java variable means: The value of this variable will never be [b]cached thread-locally[/b]: all reads and writes will go straight to "main memory". Access to the variable acts as though it is enclosed in a synchronized block, synchronized on … | |
Re: [b]>can you tell me which header files to inlcude for wait() and fork() system call.[/b] 1. wait() - <sys/wait.h> 2. fork() - <unistd.h> | |
Re: [b]>Easiest way to send emails in VB .NET 2005[/b] Use classes of System.Net.Mail namespace. | |
Re: [b]>Any suggestions?[/b] Exit Do | |
Re: Sid, [b]Do not use "leet" or SMS speak on a forum.[/b] [b]>so please help me how to do by using sqldatasourse[/b] Assign Select query property with following statement, [code=vb.net] str="select * from " & DropDownList1.SelectedValue [/code] [code=c#] str="select * from " + DropDownList1.SelectedValue [/code] | |
Re: [code] DataGridView1.Item(0, 0).Value = ds2.Tables("tabCeniki").Rows(i).Item(0) [/code] | |
Re: [b]>but i recieve this error: Syntax error in update statement[/b] Maybe .mdb file is read-only or hasn't write permission. | |
Re: [b]>Is there a possibility to do the same in .net 2.0?[/b] You can use classes of System.Drawing.Printing namespace. | |
Re: [b]>use of unassigned local variable..[/b] Run this code, [code] using System; public class Test{ static void Main(){ int i; i++; // You will get an error here : use of unassigned local variable.. Console.WriteLine(i); } } [/code] Local variable is initially unassigned. | |
Re: [b]>can you help me in displaying the billing reports using select statement?[/b] Of course, SELECT SQL statement is used to fetch rows from the database but you have to learn/use crystal or microsoft or open-source report writer tools. [b]>i need to display daily and monthly billing reports.[/b] Daily (date wise), … | |
Re: Line #3 - Invalid array declaration. (Remove this line) Line #4 - invalid array declaration In vb.net array, lower bound (limit) is zero (0) and value 8 is an upper bound. [code] Dim Range(8) as Integer [/code] [b]>I get the idea that I'm using the Select Case incorrectly;[/b] With each … | |
Re: [b]>I want to have a functionality to send Fax the document from my website developed in asp.net[/b] You have to use third party fax services. Take a look at [URL="http://support.microsoft.com/kb/152196"]Microsoft Fax[/URL] Server. | |
Re: for number format use ToString("N2") and currency format use ToString("C2"). [code] Console.WriteLine("Your total is " + TotalCost.ToString("N2")); [/code] | |
Re: [b]>Is there any way to convert the Sql Server 'Snapshot' files..[/b] No. Read this [URL="http://www.simple-talk.com/sql/database-administration/sql-server-2005-snapshots/"]blog[/URL]. [QUOTE] SUMMARY: Database Snapshots are a new Enterprise Edition-only tool, introduced in SQL 2005, that provide a read-only, "virtual" copy of a database, at a given point in time.[/QUOTE] | |
Re: [b]>suppose i want to display list of item name at specific portion on webpage.[/b] Use ASP.NET [b]Table[/b] or [b]GridView[/b] or [b]DataList[/b] or [b]Repeater[/b] control. | |
Re: Line #8 and #11 : Long type value cannot be converted into int (Int32) implicitly. Use Convert.Int32. Line #17. + operator concatenate two strings. [code] Console.WriteLine ("The floor is " + area + " square feet."); [/code] | |
Re: Read [URL="http://blog.stevex.net/string-formatting-in-csharp/"]string formatting[/URL] article. | |
Re: [b]>what is the best way to do it?[/b] Think about DirectX/MCI or use third party library. | |
Re: [b]>but i m looking a way to show the result in a google like format[/b] ASP.NET has complex data controls like GridView and DataList to do so. | |
Re: Read this article - Install [URL="http://learn.iis.net/page.aspx/28/install-iis-7-on-windows-vista-and-windows-7/"]IIS 7[/URL] on Windows Vista and Windows 7 PS: Run the aspnet_regiis.exe tool with administrative privileges. | |
Re: [b]>Is it possible in asp.net[/b] Yes. Read CodeProject article - [url]http://www.codeproject.com/KB/aspnet/daypilot2.aspx[/url] | |
Re: [b]>Need Help with storing CustomerId into session[/b] Session is a dictionary (Key-Value pair) page property. To store "value" at "userid" (key), [code] Session["userid"]="value"; [/code] To remove a key, [code] Session.Remove("userid"); [/code] | |
Re: [b]>How can i do it client side without postback?[/b] JavaScript. You have to handle [URL="http://www.javascripter.net/faq/ctrl_alt.htm"]mouseEvents[/URL]. | |
Re: You need to invoke [b]Read()[/b] method. [code] ... IF reader.Read() Then If IsDBNull(reader.Item(5)) = True Then txtOverBill.Text = "No Email address Provided" btnSendOverDue.Enabled = False End If End IF .... [/code] | |
Re: Line #17 : Curly braces are missing. [code] while(reader.Read()) { .... } [/code] | |
Re: [b]>.net emulator cannot understand the ''localhost'' url. Is there a solution to this?[/b] Use actual host name instead of localhost. | |
Re: [b]>using binding context with 2 tables [/b] You need to add relation between two table objects. Take a look at this sample code, [code] .... DataTable dt = new DataTable("One"); DataTable dt1 = new DataTable("Two"); DataSet ds = new DataSet(); private void Form1_Load(object sender, EventArgs e) { dt.Columns.Add("No"); dt.Columns.Add("Name"); dt.PrimaryKey … | |
Re: Font and Color property aren't text (string) [code] RichTextBox1.Font=new Font(fontName,10) RichTextBox1.ForeColor=Color.fromName(txtColor) [/code] | |
Re: [b]>how to run a 32 bit asp.net project in a 16 bit computer?[/b] No. You can't run. Take a look at - [url]http://msdn.microsoft.com/en-us/library/8z6watww.aspx[/url] | |
Re: [b]>What should i do to solve this problem[/b] Load a usercontrol each time when page is posted back. |
The End.