5,346 Posted Topics

Member Avatar for Alex John

komathipriya Please do not resurrect old threads.If you have any questions please ask. You are welcome to start your own threads. Thread Closed.

Member Avatar for kvprajapati
0
122
Member Avatar for sureshrajanmca

[b]>If runtime error occur then who find and sent error to the user?[/b] Common Language Runtime services (Code Manager API).

Member Avatar for kvprajapati
0
100
Member Avatar for fiaolle

[b]>when I click the insert button I see in the table that the field Maker just contain NULL value.[/b] Where is [B]InsertItemTemplate[/B]?

Member Avatar for kvprajapati
0
110
Member Avatar for laghaterohan

Add following code in button's click handler. [code] DataTable dt=null; if(Session["dt"]!=null) { dt=new DataTable(); dt.Columns.Add("Col1"); dt.Columns.Add("Col2"); Session["dt"]=dt; } dt=(DataTable)Session["dt"]; dt.Rows.Add(TextBox1.Text,DropDownList1.SelectedValue); GridView1.DataSource=dt; GridView1.DataBind(); [/code]

Member Avatar for rohand
0
271
Member Avatar for skumar.snl

Have a look at this article - [url]http://www.silverlightshow.net/items/Simple-Line-Chart-with-Silverlight-1.1-part-1.aspx[/url]

Member Avatar for kvprajapati
0
89
Member Avatar for iamchamith

[b]>my question is how to get message box at server side...[/b] Nope. You can't.

Member Avatar for iamchamith
0
155
Member Avatar for sp22403
Member Avatar for Anigmalee

[b]>How to set Multiple textbox property's Readonly[/b] [code] For Each t As TextBox In Me.Controls.OfType(Of TextBox)() t.ReadOnly = True Next [/code]

Member Avatar for crazyhorse09
1
1K
Member Avatar for senthilprabhu

Please do not resurrect old threads. If you want to ask question, start your own thread. Do not hijack another thread to ask your question. Thread Closed.

Member Avatar for kvprajapati
-1
142
Member Avatar for tinanewtonart

manishwadhwa22 I'm glad you got it (Jonsca's post) helpful. Please do not hijack another thread to ask your question. If you have any questions please ask. You are welcome to start your own threads. Thread Closed.

Member Avatar for kvprajapati
0
6K
Member Avatar for tuomari

[b]>Is there ANY way to read this data from the XML file with C#[/b] Have look at code-snippet. [code] string xml = "<?xml version=\"1.0\" ?><Code><Item><Para>a1</Para><Value>10</Value></Item><Item><Para>a3</Para><Value>30</Value></Item></Code>"; XDocument x = XDocument.Parse(xml); foreach (XElement ele in x.Descendants("Item")) Console.WriteLine(ele.Element("Para").Value + " " + ele.Element("Value").Value); [/code]

Member Avatar for kvprajapati
0
201
Member Avatar for Cory_Brown
Member Avatar for kvprajapati
0
63
Member Avatar for born star

Well [B]int[/B] is an alias of [B]System.Int32[/B] type. [B]static[/B] modifier creates storage area (variable). static variables are once created/allocated and ceases to exist when the associated application application domain ceases to exist.

Member Avatar for kvprajapati
0
55
Member Avatar for jPEE

Create a library project (DLL) and paste your vb.net classes and build it. In asp.net project, add the reference of library project dll to use that compiled code in your asp.net c# application.

Member Avatar for kvprajapati
0
111
Member Avatar for pce.trial@gmail

[b]>Socket programming[/b] Read about WCF (windows Communication Framework).

Member Avatar for kvprajapati
0
33
Member Avatar for ypdev
Member Avatar for mansoorhacker

[b]>so i want them to be encrypted when stored in database and decrypted when matched at the time of user login.[/b] Use classes from System.Security.Cryptography namespace. [URL="http://en.wikipedia.org/wiki/MD5"]MD5[/URL] - Message digest example. [code] string text="samplepassword"; byte []textByteArray=System.Text.Encoding.UTF8.GetBytes(text); byte[] computeByteArray = System.Security.Cryptography.MD5.Create().ComputeHash(textByteArray); //Convert "computerByteArray" into string so we can store into db …

Member Avatar for sknake
0
78
Member Avatar for bghodsi

[B]>Access of shared member, constant member,num member or nested type through an instance; qualifying expression will not be evaluated. [/B] It's warning not an error. Method [B]Reverse[/B] is a static/shared method so it can be invoked with its [B]ClassName[/B]. However in VB.NET you can invoke shared and instance method using …

Member Avatar for kouroshnik
0
138
Member Avatar for domingo
Member Avatar for zachattack05

Have a look at these threads : 1. [url]http://vyaskn.tripod.com/passing_arrays_to_stored_procedures.htm[/url] 2. [url]http://www.sommarskog.se/arrays-in-sql-2005.html#CSV[/url]

Member Avatar for zachattack05
0
154
Member Avatar for PierlucSS

