5,346 Posted Topics
Re: Take a look at tutorials: 1. [url]http://net.tutsplus.com/tutorials/other/build-a-shopping-cart-in-aspnet/[/url] 2. [url]http://articles.sitepoint.com/article/net-shopping-cart-datatables[/url] 3. [url]http://forums.asp.net/t/1413686.aspx[/url] 4. [url]http://www.codeproject.com/KB/user-controls/shopcart.aspx[/url] | |
Re: [code] public partial class Form1 : Form { Thread thread; public Form1() { thread = new Thread(run); thread.Start(); } ConectadoThread socketConectado; public void run() { socketConectado = new ConectadoThread(); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { socketConectado.close(); } } [/code] | |
Re: @isitha Welcome to the Daniweb Post your programming code here. Do wrap your programming code blocks within [noparse][code] ... [/code][/noparse] tags | |
Re: [b]>where i tell the place to save there?[/b] [code] workbook.SaveAs(@"c:\test\folder\MyExcelWorkBook.xls", Excel.XlFileFormat.xlXMLSpreadsheet, missing, missing, false, false, Excel.XlSaveAsAccessMode.xlNoChange, missing, missing, missing, missing, missing); [/code] | |
Re: Do not assign value to auto-incr column. [code] System.Data.DataTable dt = new System.Data.DataTable(); dt.Columns.Add("SrNo", typeof(int)); dt.Columns.Add("Name"); dt.Columns["SrNo"].AutoIncrement = true; dt.Columns["SrNo"].AutoIncrementSeed = 1; dt.Columns["SrNo"].AutoIncrementSeed = 1; dt.PrimaryKey = new System.Data.DataColumn[] { dt.Columns["SrNo"] }; System.Data.DataRow r = dt.NewRow(); r["Name"] = "foo"; dt.Rows.Add(r); r = dt.NewRow(); r["Name"] = "bar"; dt.Rows.Add(r); foreach (System.Data.DataRow r1 … | |
Re: Welcome BleepyE. Read the forum rules. You need to show effort, and what better way than posting the code that you have tried so far? [URL="http://www.daniweb.com/forums/announcement61-2.html"]Homework policy[/URL] | |
Re: Read MSDN doc - [URL="http://msdn.microsoft.com/en-us/library/y8fyz6xy(v=VS.90).aspx"]How to: Handle Concurrency Errors[/URL]. | |
Re: Correct me if I'm wrong. Use DropBox or Windows Live SkyDrive. | |
Re: List of popular CMS/Framework: 1. [URL="http://umbraco.org/"]Umbraco[/URL] 2. [URL="http://www.dotnetnuke.com/"]DotNetNuke[/URL] 3. [URL="http://n2cms.com/"]N2[/URL] 4. [URL="http://www.mojoportal.com/"]mojoPortal[/URL] 5. [URL="http://webmasterformat.com/tools/cms/kentico"]Kentico[/URL] 6. [URL="http://www.sitefinity.com/"]SiteFinity[/URL] 7. [URL="http://webmasterformat.com/tools/cms/orchard"]Orchard[/URL] | |
Re: [code] dim path= System.IO.Directory.GetCurrentDirectory() [/code] [code] dim path = System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName) [/code] | |
Re: [code] static void Main(string[] args) { string[] values = { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A" }; string[] suits = { "â™ ", "♦", "♣", "♥" }; string[] draw = { "A â™ ", "A ♦", "K ♦", "K ♥", "A ♥" }; Boolean threeOf … | |
Re: I think you have to use [URL="http://msdn.microsoft.com/en-us/library/ms147890(v=SQL.90).aspx"]sync[/URL] using [URL="http://msdn.microsoft.com/en-us/library/ms345154(v=sql.90).aspx"]Replication[/URL]. | |
Re: Change: select [COLOR="Red"]c_id[/COLOR] FROM customer ORDER BY c_id [code] Private Sub FillCombo() Dim adp As New SqlDataAdapter ds = New DataSet adp.SelectCommand = New SqlCommand adp.SelectCommand.Connection = myConnection adp.SelectCommand.CommandText = "select * FROM customer ORDER BY c_id" Try adp.Fill(ds) ComboBox1.ValueMember = "c_id" ComboBox1.DataSource = ds.Tables(0) ComboBox1.SelectedIndex = 0 Catch ex … | |
Re: [URL="http://en.wikipedia.org/wiki/Immutable_object"]Text[/URL] from the [URL="http://blogs.msdn.com/b/ericlippert/archive/2007/11/13/immutability-in-c-part-one-kinds-of-immutability.aspx?wa=wsignin1.0"]MSDN[/URL] blog by Eric Lippert [quote] There’s nothing you can do to the number one that changes it. You cannot paint it purple (‡), make it even or get it angry. It’s the number one, it is eternal, implacable and unchanging. Attempting to do something to it … | |
Re: playerDataGridView.DaaBind() method is missing. [code] private void btnBattingAverage_Click(object sender, EventArgs e) { var Players = from player in database.Players where player.BattingAverage >= decimal.Parse(txtMin.Text) && player.BattingAverage <= decimal.Parse(txtMax.Text) select player; List<Player> FindBy = Players.ToList(); playerDataGridView.DataSource = FindBy; playerDataGridView.DataBind(); } [/code] | |
Re: Change select statement: [code] select * from [sheet1$] [/code] Take a look at : [url]http://www.daniweb.com/forums/thread221141.html[/url] | |
Re: I think there is a problem/conflicts with [b]IDs[/b] of DOM. | |
Re: [b]>But after clicking it is giving alert message. why?[/b] JavaScript code will is executed when the result of requested page returned to the web-browser.. | |
Re: You should revise sql select statement. [icode]SELECT UserType FROM UserAccounts[/icode] will fetch all five rows. | |
Re: Post the work you have done so far for this assignment. Someone will help you with the places you are stuck. Please read the best [URL="http://www.eternallyconfuzzled.com/tuts/datastructures/jsw_tut_bst1.aspx"]article/post/tutorial[/URL] I have ever read & seen. | |
Re: Try to [URL="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=CC96C246-61E5-4D9E-BB5F-416D75A1B9EF&displaylang=en"]re-install[/URL] report viewer. | |
Re: [b]>But if I delete a record, I first have to close the application...[/b] After the deletion, re-bind combo. | |
| |
Re: [code] void ButtonInsert(object s, EventArgs e) { string connectionString = null; OleDbConnection connection; OleDbCommand cmd = new OleDbCommand(); string sql = null; connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;data source=Book.mdb"; connection = new OleDbConnection(connectionString); sql = "INSERT INTO Books (BookKey, Title, Pages, AuthorKey, PublisherID) Values (@BookKey, @Title, @Pages, @AuthorKey, @PublisherID)"; cmd.CommandText = sql; cmd.Connection … | |
Re: Text from MSDN online [URL="http://msdn.microsoft.com/en-us/library/ydy4x04a.aspx"]page[/URL]. [quote] This directive can be used only in Web Forms pages. You can include only one @ Page directive per .aspx file. Further, you can define only one Language attribute per @ Page directive, because only one language can be used per page. .... [/quote] | |
Re: Handle mouseClick event. [code] private void pictureBox1_MouseClick(object sender, MouseEventArgs e) { int x=e.X; int y=e.Y; } [/code] | |
Re: [b]>But how can I do it here?[/b] You can use Session object in asp.net to save the state/data. | |
Re: Take a look at this thread - [url]http://www.daniweb.com/forums/thread235307.html[/url] Please read the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL] before posting again, in particular the 'keep it Organized' and 'Keep it Clear'. If you hit 10 infraction points your account gets an automatic ban, so it is worth obeying the rules if you want to continue to … | |
Re: You need to call - SubmitChanges() method of DataContent Class. | |
Re: Use String.Format() [URL="http://msdn.microsoft.com/en-us/library/b1csw23d.aspx"]method[/URL]. Example [code] System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 10, 20)); System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 20, 2)); System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 4, 10)); [/code] | |
Re: Use [URL="http://www.microsoft.com/downloads/en/details.aspx?familyid=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en"]ILMerge[/URL]. | |
Re: Project [URL="http://www.mono-project.com/Main_Page"]Mono[/URL]. | |
Re: Read value from excel sheet from the cell "cell [5,2]" and assign it to "final" variable when you start program each time. | |
Re: To execute DataAdapter's command queries (Insert/delete/update), you need to issue "Update" method of DataAdapter but here is quite different story. Please refer follow code snippet. [code] void ButtonDelete(object s, EventArgs e) { DataRow selectedRow = setdata.Tables[0].Rows[listBox1.SelectedIndex]; string connectionString = null; OleDbConnection connection; OleDbCommand cmd = new OleDbCommand(); string sql = … | |
Re: Here is a great link of [URL="http://msdn.microsoft.com/en-us/library/h43ks021(v=vs.71).aspx"]ADO.NET[/URL] documentation/tutorials. | |
Re: Help us to help you. Members. Please use feature "Flag Bad Post" to inform the team of moderators about violation of any rule; for example, posting in wrong forum, program code without code-tags, copyright-infringing, fake signatures etc. Read [Daniweb Member Rules](http://www.daniweb.com/forums/faq.php?faq=daniweb_policies). Thanks. | |
![]() | Re: Good post from Momerath. I'd like to suggest the use of Invoke and Thread's sleep methods. [code] private void button1_Click(object sender, EventArgs e) { Action a = () => { foreach (char ch in textBox1.Text) { System.Threading.Thread.Sleep(100); textBox2.Focus(); SendKeys.SendWait(ch.ToString()); } }; textBox1.Invoke(a); } [/code] ![]() |
Re: >When you start the report, you see a page with several comboboxes...? Will you post code of your project? | |
Re: You are right Alex and I agree. What I think that the pain points in ASP.NET MVC are setting up the models - models validation. | |
Re: Use if..elseif.. Correct code: [code] //-------------------------- debug purposes Console.WriteLine("category entered is: {0} ", category ); //----------------------------- if (category == 1) { store.Category = ItemCategory.Women; } else if (category == 2) { store.Category = ItemCategory.Girls; } else if (category == 3) { store.Category = ItemCategory.Men; } else if (category == 4) … | |
Re: Wrong connection string [code] MyConnection = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFileName=" & data_base) [/code] | |
Re: you might want to read some Q&A/tutorials: 1. [url]http://social.msdn.microsoft.com/forums/en-US/csharplanguage/thread/da07aa55-678b-46e2-b057-58ca7d7172c5[/url] 2. [url]http://www.codeproject.com/KB/cs/gameoflife2lifewars.aspx[/url] 3. [url]http://msdn.microsoft.com/en-us/library/aa302318.aspx[/url] 4. [url]http://www.codeproject.com/KB/cs/GameOfLifeMultipleInherit.aspx[/url] | |
Re: Take a look at MSDN tutorial - [url]http://msdn.microsoft.com/library/7tas5c80(en-us,vs.80).aspx[/url] and ddanbe's thread - [url]http://www.daniweb.com/forums/thread224588.html[/url] | |
Re: [b]>Does ASP and .NET support this and does anyone know if its compatible with php?[/b] Yeah! Here it is. [url]http://sourceforge.net/projects/csphpserial/[/url] | |
Re: [b]>Please help me out in providing connection string for the SQL datasource [/b] You have to store the connection strings into a web-config or any text/xml document. | |
Re: [b]>But i want them to hit a button so after hitting the button the list view appears?plz help[/b] So you need to handle click event of button. Put necessary code inside the handler of button control. | |
Re: Please ask specific questions.If you Google you could easily find the answer. 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]~ if you run into problems and want to ask for help here. | |
Re: Use [URL="http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.powerpacks.printing.printform.aspx"]PrintForm[/URL] control. | |
Re: [b]>The "id" suddenly changing automatically. [/b] Its difficult to imagine what's happening. Please post complete code. | |
![]() | Re: [b]>what am I supposed to do?[/b] What did you expect it to do? Purchase some good books and to start learning .net framework and C# language. Post the work you have done someone will help you with the places you are stuck. |
The End.