5,346 Posted Topics
Re: [b]>Can Anyone help me in creating custom controls to add or remove textboxes dynamically.[/b] Show us your code please. Do you know how to add controls dynamically onto the page? | |
Re: @GAME Post your code here and someone will help you. | |
Re: Welcome Kishor20. Before commencing the journey to develop a project you must have a decent understanding of the .net framework, C# language and other technologies. So I'd rather suggest you dig deep into your mind to find concepts/ideas that you really find your natural interest in. There are many open … | |
Re: Show us your code work please. Please use BB code tags while posting source program. [noparse] [code] .... [/code] [/noparse] Take a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules.[/URL] | |
Re: [QUOTE]Any one know the root cause for this and sollution?[/QUOTE] Please show us your code so we can help you on that issue. | |
Re: Welcome. Crystal report has not been changed much from VS2005/VS2008. Take a look at this tutorial : 1. [url]http://msdn.microsoft.com/en-us/library/ms227881(v=VS.90).aspx[/url] 2. [url]http://www.techtutorials.net/tutorials/databases/crystal_reports.html[/url] | |
Re: Please post exception stack trace or code snippet and have a look at - [URL="http://naudio.codeplex.com/"]NAudio[/URL] API. | |
Re: [QUOTE]Can anyone pls help how to dispose objects by my own. i.e i should not allow the garbage collector to dispose my object automatically when object is out of scope, instead it should leave the job of disposing the object to me whenever i need.[/QUOTE] First of all, your classes … | |
Re: >but I'm running into a wall when it comes to having the foreign key from my child table autopopulate the primary key from the parent table. No auto populate! You need to populate it manually. Read "[URL="http://msdn.microsoft.com/en-us/library/ks9f57t0(v=VS.90).aspx"]Retrieving Microsoft Access Autonumber Values[/URL]" - article from MSDN. | |
Re: [b]How are iterators used in C# ?[/b] Text from MSDN [URL="http://msdn.microsoft.com/en-us/library/dscyy5s0(v=VS.90).aspx#Y600"]article [/URL]:- [QUOTE]An iterator is a method, get accessor, or operator that performs a custom iteration over an array or collection class by using the yield keyword.[/QUOTE] [QUOTE]I understand it's common to use the foreach with C# arrays/containers, but I … | |
Re: Is this you buddy! - [url]http://www.daniweb.com/forums/thread334504.html[/url] [QUOTE]i have been asking this question every time.[/QUOTE] Asking same question multiple time is against the forum rules. Please tell us how this question is different than previous one. | |
Re: Try this, [code] <%@ Page Language="VB"%> <%--AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"--%> <%@ Import Namespace="System.Data.Oledb" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> Private Sub Page_Load() If Not IsPostBack Then BindGrid() End If End Sub Sub BindGrid() Dim connection As OleDbConnection connection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\Users\emong\Documents\Visual Studio 2008\WebSite3\App_Data/dbLupon.mdb") connection.Open() Dim … | |
Re: Should [URL="http://msdn.microsoft.com/en-us/library/ms190273.aspx"]be[/URL], [code] string q = "ALTER TABLE [abc] add " + textbox1.Text+ " Varchar(20)"; [/code] | |
| |
Re: Double Thread - [url]http://www.daniweb.com/forums/thread343219.html[/url] Thread Locked | |
Re: Use CheckedItems property. [code] for (int i = 0; i < myCheckedListBox.CheckedItems.Count ; i++) { MessageBox.Show(myCheckedListBox.CheckedItems[i].ToString()); } [/code] | |
Re: Try this, [code] Sub Main() Dim count As Integer = Me.songList.Count Dim lst As New List(Of Integer) For i As Integer = 1 To count lst.Add(i) Next Dim rnd As New Random Dim ind1, ind2, tmp As Integer For i = 1 To count ind1 = rnd.Next(count) ind2 = rnd.Next(count) … | |
Re: >What is the normal procedure for the layout? Start through table (html) tag. | |
Re: Use [b]return[/b] statement. [code] public void test() { //code if(test_your_condition) { return; } //code } [/code] | |
Re: >The method returns only the first argument which is the path of the application. Of course the first argument will be a path and next will be a name of asso file. Please show us signature of Main() method. | |
Re: [QUOTE]Is there an easy way to display an MHT file in a .NET/C# web page?[/QUOTE] Have a look at [URL="http://stackoverflow.com/questions/4705139/how-to-load-mht-from-stream-string-into-a-webbrowser-control"]this[/URL] thread. | |
Re: [code] System. System.Text.StringBuilder sb = new System.Text.StringBuilder(); for (int i = 1; i <= 10; i++) { sb.AppendLine(string.Format("Value : {0}", i)); } MessageBox.Show(sb.ToString()); [/code] | |
Re: You just have to select domain name, and hosting plan (according to your webapp). | |
Re: Session will allow us to store values into server location (memory) per user and programmable web-pages get or set these values. You can't use session with html web-pages. To set value, [code] Session("key1")=1000 Session("name")="Mr. A" [/code] To get value, [code] if Not IsNothing(Session("key1")) Then dim no as integer = Session("key1") … | |
Re: >But I am unable to do so. So you have a problem on adding reference of external component (dll). Isn't it? Just copy that .dll file into [b]Bin[/b] under the root of your web-app. | |
Re: Have a look at this [URL="http://stackoverflow.com/questions/1304536/settings-settings-connectionstring-in-development-vs-production"]thread.[/URL] | |
Re: [CODE]how to create an exe of a windows project tat contains database and runs well when installed on target or client machine which contains no sql server installed...... [/CODE] Articles: 1. [URL="http://msdn.microsoft.com/en-us/library/aa983326(v=VS.90).aspx"]How to: Deploy a SQL Server Compact 3.5 Database with an Application[/URL] 2. [URL="http://msdn.microsoft.com/en-us/library/bb264562(SQL.90).aspx"]Embedding SQL Server Express into Custom … | |
Re: Please have a look at scottgu's blog - [URL="http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx"]Tip/Trick: Url Rewriting with ASP.NET[/URL] | |
Re: I'd suggest ErrorProvider control. [code] ... if (GetCompareResult()) { errorProvider1.Icon = new Icon(@"C:\path\correct.ico"); } else { errorProvider1.Icon = new Icon(@"C:\path\incorrect.ico"); } errorProvider1.SetError(button1 , string.Empty); ... [/code] | |
Re: Try this, [code] <asp:RegularExpressionValidator ID="revTime" runat="server" ControlToValidate="txtTime" ErrorMessage="Time interval must be between 00:00 and 23:59" ValidationExpression="^(?:0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$" Display="Dynamic" /> [/code] | |
Re: Try this, [code] public partial class Form1 : Form { public Form1() { InitializeComponent(); } private const int WM_NCHITTEST = 0x84; private const int HTCLIENT = 0x1; private const int HTCAPTION = 0x2; protected override void WndProc(ref Message message) { base.WndProc(ref message); if (message.Msg == WM_NCHITTEST && (int)message.Result == HTCLIENT) … | |
Re: C# syntax: [code] if(Session["login name"]!=null) { string name=Session["login_name"].ToString(); if(name=='put_text_here') { } } [/code] | |
Re: Have a look at codeproject [URL="http://www.codeproject.com/KB/menus/PopulatingMenuControlASP2.aspx"]article[/URL], hope it helps you. | |
Re: Add/set primary key/unique key column in EmpReg table. | |
Re: >I have a brain injury which causes memory problems and makes it very difficult for me to program Dear jasper54321, I'm so sorry to hear that. I am sending you healing energies (Faith) and trust that you will be well and cured. ;) >The plan is to make a small … | |
Re: @royspiegel Asking help via email is against forum rule. Please read the rules before posting again, in particular the 'keep it organized' one - '[B]Do not ask anyone (member or moderator) for help by email or PM[/B]'. If you hit 10 infraction points your account gets an automatic ban, so … | |
Re: Take a look at this thread to [URL="http://stackoverflow.com/questions/354664/executing-a-jar-on-vista-with-a-double-click"]fix[/URL] the [URL="http://stackoverflow.com/questions/394616/running-jar-file-in-windows"]file[/URL] association. | |
Re: Have a look at Eclipse documentation - [URL="http://help.eclipse.org/helios/topic/org.eclipse.wst.doc.user/topics/overview.html"]Web Tools Platform User Guide[/URL] | |
Re: No worries! Steps: 1. Open VS2005/2008/2010 + Create New + WebSite 2. F5 or Debug Menu to run your dynamic web-pages (.aspx is dynamic webpage) | |
Re: >What I want is that I want to copy that tables records in to excel sheet. Using VB.net or ASP .Net or VBA. Of course. You can use [URL="http://htmlagilitypack.codeplex.com/"]html agility pack[/URL] to parse html page. | |
Re: [QUOTE=acehats;1451804]hi can you help me? i need a code or the syntax on how to connect parallel port to vb.net please reply as possible, i need it badly. thanks'[/QUOTE] Take a look at - [url]http://www.codeproject.com/KB/vb/Inpout32_read.aspx[/url] | |
Re: >My needs are that I need to access my website and log in to my account to check my stats. Classes of System.Net (WebClient, WebRequest and many more) are very handy to handle web request and responses but I'd suggest [URL="http://en.wikipedia.org/wiki/Web_service"]web-service[/URL] method. You may write some web-service methods and use … | |
Re: Take a look at - [url]http://www.gimp.org/downloads/[/url] | |
Re: >please anybody solve my query. Please post your code here so somebody can help you. | |
Re: Welcome to the Daniweb. Please use BB code tags while posting source program. Use (cast) operator. `Console.WriteLine("High = {0} {1}", myDiff, (int)myDiff ); ` | |
Re: Try this, [code] fileName = "test.jpg" newFileName = "test.ico" Dim bmp as System.Drawing.Bitmap= System.Drawing.Image.FromFile(fileName, true) Dim ico as System.Drawing.Icon = System.Drawing.Icon.FromHandle(bmp.GetHicon()) Dim icofs as Stream = File.Create(newFileName) ico.Save(icofs) icofs.Close() [/code] | |
Re: >Embedded statement cannot be a declaration or labeled statement Error says that embedded statement must be enclosed by {}. [code] foreach (Form form in Application.OpenForms) { if (form is productResults) { productResults pr =(productResults)form; } } [/code] | |
Re: [QUOTE=NitendraTRIC;1450211]i m creating one project in vb.net i m taking database msaccess. i m able to insert update delete when i m taking single table.but i m facing problem with multiple tables which is related to each other how to define the relationship between tables in dataset and how to … | |
Re: Maybe you are looking for this - [url]http://msdn.microsoft.com/en-us/magazine/cc188710.aspx[/url] or [URL="http://code.google.com/p/elmah/"]this[/URL] for web-app. | |
Re: @bhagvatshindhe ;-( What do you want from me? Do you really want to be ban? Please read the rules before posting again, in particular the '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 … |
The End.