5,346 Posted Topics
Re: komathipriya Please do not resurrect old threads.If you have any questions please ask. You are welcome to start your own threads. Thread Closed. | |
Re: [b]>If runtime error occur then who find and sent error to the user?[/b] Common Language Runtime services (Code Manager API). | |
Re: [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]? | |
Re: 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] | |
Re: Have a look at this article - [url]http://www.silverlightshow.net/items/Simple-Line-Chart-with-Silverlight-1.1-part-1.aspx[/url] | |
Re: [b]>my question is how to get message box at server side...[/b] Nope. You can't. | |
Re: Use [B]xmlDoc.WriteTo()[/B] method. | |
Re: [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] | |
Re: 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. | |
Re: 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. | |
Re: [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] | |
Re: [b]>Has anyone seen or heard of this.[/b] Googled it please. | |
Re: 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. | |
Re: 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. | |
Re: [b]>Socket programming[/b] Read about WCF (windows Communication Framework). | |
Re: IE - User interface uses UTF-8 character set. | |
Re: [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 … | |
Re: [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 … | |
| |
Re: 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] | |
Re: [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). | |
Re: [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); … | |
Re: Take a look at this thread - [url]http://www.daniweb.com/forums/post1223037.html#post1223037[/url] | |
Re: 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] | |
Re: 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] | |
Re: Please use **"Flag Bad Post"** option to notify moderators that post is in wrong section/missing code-tags and assigned moderator will correct it. | |
Re: 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] | |
Re: [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] | |
Re: Take a look at - [url]http://en.wikipedia.org/wiki/.NET_Compact_Framework[/url] | |
Re: >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. … | |
Re: **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] | |
Re: 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] | |
Re: [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. | |
Re: [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. | |
Re: [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? | |
Re: 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] | |
Re: 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] | |
Re: Take a look at this tutorial - [url]http://www.dotnetspider.com/resources/5814-Draw-circle-using-VB-Net.aspx[/url] | |
Re: [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 … | |
Re: 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); } … | |
Re: Don't use AutoGeneratedColumns. Configure GridColumns manually. | |
Re: [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] | |
Re: [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. | |
Re: [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. | |
Re: 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. | |
Re: [code] listBox2.Items.AddRange(listBox1.SelectedItems.Cast<object>().ToArray()); listBox1.SelectedItems.OfType<object>().ToList().RemoveAll((p) => { listBox1.Items.Remove(p); return true; }); [/code] | |
Re: 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!!! | |
Re: [code] Dim path="c:\folderName" Shell("c:\windows\explorer.exe" & " " & path) [/code] | |
Re: Take a look at [url]http://en.wikipedia.org/wiki/Boolean_logic[/url] and [url]http://en.wikipedia.org/wiki/Boolean_data_type[/url] | |
Re: @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. |
The End.