[b]>Passing Data to another page without post[/b] I guess, your application is web (it should be at asp.net forum). ....without post[B]Back[/B] or [B]post[/B] method? You can pass data from one page to another page through client (web-browser) Javascript (open(), and operner property).

Member Avatar for sknake
0
78
Member Avatar for judithSampathwa

[b]>how can i check the checkboxcolumn in a gatagrid view in C#.[/b] Binding (Bounded Columns) [code] //Click to checked/unchecked private void button1_Click(object sender, EventArgs e) { dt.Rows[0]["Status"] = !((bool)dt.Rows[0]["Status"]); } DataTable dt = new DataTable(); DataView dv; private void Form1_Load(object sender, EventArgs e) { dt.Columns.Add("No",typeof(int)); dt.Columns.Add("Status",typeof(bool)); dt.Rows.Add(1, true); dt.Rows.Add(2, false); …

Member Avatar for judithSampathwa
0
1K
Member Avatar for sanauk

Take a look at this thread - [url]http://www.daniweb.com/forums/post1223037.html#post1223037[/url]

Member Avatar for kvprajapati
0
113
Member Avatar for BDS_AT

Have a look at code, [code] DataTable dt = new DataTable(); dt.Columns.Add("Column1"); dt.Rows.Add("true"); dt.Rows.Add(false); dt.Rows.Add(true); dataGridView1.AutoGenerateColumns = false; DataGridViewCheckBoxColumn chk = new DataGridViewCheckBoxColumn(); chk.DataPropertyName = "Column1"; dataGridView1.Columns.Add(chk); dataGridView1.DataSource = dt; [/code]

Member Avatar for BDS_AT
0
2K
Member Avatar for coop123

Try to understand the use of Parameters. [code] OleDbCommand cmd=new OleDbCommand(); cmd.CommandText="insert into Transaction (vin,price,trandate,trantype) values (@vin,@price,@trandate,@trantype)"; cmd.Connection=ConnectionClass.getConnection(); cmd.Parameters.AddWithValue("@vin",VIN); cmd.Parameters.AddWithValue("@price",price); cmd.Parameters.AddWithValue("@trandate",aDate); cmd.Parameters.AddWithValue("@trantype",transType); cmd.Connection.Open(); cmd.ExecuteNonQuery(); cmd.Connection.Close(); [/code]

Member Avatar for coop123
0
111
Member Avatar for itmasterw

Please use **"Flag Bad Post"** option to notify moderators that post is in wrong section/missing code-tags and assigned moderator will correct it.

Member Avatar for finito
-1
286
Member Avatar for tanvirahmad

Parameterized query will solve your problem. [code] cn=new SqlConnection("connection_string") cmd=new SqlCommand("select * from table1 where col1=@col1",cn) cmd.Parameter.AddWithValue("@col1",textbox1.text") .... [/code]

Member Avatar for kvprajapati
0
66
Member Avatar for gabrielmusa

[b]>i can not get the value from the popup page [/b] Take a look at this thread - [url]http://www.daniweb.com/forums/thread259387.html[/url]

Member Avatar for gabrielmusa
0
97
Member Avatar for arunkumars

Take a look at - [url]http://en.wikipedia.org/wiki/.NET_Compact_Framework[/url]

Member Avatar for kvprajapati
0
147
Member Avatar for mansoorhacker

>i have recently completed a c# application. I hope, you can be able to develop more applications very soon. >after saying that now i want to build a system in which specific users have specific rights on reports,edit action on accounts and other sql related rights. Albeit this links: 1. …

Member Avatar for kvprajapati
0
284
Member Avatar for Lee21

**Alway use parameterized query.** scmd = New SqlCommand("INSERT INTO KWEEKDTL(KPIGRDEQUI) VALUES (@para1)",sqlcon) scmd.Parameters.AddWithValue("@para1",dtcheck.Rows(0).Item(5) & "' * '" & dtcheck.Rows(0).Item(8) & "'") sqlcon.Open() scmd.ExecuteNonQuery() sqlcon.Close() **How to use [code] tags?** [code] .... .... code here [/code]

Member Avatar for kvprajapati
0
106
Member Avatar for SiPexTBC

Friends, have you ever noticed that the current [B]thread is three years[/B] old? Please do not resurrect threads that are years old. By doing so you run the risk of confusing current posters and/or reopening old wounds. Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"][B]rules[/B][/URL]. [B]Thread Closed.[/B]

Member Avatar for kvprajapati
0
134
Member Avatar for Dmlang1985

[B]dakaboguy[/B] Please do not resurrect old threads. If you have any questions please ask. .... You are welcome to start your own threads. Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Thread Closed.

Member Avatar for kvprajapati
-2
213
Member Avatar for Ryoolol

[b]>Is there anywhere I can buy a very cheap server to keep my VB.NET application running 24/7?[/b] If this application is [B]Window/Desktop[/B] then I say "No". Create WCF (service app) or web application but of course you need to pay for web hosting.

Member Avatar for kvprajapati
0
116
Member Avatar for flasy12

[b]>well im hereagain with another question how do make a league table in vb 2008??[/b] I guess, you are trying to design a database table. Isn't that?

Member Avatar for kvprajapati
0
92
Member Avatar for V0idh

Have a look at, [code] List<int> nums = new List<int>(); int va; foreach (string line in alllines) { foreach (string no in line.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)) { int.TryParse(no, out va); nums.Add(va); } } Console.WriteLine(nums.Max() + " " + nums.Min()); [/code]

