5,346 Posted Topics
[B]Happy Diwali (17th Oct 2009) to daniweb members[/B] [B]Diwali [/B]- The festival of lights. [B]Diwali [/B]or [B]Deepavali [/B]is a significant festival in Hinduism, Buddhism, Sikhism, and Jainism, and an official holiday in India. They light diyas cotton string wicks inserted in small clay pots filled with oil to signify victory … | |
Re: Set [B]AutoPostBack=True[/B] of Textbox8 control. | |
Re: Show us your code. Please read online MSDN pages - [url]http://msdn.microsoft.com/en-us/library/system.io.aspx[/url] | |
Re: [code] for i as integer=1 to 10 step 1 Dim lab as new Label lab.Text="Some text" me.Controls.Add(lab) end for [/code] | |
Re: Have you tried [B]SilverLight[/B]? SilverLight has the ability to write rich client side controls in .Net. | |
Re: Never use ADODB (ancient oledb api). Use ADO.NET Data [URL="http://msdn.microsoft.com/en-us/data/dd363565.aspx"]provider[/URL] classes. | |
Re: Please attach [B]XML[/B] document along with code you have written so far. | |
Re: Walkthrough: Editing an Access Database with [URL="http://msdn.microsoft.com/en-us/library/ms971485.aspx"]ADO.NET[/URL] | |
Re: Take a look at - [url]http://www.codeproject.com/KB/IP/popapp.aspx[/url] | |
Re: Have you used Parametrized query? Please post your code here. | |
Re: Please check out this thread - [url]http://www.daniweb.com/forums/thread241852.html[/url] | |
Re: Use classes from the System.Runtime.Emit namespace to create an executable on-the-fly. | |
Re: Please always verify the presence of an object. [code] DataRowView rv=((DataRowView)projectBindingSource.Current).Row; Int32 myID=0; if(rv!=null) myID = Convert.ToInt32(rv.ItemArray[0]); [/code] | |
Re: [code] Dim connetionString As String Dim sqlCnn As SqlConnection Dim sqlCmd As SqlCommand Dim sql As String connetionString = "data source=infinitySH-PC; initial catalog=Human_Resource_Management;" & "integrated security=true" sql = "Select Sum(MTD_Value) from PCB_Est Group by Employee_ID" sqlCnn = New SqlConnection(connetionString) sqlCnn.Open() sqlCmd = New SqlCommand(sql, sqlCnn) Dim sqlReader As SqlDataReader = … | |
Re: [code] <a href="javascript:void open('default.aspx','_new');">Click</a> [/code] | |
Re: Please read this thread - [url]http://stackoverflow.com/questions/2322427/what-is-software-escrow-is-software-escrow-something-you-want[/url] | |
Re: Correction: [code] ...... var query = from r in listRunner //orderby r.Time //select r; select new { r.Name, r.Time, r.Age }; dataGridView1.DataSource = query.ToList(); } [/code] | |
Re: Use List<String> to hold one or more values. [code] List<string> data=new List<string>(); private void button1_Click(object sender, EventArgs e) { data.add(TextBox1.Text) TextBox1.Cler(); } [/code] Get value/text from [b]data[/b] collection: [code] String c1=data[0]; String c2=data[1]; [/code] | |
Re: [b]>Does it mean that I need to use ADO.net?[/b] ADO.NET is the [B]core[/B] database integration class library and you must have to learn. [b]>my textbook doesn't mention ADO.net[/b] That's true. Many text books uses simple, code less approach. Take at look at this articles/blog posts : 1. [url]http://msdn.microsoft.com/en-us/library/ms973824.aspx[/url] 2. [url]http://www.startvbdotnet.com/ado/simplebinding.aspx[/url] … | |
Re: Use SELECT with WHERE clause. [code] SqlCommand command = new SqlCommand("select username from [user] where username=@Username" , cn); command.Parameters.AddWithValue("@UserName", username); object result=command.ExecuteScalar(); if(result!=null) // found { //Given username is found return; } .... [/code] | |
Re: Use [B]TotalHours, TotalMinutes, and TotalSeconds[/B] properties. [code] ... string timeElapsed = String.Format("{0} Hours, {1} Minutes, {2} Seconds", Math.Floor(duration.TotalHours), Math.Floor(duration.TotalMinutes), Math.Floor(duration.TotalSeconds); .... [/code] | |
![]() | Re: Please read MSDN article - Developing [URL="http://msdn.microsoft.com/en-us/library/6hws6h2t.aspx"]Custom Windows Forms Controls[/URL] with the .NET Framework. ![]() |
Re: [code] select * from SMST as p where p.Source=@Source AND ( p.Destination=@Destination OR p.Destination2=@Destination) AND (p.sourceRoadCount+p.middleroadcount+p.destinationroadcount+p.x1destinationroad2count)>=4 from SMST [/code] | |
Re: Set DataSource (Instance of DataSet) [code] myAdapter.Fill(myDataSet, "procName"); myRpt.SetDataSource(myDataSet); CrystalReportViewer1.ReportSource = myRpt; [/code] | |
Re: albay, Please do not resurrect threads that are years old. By doing so you run the risk of confusing current posters.Have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. | |
Re: Steps: 1. Open ".rpt" in design view. 2. Right mouse click on any section area + Design + Printer Setup + Set Size | |
Re: Use custom [URL="http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx"]Date/Time[/URL] format string. | |
Re: Take a look at this tutorial - [URL="http://www.dreamincode.net/forums/showtopic37361.htm"]http://www.dreamincode.net/forums/showtopic37361.htm[/URL] | |
Re: [b]>I heard that in order to sell a software created using VB, we must buy a license from Microsoft.[/b] You don't need any type of license. Read this thread -http://www.daniweb.com/forums/thread285976.html (Reselling your own work is totally up to you. You own that code. You decide how to sell it.) | |
Re: USe [B]Server.UrlDecode[/B] method. [code] String text = Server.UrlDecode("http://somthing/data/images/Sonali%20&%20Co/"); [/code] | |
Re: There are two methods: 1. Before deletion of a row of primary key table remove all rows from the foreign key tables. 2. Use "CASCADE" delete rule while adding "Relations". | |
Re: There are two same named database files (other .sdf is located under bin folder). Please use absolute path of database. [code] conn = new SqlCeConnection(@"Data Source=c:\folder1\Database1.sdf; Persist Security Info=False"); [/code] | |
Re: [B]Row[/B] isn't member of GridViewEditEventArgs. Use [B]e.NewEditIndex[/B] property [code] if (GridView1.Rows[e.NewEditIndex].RowType==DataControlRowType.DataRow) { GridView1.Rows[e.NewEditIndex].Attributes["key_here"] = "value"; } [/code] | |
Re: Please take a look at this thread - [url]http://www.daniweb.com/forums/post1369188.html#post1369188[/url] | |
Re: Sample.aspx [code] <form id="form1" runat="server"> <div> </div> </form> [/code] Sample.aspx.cs [code] protected void Page_Load(object sender, EventArgs e) { TextBox tx = new TextBox(); tx.ID = "txt1"; form1.Controls.Add(tx); Button b1 = new Button(); b1.ID = "btn1"; form1.Controls.Add(b1); b1.Click += (s, args) => { TextBox t = (TextBox)FindControl("txt1"); Response.Write(t.Text); }; } [/code] … | |
Re: Read this tutorial - [url]http://p2p.wrox.com/content/articles/creating-simple-web-based-calculator-aspnet-4[/url] | |
Re: You need to assign role while creating a new user. Handle the CreatingUser event of CreateUserWizard. Sample.aspx [code] .. <asp:RadioButtonList ID="RadioButtonList1" runat="server"> <asp:ListItem>Admin</asp:ListItem> <asp:ListItem>Member</asp:ListItem> </asp:RadioButtonList> <br /> <br /> </asp:Panel> <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" oncreatinguser="CreateUserWizard1_CreatingUser"> <WizardSteps> <asp:CreateUserWizardStep runat="server" /> <asp:CompleteWizardStep runat="server" /> </WizardSteps> </asp:CreateUserWizard> .. [/code] .cs (There are two roles … | |
Re: To build web-application, you must have sound knowledge of html,css,javascript, .net framework, and C# language. Please read these blog posts 1. [url]http://mashable.com/2010/09/18/web-developer-tips/[/url] 2. [url]http://www.onextrapixel.com/2010/07/20/planning-designing-a-custom-web-app/[/url] PS: Do use clear and relevant titles for new threads | |
Re: Remove this - [CODE]Dim result As Object = cmd.ExecuteScalar()[/CODE] statement. | |
Re: I think you should go with interfaces. Have a look at this code-snippet. [code=C#] public interface IUser { void Show(); } public interface IOperator : IUser{ void Add(); } public interface IAdmin : IOperator{ void Edit(); void Delete(); } public class YourClassApp : IAdmin { .... } [/code] [code] Public … | |
Re: Excellent article by Rick Strahl : [URL="http://www.west-wind.com/presentations/aspnetecommerce/aspnetecommerce.asp"]Integrating Electronic Payment Processing into ASP.NET Web Applications[/URL] | |
Re: You can install and deploy ASP.NET webapp on server via an easy setup program. Take a look at blog post by Scott Guthrie - Tip/Trick: Creating [URL="http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx"]Packaged ASP.NET Setup Programs[/URL] with VS 2005 | |
Re: +1 AndreRet - DateTimePicker.Value property. [code] .... Dim cmdtotalsei As New OleDb.OleDbCommand() cmdtotalsei.CommandText="select count(cod_seizure) from seizure where seizure_date between @dt1 and @dt2" cmdtotalsei.Connection=conn cmdtotalsei.Parameters.AddWithValue("@dt1",DateTimePicker1.Value) cmdtotalsei.Parameters.AddWithValue("@dt2",DateTimePicker2.Value) .... [/code] | |
Re: Use List(OF ) generics instead of Arrays. [code] .... Dim list1 As New List(Of String) Dim list2 As New List(Of String) Dim lines As String() = System.IO.File.ReadAllLines("sample.txt") For Each Str As String In lines Dim arr As String() = Str.Split(New String() {","}, StringSplitOptions.RemoveEmptyEntries) list1.Add(arr(0)) list2.Add(arr(1)) Next .... [/code] | |
Re: I think some more information is required. Post XAML markup. Maybe you can unbox (typecast) the UIElement. | |
Re: Use Parameters. [code] .. cmd = conn.CreateCommand cmd.CommandText = "SELECT * FROM NCR_LOG WHERE Date BETWEEN @p1 and @p2" cmd.Parameters.AddWithValue("@p1",dtp.Value) cmd.Parameters.AddWithValue("@p2",DateTime.Now) da=new SqlDataAdapter(cmd) da.Fill(ds, "NCR_LOG") dgNcr.DataSource = ds dgNcr.DataMember = "NCR_LOG" dgNcr.ReadOnly = True .. [/code] | |
![]() | Re: +1 Momerath, well said. Arturo32, Take a look at [URL="http://www.c-sharpcorner.com/UploadFile/prathore/ImageComparison01022009050404AM/ImageComparison.aspx"]Image comparison[/URL] article. ![]() |
Re: Use DataView object: [code] Dim dv as DataView=tblPerson.DefaultView dv.RowFilter = "Name like '" & nameTextBox.Text & "%'" Me.PersonComboBox.DataSource = dv Me.PersonComboBox.DisplayMember="FirstName" Me.PersonComboBox.ValueMember="PersonID" [/code] | |
Re: Please show us your code work. You should have to use [B]Parameterized Thread[/B]. |
The End.