5,346 Posted Topics

Member Avatar for manikandan_dani

[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).

Member Avatar for manikandan_dani
0
111
Member Avatar for new_2_java

I'm glad you got it helpful. If you want to ask question, start your own thread. Thread Closed.

Member Avatar for kvprajapati
0
1K
Member Avatar for purewinz

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.

Member Avatar for kvprajapati
0
86
Member Avatar for chixm8_49

Line #7 - in.readObject() method reads something which is not belonging to Node object. Can you maybe provide some more information about class Node.

Member Avatar for kvprajapati
0
86
Member Avatar for abs0lut3z33r0

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!

Member Avatar for kvprajapati
0
70
Member Avatar for redstrykr

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.

Member Avatar for kvprajapati
0
89
Member Avatar for Tank50

Take a look at article - [url]http://support.microsoft.com/kb/834790[/url]

Member Avatar for kvprajapati
0
71
Member Avatar for Fmeub*
Member Avatar for kvprajapati
0
96
Member Avatar for informx

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]

Member Avatar for informx
0
795
Member Avatar for elcaro.miao

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)); …

Member Avatar for elcaro.miao
0
3K
Member Avatar for joannes

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(); …

Member Avatar for kvprajapati
0
2K
Member Avatar for comsci2

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]

Member Avatar for comsci2
0
2K
Member Avatar for carylle

[b]>i would like to ask how to change the row color in datagrid.[/b] Set dataGridView1.Rows[0].DefaultCellStyle.BackColor property.

Member Avatar for kvprajapati
0
75
Member Avatar for mehrdad_A

[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]

Member Avatar for mehrdad_A
0
99
Member Avatar for abhi_marichi

[b]>but I want to add "pause" & "resume" button also there....[/b] Show us your code please.

Member Avatar for abhi_marichi
0
79
Member Avatar for modalikalyani

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].

Member Avatar for kvprajapati
0
38
Member Avatar for emilio

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].

Member Avatar for emilio
0
157
Member Avatar for rajani mayekar

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?

Member Avatar for kvprajapati
0
286
Member Avatar for Chander Kararia

[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]

Member Avatar for kvprajapati
0
60
Member Avatar for wisorac
Member Avatar for kvprajapati
0
2K
Member Avatar for kvass

[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 …

Member Avatar for kvprajapati
0
117
Member Avatar for k4utoall

[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>

Member Avatar for kvprajapati
0
76
Member Avatar for riahc3
Member Avatar for kvprajapati
0
41
Member Avatar for mikeandike
Member Avatar for sid1

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]

Member Avatar for kvprajapati
0
54
Member Avatar for dr.e

[code] DataGridView1.Item(0, 0).Value = ds2.Tables("tabCeniki").Rows(i).Item(0) [/code]

Member Avatar for dr.e
0
99
Member Avatar for 786979

[b]>but i recieve this error: Syntax error in update statement[/b] Maybe .mdb file is read-only or hasn't write permission.

Member Avatar for kvprajapati
0
99
Member Avatar for stumbler

[b]>Is there a possibility to do the same in .net 2.0?[/b] You can use classes of System.Drawing.Printing namespace.

Member Avatar for stumbler
0
81
Member Avatar for eaon21

[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.

Member Avatar for Geekitygeek
0
233
Member Avatar for carylle

[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), …

Member Avatar for carylle
0
96
Member Avatar for SgtKung

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 …

Member Avatar for kvprajapati
1
110
Member Avatar for ajitkumar26

[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.

Member Avatar for mitulmodi.rcc
0
61
Member Avatar for abarlowa

for number format use ToString("N2") and currency format use ToString("C2"). [code] Console.WriteLine("Your total is " + TotalCost.ToString("N2")); [/code]

Member Avatar for abarlowa
0
158
Member Avatar for team_ferrari22

[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]

Member Avatar for kvprajapati
0
114
Member Avatar for Pari13

[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.

Member Avatar for kvprajapati
0
5K
Member Avatar for abarlowa

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]

Member Avatar for abarlowa
0
1K
Member Avatar for kananpatel

Read [URL="http://blog.stevex.net/string-formatting-in-csharp/"]string formatting[/URL] article.

Member Avatar for kvprajapati
0
134
Member Avatar for jungujchoi
Member Avatar for kvprajapati
0
38
Member Avatar for kalpa23

[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.

Member Avatar for kvprajapati
0
106
Member Avatar for jacksonp

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.

Member Avatar for kvprajapati
0
82
Member Avatar for ravik123

[b]>Is it possible in asp.net[/b] Yes. Read CodeProject article - [url]http://www.codeproject.com/KB/aspnet/daypilot2.aspx[/url]

Member Avatar for kvprajapati
0
43
Member Avatar for Michaeloco

[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]

Member Avatar for kvprajapati
0
67
Member Avatar for marcoiu

[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].

Member Avatar for kvprajapati
0
80
Member Avatar for JAM1011

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]

Member Avatar for JAM1011
0
93
Member Avatar for antihero0021

Line #17 : Curly braces are missing. [code] while(reader.Read()) { .... } [/code]

Member Avatar for antihero0021
0
482
Member Avatar for dsit86

[b]>.net emulator cannot understand the ''localhost'' url. Is there a solution to this?[/b] Use actual host name instead of localhost.

Member Avatar for dsit86
0
108
Member Avatar for sidlampard

[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 …

Member Avatar for kvprajapati
0
717
Member Avatar for TechSupportGeek

Font and Color property aren't text (string) [code] RichTextBox1.Font=new Font(fontName,10) RichTextBox1.ForeColor=Color.fromName(txtColor) [/code]

Member Avatar for TechSupportGeek
0
243
Member Avatar for srinkhal.halder

[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]

Member Avatar for kvprajapati
0
58
Member Avatar for angelp1000
Member Avatar for kvprajapati
0
50

The End.