5,346 Posted Topics
Re: Use OwnerDraw property and DrawItem event. Take at look at this article - [URL="http://www.code-magazine.com/article.aspx?quickid=0303032&page=3"]http://www.code-magazine.com/article.aspx?quickid=0303032&page=3[/URL] | |
Re: Nope!. No need to change. There are number of blog frameworks. Have a look at this [URL="http://stackoverflow.com/questions/408212/best-net-blog-engine"]thread[/URL]. | |
Re: In .NET framework 4 chart controls are now built-into ASP.NET 4 and Windows Forms 4 – which means you can immediately use them. | |
Re: Please read [URL="http://channel9.msdn.com/coding4fun/articles/Computer-Controlled-RC-Car-with-Camera"]this[/URL] article and visit Microsoft [URL="http://www.microsoft.com/robotics/"]Robotics Studio[/URL]. | |
Re: OUTPUT parameter must be accessed after the execution of SP is finished. [code] con.Open(); cmd.ExecuteNonQuery(); con.Close(); id = Convert.ToInt32(bookidparam.Value); [/code] You can also call a SP from another SP. SP - GetSquare [code] CREATE PROCEDURE GetSquare @no int , @square int OUTPUT AS set @square=@no*@no RETURN [/code] SP - Call … | |
Re: You need to use List<T> instead of string array. [code] List<String> data = new List<string>() { "First", "Second", "Third", "Fourth" }; private void button1_Click(object sender, EventArgs e) { data.RemoveAt(comboBox1.SelectedIndex); // or data.Remove(comboBox1.Text); comboBox1.DataSource = null; comboBox1.DataSource = data; } private void TestOne_Load(object sender, EventArgs e) { comboBox1.DataSource =data ; } … | |
Re: >Can anyone tell me how to remove that checkbox from the panel through the Designer UI? Correct me if I'm wrong. When you dragged a "checkbox" in designer (view) mode outside that panel, code [icode]this.panel1.Controls.Add(this.checkBox1);[/icode] will be removed automatically from the designer.cs. | |
Re: Create batch file and run it from within the program. batch file (c:\p.bat) [code=text] d: cd\rplcarts\createprogram createprogram.exe file.xml [/code] To run batch ffile [code] System.Diagnostics.Process.Start(@"c:\p.bat"); [/code] | |
Re: Please post the markup of .master page. Do wrap your programming code blocks within [noparse][code] ... [/code][/noparse] tags. | |
Re: Place GridView Control inside the Marquee tag. [code] <marquee> <GridView id="GridView1" RunAt="Server"> .... </GridView> </marquee> [/code] | |
Re: >how do i specify a file size Use FileUpload1.FileBytes.Length property > file tyoe to be uploaded. Have a look at FileUpload1.PostedFile.ContentType [code] if(FileUpload1.PostedFile.ContentType=="image/jpg") { } [/code] | |
Re: I think this is VB6 question. isn't it? | |
Re: Hi guys! If you are not aware of "SQL Injection" please read [URL="http://msdn.microsoft.com/en-us/library/ms161953.aspx"]this[/URL] article or just [URL="http://en.wikipedia.org/wiki/SQL_injection"]google[/URL] it. Do not use SQL query by concatenating hard-coded strings because this way malicious code is inserted into sql strings. Do use [B]Type-Safe [/B]SQL Parameters. [code] Dim Cnn as New SqlConnection() Dim Cmd … | |
Re: Have a look at MSDN page about - [URL="http://msdn.microsoft.com/en-us/library/89211k9b(v=VS.90).aspx"]Protecting Connection Information (ADO.NET)[/URL] | |
Re: >How we can Upload data from Excell to our Access database through VB .NEt Please Help me I think you want to read excel file and store them into access database. You have to use System.Data.OleDb classes to read excel file (sheet) and also to write data (rows) into Ms-Access … | |
Re: >How we can show data from acess database in datagrid First of all you need to use System.Data.OleDB provider classes to have database connection and select statement result. [code] Dim CnStr as String="Connnection_string_here" Dim Sql as String="Select * from tableName" Dim Adp as new OleDBDataAdapter(sql,CnStr) Dim Dt as new DataTable … | |
Re: You have to look at [URL="http://blogs.msdn.com/b/jitghosh/archive/2007/11/30/demo-live-streams-in-silverlight.aspx?wa=wsignin1.0"]SilverLight[/URL] or [URL="http://www.aspnetmedia.com/"]Flash[/URL] based technique. | |
Re: [b]>drag button into picturebox.[/b] You can drag/drop the data from source control to the destination control. Take a look at this article - [url]http://msdn.microsoft.com/en-us/library/aa289508%28VS.71%29.aspx[/url] | |
Re: [QUOTE]How i can deploy an application with database.[/QUOTE] Well! what database (oracle, mysql , etc) you want to use in project? | |
Re: Use Split method of string object. [code] Dim name() As String = TextBox1.Text.Split(New String() {vbCrLf}, StringSplitOptions.RemoveEmptyEntries) Dim phone() As String = TextBox2.Text.Split(New String() {vbCrLf}, StringSplitOptions.RemoveEmptyEntries) [/code] | |
Re: Use Parameters. [code] Dim myConn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../lms/DBLMS.mdb") Dim item As Integer myComm = New OleDbCommand("UPDATE tblVehicles SET Vehicle_Type =@p1, Vehicle_Model =@p2,Plate_No =@p3,Date_Acquired =@p4 WHERE Vehicle_Id = @p5", myConn) myComm.Parameters.AddWithValue("@p1",cboVehicle_Type.Text) myComm.Parameters.AddWithValue("@p2",txtVehicle_Model.Text) myComm.Parameters.AddWithValue("@p3",txtPlate_No.Text) myComm.Parameters.AddWithValue("@p4",dtpDate.Value) myComm.Parameters.AddWithValue("@p5",txtVehicle_Id.Text) myConn.Open() item=myComm.ExecuteNonQuery() myConn.Close() [/code] | |
Re: Correction: String str1 = Session["UName"].[B]ToSt[COLOR="Red"]r[/COLOR]ing()[/B]; | |
Re: Take a look at [URL="http://www.fmsinc.com/microsoftaccess/query/snytax/update-query.html#UPDATE_Query_SQL_Syntax"]Update statement[/URL] syntax. Always use Parameters. [code] Dim updatecmd As OleDb.OleDbCommand = New OleDb.OleDbCommand("Update CustomerDetails SET Surname =@surname,Gender =@gender,FirstName = @firstname,Address1 = @address1, address2 = @address2 where Reference=@reference", updatecon) updatecmd.Parameters.AddWithValue("@surname",txtSurname.Text) .... [/code] | |
Re: >What I am struggling to get my head around is WHAT an object actually is You can say - An object is a collection of bytes or partitioned area of memory. Some systems ([URL="http://msdn.microsoft.com/en-us/library/f144e03t.aspx"]Garbage collection[/URL] for [URL="http://msdn.microsoft.com/en-us/magazine/bb985010.aspx"].net[/URL] app) allocates areas of storage in the heap. These areas of storage define … | |
Re: Line #7 and #8 : Use Parenthesis () for accessing elements from an array in VB.NET [code] For c3 = 0 To 14 If temp < mark_value(c3) Then grade=Grade_value(c3) End If Next [/code] | |
Re: Have you ever noticed that a [b]WHERE[/b] clause is missing. [code] string username = txtUser.Text; string password = txtCurrPass.Text; string newPassword = txtNewPass.Text; string confNewPassword = txtConfirmNewPass.Text; string sqlquery = "UPDATE [users] SET password=@newpass where username=@username AND password=@password"; SqlCommand cmd = new SqlCommand(sqlquery, cn); cmd.Parameters.AddWithValue("@newpass",txtConfirmNewPass.Text); cmd.Parameters.AddWithValue("@username",txtUser.Text); cmd.Parameters.AddWithValue("@password",txtCurrPass.Text); cmd.Connection = cn; … | |
Re: >my question is how to set the report to automatically pick the size of the small id card. You have to perform printer settings. Right mouse click on crystal report sheet + Design + Printer Setup + Set Paper size. | |
Re: > is there any option available in the web.config file for disabling caching Configure the OutputCacheSection. It is used to configure app-scope settings. Have a look at MSDN article - [URL="http://msdn.microsoft.com/en-us/library/ms178606(VS.80).aspx"]Cache Configuration in ASP.NET [/URL] | |
Re: >but when i try to add that in code, it gives me an error. Post error (Exception) description and markup (.aspx) here. | |
Re: [b]>where does my dbase info go in the code?[/b] Line #35. | |
Re: To count words in a string use Split method and to count number of lines in a file use [b]File.ReadAllLines()[/b] method. [code] linecount = System.IO.File.ReadAllLines(@"C:\file.ext").Length; [/code] | |
Re: You can do so using JavaScript or jQuery(JavaScript Framework). | |
Re: Take a look at [URL="http://www.codeproject.com/KB/cs/Remote_process_controller.aspx"]this[/URL] article. | |
Re: >I need to check if the internet connection is open Use Ping from System.Net.NetWorkInformation namespace. [code] try { Ping ping = new Ping(); string host = "daniweb.com"; int timeout = 4000; PingReply reply = ping.Send(host, timeout); if (reply.Status == IPStatus.Success) { MessageBox.Show("Ok!"); } else { MessageBox.Show("Sorry!"); } } catch (Exception … | |
Re: You can use Session object to persist data between page requests or just simply use JavaScript - history.back() method. | |
Re: Is this a web or win app? My answer, (1) - No bug at all. (2) - Please post exception trace here. | |
Re: The [b]GetElementsByName("ptz_value")[/b] return a [b]NodeList[/b] object (collection of nodes). Traverse that collection and I'm sure you will get "Text". | |
Re: Steps: 1. Design the itemTemplate and use Eval() method to bind data source elements. 2. In code-begind, set DataSource property and invoke Databind() method. | |
Re: Please post your code here and explain what kind of problems you are facing with iTextsharp. | |
Re: >how can i publish my ASP.net web service to the cloud and consume it from any where i want. Azure (Microsoft project). Have a look at these articles: 1. [url]http://forums.asp.net/t/1414126.aspx[/url] (thread) 2. [url]http://msdn.microsoft.com/en-us/magazine/dd569759.aspx[/url] (article) 3. [url]http://www.informationweek.com/news/services/hosted_apps/showArticle.jhtml?articleID=208700713[/url] (article) 4. [url]http://blogs.msdn.com/b/freddyk/archive/2010/12/01/connecting-to-nav-web-services-from-the-cloud-part-1-out-of-5.aspx?wa=wsignin1.0[/url] (article) | |
Re: >how can i make sms selector(or SMS TEMPLATE) like way2sms.com ?? No doubt at all. Use HTML/JavaScript/CSS >Which is best ListView or GridView or AnyOther??? Choose "GridView". | |
Re: >i find it difficult to add mssql dbs to asp.net website when i am using vs2008. Steps: 1. Create/open a "WebSite" 2. Select WebSite menu 3. Select Add New Item 4. SQl Server Database (.mdf) | |
Re: Welcome @Balaji Yerukola First of all tell us what is the version of IIS you have? Also read these blog posts: 1. [URL="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b344f84e-bc77-4019-859c-9d483bc85c77.mspx?mfr=true"]Configuring IIS Logs (IIS 6.0)[/URL] 2. [URL="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/823670b2-d7a6-4cbc-88e5-64c59dcb9105.mspx?mfr=true"]Checking the IIS Logs (IIS 6.0)[/URL] | |
Re: Welcome @sweetkinjal Please take a look at this tutorial from asp.net [URL="http://www.asp.net/security/tutorials/an-overview-of-forms-authentication-vb"]An Overview of Forms Authentication[/URL] (Form Authnetication and Authorization). | |
Re: Do not use ClientID with document.getElementsByName() method. [code] function ValidatePrem(source, args) { var Array1 = document.getElementsByName("rblPremModes"); ... } [/code] | |
Re: >Am I calling the method correctly? Ok! but you can avoid the use of [b]ref[/b] argument. [code] WriteByte(ch,writer); .... .... void WriteByte(char ch,Writer writer) { .... } [/code] | |
Re: I'm not sure about your question but I hope you will get useful stuff from - [url]http://www.lagado.com/proxy-test[/url] | |
Re: You can manage those things by creating wrapper class. Have a look at [URL="http://msdn.microsoft.com/en-us/library/bb264562(v=sql.90).aspx"]this [/URL](msdn) article. | |
Re: >plz sir help to ,how code to login form with database and chage to password with to similar to pc Welcome. First of all you need to start to learn ADO.NET - a database connectivity API of .net framework. Purchase good books or read MSDN online ADO.NET pages. |
The End.