5,346 Posted Topics

Member Avatar for Damon88

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]

Member Avatar for jma2400
-1
3K
Member Avatar for Developer1

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].

Member Avatar for kvprajapati
0
34
Member Avatar for clbembry

In .NET framework 4 chart controls are now built-into ASP.NET 4 and Windows Forms 4 – which means you can immediately use them.

Member Avatar for kvprajapati
0
55
Member Avatar for Jessurider

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].

Member Avatar for kvprajapati
-1
104
Member Avatar for xxxtian

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 …

Member Avatar for kvprajapati
0
537
Member Avatar for revjim44

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 ; } …

Member Avatar for kvprajapati
0
199
Member Avatar for SoftwareGuy

>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.

Member Avatar for SoftwareGuy
0
218
Member Avatar for moone009

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]

Member Avatar for kvprajapati
0
93
Member Avatar for raj123456789

Please post the markup of .master page. Do wrap your programming code blocks within [noparse][code] ... [/code][/noparse] tags.

Member Avatar for umamahesh2020
0
87
Member Avatar for shmy789

Place GridView Control inside the Marquee tag. [code] <marquee> <GridView id="GridView1" RunAt="Server"> .... </GridView> </marquee> [/code]

Member Avatar for Fortinbra
0
114
Member Avatar for Netcode

>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]

Member Avatar for Netcode
0
103
Member Avatar for jlego
Member Avatar for airesh

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 …

Member Avatar for kvprajapati
0
98
Member Avatar for emily-bcot

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]

Member Avatar for kvprajapati
0
117
Member Avatar for roymrinal123

>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 …

Member Avatar for kvprajapati
0
72
Member Avatar for roymrinal123

>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 …

Member Avatar for kvprajapati
0
84
Member Avatar for lewis1231

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.

Member Avatar for kvprajapati
0
73
Member Avatar for lishannx

[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]

Member Avatar for fkomment
0
150
Member Avatar for Bijaya123

[QUOTE]How i can deploy an application with database.[/QUOTE] Well! what database (oracle, mysql , etc) you want to use in project?

Member Avatar for Bijaya123
0
76
Member Avatar for vbnetworker

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]

Member Avatar for vbnetworker
0
168
Member Avatar for TIP.Synergy

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]

Member Avatar for DONPAWPAW
0
5K
Member Avatar for ryathegr8
Member Avatar for ryathegr8
0
116
Member Avatar for rosstafarian

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]

Member Avatar for kvprajapati
0
209
Member Avatar for james6754

>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 …

Member Avatar for Momerath
0
141
Member Avatar for y2kshane

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]

Member Avatar for y2kshane
0
134
Member Avatar for paddypowa

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; …

Member Avatar for zachattack05
0
4K
Member Avatar for DONPAWPAW

>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.

Member Avatar for DONPAWPAW
0
334
Member Avatar for choudhuryshouvi

> 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]

Member Avatar for choudhuryshouvi
0
810
Member Avatar for steelshark

>but when i try to add that in code, it gives me an error. Post error (Exception) description and markup (.aspx) here.

Member Avatar for vadmkp
0
124
Member Avatar for front_&_center
Member Avatar for 5ophie2012

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]

Member Avatar for 5ophie2012
0
1K
Member Avatar for yHobZ16
Member Avatar for dimasalang

Take a look at [URL="http://www.codeproject.com/KB/cs/Remote_process_controller.aspx"]this[/URL] article.

Member Avatar for dimasalang
0
148
Member Avatar for chetanbasuray

>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 …

Member Avatar for Momerath
0
122
Member Avatar for 123mehran

You can use Session object to persist data between page requests or just simply use JavaScript - history.back() method.

Member Avatar for 123mehran
0
89
Member Avatar for chetanbasuray

Is this a web or win app? My answer, (1) - No bug at all. (2) - Please post exception trace here.

Member Avatar for chetanbasuray
0
403
Member Avatar for GAME

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".

Member Avatar for GAME
0
100
Member Avatar for m_priya
Member Avatar for varsha solshe

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.

Member Avatar for kvprajapati
0
65
Member Avatar for nicecandy
Member Avatar for kvprajapati
0
62
Member Avatar for nicecandy

>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)

Member Avatar for kvprajapati
0
69
Member Avatar for meghs007

>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".

Member Avatar for kvprajapati
0
93
Member Avatar for denmarkstan

>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)

Member Avatar for kvprajapati
0
143
Member Avatar for Balaji Yerukola

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]

Member Avatar for kvprajapati
0
88
Member Avatar for sweetkinjal

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).

Member Avatar for kvprajapati
0
313
Member Avatar for raygberg

Do not use ClientID with document.getElementsByName() method. [code] function ValidatePrem(source, args) { var Array1 = document.getElementsByName("rblPremModes"); ... } [/code]

Member Avatar for kvprajapati
0
108
Member Avatar for 5ophie2012

>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]

Member Avatar for 5ophie2012
0
180
Member Avatar for GAME

I'm not sure about your question but I hope you will get useful stuff from - [url]http://www.lagado.com/proxy-test[/url]

Member Avatar for kvprajapati
0
53
Member Avatar for zachattack05

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.

Member Avatar for zachattack05
1
236
Member Avatar for Shailu kumrawat

>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.

Member Avatar for kvprajapati
0
100

The End.