Member Avatar for kvprajapati
0
148
Member Avatar for dakaboguy

Your code might be, [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click da.Update(ds,"Info") End Sub [/code]

Member Avatar for dakaboguy
-1
234
Member Avatar for PDB1982

Take a look at this tutorial - [url]http://www.dotnetspider.com/resources/5814-Draw-circle-using-VB-Net.aspx[/url]

Member Avatar for Luc001
0
181
Member Avatar for dre-logics

[code] myCommand1.CommandText = "select * from table1" myCommand1.Connection = myConn myAdapter1.SelectCommand = myCommand1 myAdapter1.Fill(MyDataset1, "table1") MyDataTable1 = MyDataset1.Tables("table1") DataGridView1.DataSource = MyDataTable1 myCommand1.CommandText = "select * from table2" myCommand1.Connection = myConn myAdapter1.SelectCommand = myCommand1 myAdapter1.Fill(MyDataset1, "table2") MyDataTable2 = MyDataset1.Tables("table2") DataGridView2.DataSource = MyDataTable2 myCommand1.CommandText = "select * from table3" myCommand1.Connection = myConn …

Member Avatar for dre-logics
0
215
Member Avatar for zizi

You should have to use Dictionary. Take a look at this code snippet. [code] Dictionary<string, List<string>> dict = new Dictionary<string, List<string>>(); dict.Add("S", new List<string>() { "A","B","C","D" }); dict.Add("T", new List<string>() { "P","Q","R" }); foreach (KeyValuePair<string, List<string>> pair in dict) { Console.WriteLine(pair.Key); foreach (string item in pair.Value) Console.WriteLine("\t" + item); } …

Member Avatar for kvprajapati
0
3K
Member Avatar for grafiksinc
Member Avatar for Isaaac

[b]>There's a path of a picture stored in the database.[/b] No path. Name of images are in the tables. [b]>is it able to make sure the picture can't change?[/b] Remove this line - [code] pictureBox1.ImageLocation = strImageLocation; [/code]

Member Avatar for Isaaac
0
72
Member Avatar for Chammarox

[b]>I m not sure how to do it [/b] You better know. Execute [b]Select[/b] statement to find whether a record (value) is present in database or not. [b]>If it found same data..It should display the message...Am i right ???[/b] Of course. Put your code here if it doesn't work.

Member Avatar for Chammarox
0
128
Member Avatar for ranuvishwakarma

[b]>msg box in asp.net using c#[/b] First of all, read forum rules. If your question is belongs to asp.net(vb.net or c#) forum then post it in asp.net forum. JavaScript method [B]alert()[/B] is used to show message box.

Member Avatar for paslanmaz
0
147
Member Avatar for Chammarox

Little addition to Scott's post. [B] Session.Abandon()[/B] method cancels the current session and create a new [B][URL="http://msdn.microsoft.com/en-us/library/ms972429.aspx"]session[/URL][/B] on next request.

Member Avatar for paslanmaz
0
139
Member Avatar for jockfaire

[code] listBox2.Items.AddRange(listBox1.SelectedItems.Cast<object>().ToArray()); listBox1.SelectedItems.OfType<object>().ToList().RemoveAll((p) => { listBox1.Items.Remove(p); return true; }); [/code]

Member Avatar for finito
0
149
Member Avatar for requimrar

Error : Console.Write[COLOR="Red"]l[/COLOR]ine(player.armour); [code] Console.WriteLine(player.armour); [/code] [b]>when it does it give me 5570268 as the value EVERYTIME!!![/b] Impossible!!!

Member Avatar for requimrar
-1
140
Member Avatar for trpsjt2008

[code] Dim path="c:\folderName" Shell("c:\windows\explorer.exe" & " " & path) [/code]

Member Avatar for trpsjt2008
0
100
Member Avatar for David Mac

Take a look at [url]http://en.wikipedia.org/wiki/Boolean_logic[/url] and [url]http://en.wikipedia.org/wiki/Boolean_data_type[/url]

Member Avatar for David Mac
1
129
Member Avatar for royaloba

@shri.mca Please do not resurrect old threads. If you have any questions please ask. .... You are welcome to start your own threads. [b]>how it possible dude's [/b] [URL="http://www.google.co.in/webhp?tab=mw#hl=en&source=hp&q=Mono&aq=f&aqi=g10&aql=&oq=&gs_rfai=&fp=45b189d2bd83ff04"]It is possible.[/URL] Thread Closed.

Member Avatar for kvprajapati
0
96

The End.