5,346 Posted Topics
Re: `en-GB` is United Kigdom's culture name. Have a look at following code-snippet which returns English cultures: var list = CultureInfo .GetCultures(CultureTypes.AllCultures) .Where(x=>x.TwoLetterISOLanguageName=="en"); foreach (var cultureInfo in list) { Console.WriteLine(cultureInfo.TextInfo.CultureName); } | |
![]() | Re: skandh, Your question should be - How to display 256 color bitmap using C++ program? Use C99 - standard c++ compiler. CodeBlocks, DevC++, and Microsoft Visual C++ are free compilers. Read more about C-99 [URL="http://www.open-std.org/jtc1/sc22/wg14/"]http://www.open-std.org/jtc1/sc22/wg14/[/URL] [URL="http://siddhant3s.googlepages.com/how_to_tell_rusted_cpp.html"]http://siddhant3s.googlepages.com/how_to_tell_rusted_cpp.html[/URL] [URL="https://developer.mozilla.org/en/C___Portability_Guide"]https://developer.mozilla.org/en/C___Portability_Guide[/URL] |
Re: :) > Hi professors, Just say "Hello Friends" or "Greetings" You should have to use Oracle Java EE documentation & Java EE [5](http://docs.oracle.com/javaee/5/tutorial/doc/)/6/7 tutorials. | |
Re: Take a look at [URL="http://stackoverflow.com/questions/491578/how-do-i-convert-speech-to-text"][B]How do I convert speech to text?[/B][/URL] thread. | |
Re: Don't add columns that are already been added by `Load` method. Remove line #17 to 19. | |
Re: Great ! Do you want to grab a windows Administrator's password? or something else. | |
Re: >What I need is to filter contents in 'run-time'. set new data source. [code] Me.yourTableAdapter.Fill(Me.DataSet1.yourTable) Me.DataSet1.yourTable.DefaultView.RowFilter = "column_name='data'" yourBindingSource.DataSource = Me.DataSet1.yourTable.DefaultView Me.ReportViewer1.RefreshReport() [/code] | |
Re: > The problem every data is showing at three times Please review the query that is used to fetch result. Also verify the `Links` section of `Data Source` of CrystalReport designer. | |
Re: You've to post exception stack trace and also include <assemblies> section of web.config in your post. | |
Re: Happy new year to you too! >I am unable to run VB.Net exe file on another computer You need to learn application deployment (project deployment) strategy of .net framework. Take a look at theses MSDN pages/articles. 1. [URL="http://msdn.microsoft.com/en-us/library/wtzawcsz(v=VS.90).aspx"]Deploying Applications and Components[/URL] 2. Social MSDN [URL="http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/1ddbb099-ffab-4d5d-a4c8-454d70c846dc/"]thread [/URL]about deployment. | |
Re: You need to write JavaScript code and you will have handle some keys and focus events. I suggest to learn JavaScript via -- http://www.code.org/ or http://www.codecademy.com/ | |
Re: Use `Servlet-centric` design or select `MVC Framework` or [URLRewriterFilter](http://tuckey.org/urlrewrite/) tool (just like Apache's mod_rewrite). | |
Re: Text from [netbean's kb](https://netbeans.org/kb/docs/php/debugging.html) > To successfully debug PHP applications in the NetBeans IDE for PHP, you need to have the PHP engine, the Apache local web server, and the XDebug debugger installed and configured for PHP development. If you have difficulties getting XDebug to work, see the [NetBeans wiki](http://wiki.netbeans.org/HowToConfigureXDebug) … | |
Re: Take a look at MSDN reference [ActionLink](http://msdn.microsoft.com/en-us/library/system.web.mvc.html.linkextensions.actionlink(v=vs.108).aspx) from which you may choose appropriate syntax to send data: @Html.ActionLink("link text", "action", "controller", new { id = "123", name = "foo" }, null) | |
Re: Once you learn C# or VB.NET Language, .net framework TYPES system, HTML, CSS and JavaScript, I'm sure you can develop webapp easily. | |
Re: Welcome. I'm glad you got it helpful. If you want to ask question, start your own thread. Thread Closed. | |
Re: The `System.Array` is base/super class of array. Here you need to request a method : `a.GetValue(0)` | |
Re: Hope this will help you. [code] void CheckIt(object button) { toolStripButton1.Checked = false; toolStripButton2.Checked = false; toolStripButton3.Checked = false; ((ToolStripButton)button).Checked = !((ToolStripButton)button).Checked; } private void toolStripButton1_Click(object sender, EventArgs e) { richTextBox1.SelectionAlignment = HorizontalAlignment.Left; CheckIt(sender); } private void toolStripButton2_Click(object sender, EventArgs e) { richTextBox1.SelectionAlignment = HorizontalAlignment.Center; CheckIt(sender); } private void toolStripButton3_Click(object … | |
Re: Welcome nileshahir. What have you done so far? Post your code here and someone will help you. Do wrap your programming code blocks within [noparse][code]..[/code][/noparse] tags. Read forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL] and homework [URL="http://www.daniweb.com/forums/announcement61-2.html"]policy[/URL] here at Daniweb. | |
Re: >PS ask me about any other details, cus there is always details. Will you please? | |
Re: You need to use ASP.NET [authentication & authorization](http://www.asp.net/web-forms/overview/security) APIs. | |
Re: Whenever you post/submit the form, huge amount of data from client to server are sent and it exceed the 4 KB range(Default size of MaxRequestLength is 4 KB). One possible cause would be improper use of "ViewState". May be you can turn off ViewState for `GridView` if you dont want … | |
Re: [b]>Is there any way to read/extract data from sql server backup file without restoring it[/b] No. Backup file format is not publicly documented. | |
Re: Read this SO thread - [Whats the main difference between int.Parse() and Convert.ToInt32](http://stackoverflow.com/questions/199470/whats-the-main-difference-between-int-parse-and-convert-toint32). `Convert.ToInt32()` is a helper method that uses Int32.Parse(). | |
Re: To *escape* a single quote and other escape sequence chars, you need to use parameterized sql statement (SqlParameter, OleDbParameter etc). Using cn As New SqlConnection(cnStr) Dim sql = "INSERT INTO tableOne (col1) VALUES (@col1)" Using cmd as new SqlCommand(sql,cn) cmd.Parameters.AddWithValue("@col1","25's") cn.Open() cmd.ExecuteNonQuery() cn.Close() End Using End Using | |
Re: Have a look at tutorials - [url]http://www.beansoftware.com/ASP.NET-Tutorials/Using-Crystal-Reports.aspx[/url] | |
Re: You can populate the `DataSet` by selecting any one of .net XML API (XmlDocument (DOM), LINQ to XML or XPathNavigator). | |
Re: I guess you want to create a list of people and display this list whose birth date is equal to DateTimePicker date (day and month). I suggest you to use LINQ to XML to populate `List<Person>`. Here is a working sample : Create a TYPE Person ------------------------------------ public class Person … | |
Re: Here are my suggestions, please review your code. 1. LIKE operator cannot be used with numeric fields. In this case verify the exception log. 2. May be you need to dispose/close the connection after updation and open before you read rows. 3. Add break-points to examine the value of objects/variables … | |
Re: Use methods of [b]DateTime[/b] type. [code] val=DateTime.Now.AddMinutes(30) [/code] | |
Re: Instantiate the OleDbCommandBuilder inside the method: public static void loadTblCars() { // prepare, open and load the cars table into dataset ds1 con.Open(); sql = "SELECT * FROM tblCars"; ds1 = new DataSet(); da = new OleDbDataAdapter(sql, con); cb = new System.Data.OleDb.OleDbCommandBuilder(da); numOfRowsCars = da.Fill(ds1, "tblCars"); con.Close(); } | |
Re: [b]>How to store multiple values selected from gridview into session.[/b] Have a look. [code] ... DataTable dt=new DataTable(); if(Session["key"]==null) { dt.Columns.Add("Name"); Session["key"]=dt; } dt=(DataTable)Session["key"]; dt.Rows.Add("Sample"); ... [/code] | |
Re: > Unable to find assembly 'CreateData, Version=1.0.0.0, I think you forget to use same namespace for type - DataStructure. [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace CreateData { class Program { static void Main() { // Construct and fill the data … | |
Re: Please do not resurrect old threads. Thread Closed. | |
Re: Wrap your databinding code in page_Load handler, protected void page_load() { if(!IsPostBack) { //databinding code } } | |
Re: Members, Look at thread's start date. It was started on [B]Dec 10th, 2007[/B]. Please do not resurrect old threads. By doing so you run the risk of confusing current posters. 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: Post your problems and code work here and I'm sure someone will help you. | |
Re: Change the file format to [Excel.XlFileFormat.xlCSVWindows](http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.xlfileformat(v=office.11).aspx). | |
Re: Hi ero10, It is you?. It is it's code [CODE] <head> <script type="text/javascript"> function heisit() { if(form1["name"]["value"].length==0) return false; if(form1["address"]["value"].length==0) return false; return true; } </script> </head> ..... <form id="form1" name="form1" method="post" action="form.php" onsubmit="return heisit()" > <label> NAME: <input type="text" name="name" id="name" /> </label> <p> Address: <label> <input type="text" name="address" … ![]() | |
Re: > ive got a datagridview populated What dataSources are used to populate the DataGridView? There are number of ways to do so, 1. Compare input value against the dataSource (array,List<T>, DataTable etc) that is used to populate the DtaGridView. 2. Traverse the `DataGridView.Rows` collection (you've tried). | |
Re: 1. Create New Win Project 2. Add a class file into project - Create a sub class of DataSet [code=vb.net] Imports System.Data.DataSet Public Class DBO Inherits DataSet Private dt As DataTable Public Sub New() dt = New DataTable("Sample") dt.Columns.Add("No", GetType(Integer)) dt.Columns.Add("Name") dt.Rows.Add(1, "A1") dt.Rows.Add(2, "A2") dt.Rows.Add(3, "A3") dt.Rows.Add(4, "A4") dt.AcceptChanges() … | |
Re: [QUOTE=Krstevski;889728]Hey people... I want to delete the file from the server when he is been successfully doownloaded from the server (one-time download)... how can i this ? For send file I`m using the method transmitFile(...)... Thanks.[/QUOTE] To delete a file - use System.Io.File.Delete("absolute_filepath") method. | |
Re: @lal.ramesh We appreciate your help. Have you ever noticed that the current thread is five years old? Please do not resurrect threads that are years old. By doing so you run the risk of confusing current posters. If you have any questions please ask. You are welcome to start your … | |
Re: ayesha, Read this - [URL="http://javascript.internet.com/page-details/screen-resolution-detect-redirect.html"]http://javascript.internet.com/page-details/screen-resolution-detect-redirect.html[/URL] | |
Re: Use DataBind. [code] Public Sub RtnCmbVal() Dim conn As SqlConnection Dim str As String = "select ConsultantId, FullName from Derma_Consultants" Dim ds As New SqlDataAdapter(str, conn) Dim dt as new DataTable ds.Fill(dt) consultantcmb.DataSource=dt consultantcmb.DisplayMember=dt.Columns(1).ColumnName consultantcmb.ValueMember=dt.Columns(0).ColumnName End Sub [/code] | |
Re: Welcome anandkumarrs6. We appreciate your help. Have you ever noticed that the current thread is three years old? Please do not resurrect old threads and have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread Closed. | |
Re: You should have to include "Error/Exception" trace to your post. The error says that you've some reference variables that contains `null`. Please verify `ds` and `da` variables. Use `Using` to ensure the ADO resources are disposed properly: Using Cn As New OleDb.OleDbConnection Using Cmd As New OleDb.OleDbCommand Cn.ConnectionString = "your_connection_string" … | |
Re: Don't use *DataSource*. Use ADO.NET Provider API or Entity Data Model. Visit MSDN Pages on ADO.NET/EDM. |
The End.