173 Posted Topics

Member Avatar for nezammca

try this code for which i had done in my computer i'm using textbox you can use any thing as per you want[CODE] private void BindGrid(int rowcount) { DataTable dt = new DataTable(); DataRow dr; dt.Columns.Add(new System.Data.DataColumn("TextBox1Column", typeof(String))); dt.Columns.Add(new System.Data.DataColumn("TextBox2Column", typeof(String))); dt.Columns.Add(new System.Data.DataColumn("TextBox3Column", typeof(String))); if (ViewState["CurrentData"] != null) { for …

Member Avatar for pritesh2010
0
139
Member Avatar for Vox30z

very finny and solution is also very for this try keydown event[CODE] Private Sub ComboBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown If e.KeyCode = Keys.Enter Then ComboBox1.Items.Add(ComboBox1.Text) ComboBox1.Text = "" End If End Sub[/CODE]

Member Avatar for pritesh2010
0
432
Member Avatar for AngelicOne

see this link will help you [URL="http://www.codeproject.com/KB/list/ListView_DataBinding.aspx"]Codeproject[/URL]

Member Avatar for AngelicOne
0
1K
Member Avatar for MARKAND911

yse you can do this by using MDIParent1.Label1.Text = TextBox1.Text this on button click event

Member Avatar for Geekitygeek
0
4K
Member Avatar for ramendra.saini

just wirte this query SELECT * INTO NewTable FROM OldTable your oldtable data will be copy in newtable.which will create when you fire this query. mark this thread as solved

Member Avatar for pritesh2010
0
30
Member Avatar for scorpio26krf
Member Avatar for youngmoolah

just fire this quesry you will get the data from which date you want [CODE] Select * INTO databaseB.dbo.table1 from databaseA.dbo.table2 where Date='my condition' [/CODE] where dbo is my schemaname database B is my new Database database A is my old Database table1 is create new table in DatabaseB table2 …

Member Avatar for pritesh2010
0
83
Member Avatar for pritesh2010

hello experties in my webpage i have one datagrid in datagrid i'm showing all the data.for eg date/name Title 7/14/2010 Pqrs abc gh ghfghfghh ghfghfghfg 7/15/2010 Pqrs xyz fgh fgh fgh fdg fgdfgf 7/16/2010 Pqrs lmn ytyrt yrtyrty but insted of header text like Date/Name Title i want to show …

Member Avatar for pritesh2010
0
368
Member Avatar for leahrose87

simple solution. don't make new instance of form2. on button click write form2.Show Form2.BringTofront() if you have any parent form then write this code on that menustrip click event Form2.MdiParent = Me Form2.Show() Form2.BringToFront() try it works

Member Avatar for leahrose87
0
96
Member Avatar for Nikon70

huun you can a sort a column using OrderBy clause Select * from tmpls order by col1 and then you can fire a update query based on that column UPdate tmpls Set col2=1 Where col1 ='A'

Member Avatar for mfas
0
102
Member Avatar for shuhana84

ok then try to insert the with transaction. first add the refrence of transaction and then pass the query with that see this link [URL="http://www.daniweb.com/forums/thread291344.html"]Transaction[/URL]

Member Avatar for pritesh2010
0
267
Member Avatar for b1izzard

use the System.Transaction class with your connection. for commit the transaction and rollback transaction. [CODE] Dim trans As SqlTransaction trans = con.BeginTransaction Try cmd = New SqlCommand("insert query", con, trans) ''con is a connection cmd.ExecuteNonQuery trans.Commit() MsgBox(" Number of Records inserted : " & count) Catch ex As Exception trans.Rollback() …

Member Avatar for shuhana84
0
251
Member Avatar for seger
Member Avatar for hirenpatel53
0
118
Member Avatar for balu_s

See this link will solve your problem for remote connection [URL="http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/"]here[/URL]

Member Avatar for pritesh2010
0
64
Member Avatar for pritesh2010

can any one help me for this code. i had created 2web page say home, employee and master page. on the mater page i want to show all the employee who are online now. for that i'm firing the query and i got the all the employee name through SqlDatareader.Now …

Member Avatar for pritesh2010
0
102
Member Avatar for leahrose87

here is solution first amke parent form proerit IsMdiContainer=true then when you load the parent form (i.e. MDi parent form) on the load event put this code [CODE] dim f2 as new form2 //which is my form2 protected sub form1_load f2=new form2 f2.MdiParent=me //this is form1 f.show() end sub try …

Member Avatar for pritesh2010
0
195
Member Avatar for anishnair

I would like to suggest you to use Push [URL="http://www.beansoftware.com/ASP.NET-Tutorials/Using-Crystal-Reports.aspx"]Push[/URL] model to design [URL="http://www.codeguru.com/csharp/.net/net_general/toolsand3rdparty/article.php/c13253"]Crystal Reports[/URL].

Member Avatar for pritesh2010
0
137
Member Avatar for Mr Programmer

what the silly question. on button click you are assign the value of label is 1 then how can you change it. tell me brief what you want? with some code.

Member Avatar for Mr Programmer
0
168
Member Avatar for Member 785160

see this link [URL="http://www.daniweb.com/forums/showthread.php?t=176058&highlight=how+to+check+negative+number+in+input+box+in+vb.net"]http://www.daniweb.com/forums/showthread.php?t=176058&highlight=how+to+check+negative+number+in+input+box+in+vb.net[/URL]

Member Avatar for wolfrain63
0
1K
Member Avatar for patr1c1a

you are passing something wrong in command and update query.try this[CODE] "update stock set idProducto =" & campo1 & ", nombreproducto =" & campo2 & ", proveedor =" & campo3 & ", categoria =" & campo4 & ", unidad = " & campo5 & ", preciocosto =" & campo6 & …

Member Avatar for G_Waddell
0
186
Member Avatar for pritesh2010

hello everyone. can any one tell me how to delete recored from gired view dynamically. in my program i have one gridview and sqlDatasource in this i have 4 label and one button.Label shows name, date, title and description and button for delete. all this is done at source view …

Member Avatar for prashantchalise
0
118
Member Avatar for umair.sabri

what?? can you tell me in brief your question? so we can give you idea.

Member Avatar for umair.sabri
-1
70
Member Avatar for Mr Programmer
Member Avatar for Mr Programmer
0
240
Member Avatar for Prashant20

for this you have to use RegularExpression class in this there is Regex class. for email vallidation see this code. using System.Text.RegularExpressions; 1)[CODE] public bool IsValidEmailAddress(string EmailAddress) { Regex regEmail = new Regex(@"^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"); if(regEmail.IsMatch(EmailAddress)) ///in Email address write user email address return true; return false; } [/CODE] 2)[CODE] string pattern=@"^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|" …

Member Avatar for Abhijeet Thorat
1
1K
Member Avatar for virusisfound

try this [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace savita { public partial class Form5 : Form { DataTable dt; DataRow dr; public Form5() { InitializeComponent(); } try { dt = hosDataSet.Tables["inpatient"]; dr = dt.NewRow(); dr["ipid"] = …

Member Avatar for pritesh2010
0
108
Member Avatar for Member 784811

[CODE] or first you can concatinate all the first all three fileds dim str as string str=Combo1.SelectedItem & Combo2.selectedItem & textbox1.text "Select * from table Where " & str & "" [/CODE]

Member Avatar for pritesh2010
0
117
Member Avatar for Member 784811

try this way you doing write but error is over here [CODE] "Select * from [tblSpeedStudy] Where [write codition] like/='" & ComboBox1.SelectedItem & "' and [write codition] like/='" & ComboBox2.SelectedItem & "' and [write codition] like/= '" & TextBox1.Text & "'" // when you want search then we write Select …

Member Avatar for pritesh2010
0
159
Member Avatar for aurora1234

rty this code for login it properly works for me as i updated for you. [CODE] Dim strConn As String strConn = WebConfigurationManager.ConnectionStrings("iPesha").ConnectionString Dim Conn As New SqlConnection(strConn) Conn.Open() Dim sqlUserName As String= "SELECT UserName,Password FROM Users " cmd =new sqlCommand(sqlUserName,con) dim dr as SqldataReader dr=cmd.ExecuteReader() if dr.HasRows=true then While(dr.Read()) …

Member Avatar for aurora1234
0
136
Member Avatar for elizabeth mwash

hey friend remove [CODE]Provider=SQLOLEDB.1;[/CODE]''this thing [CODE]string connstring = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=fairdealdbAnalysis;Data Source=RECEPTION\\SQLEXPRESS"; [/CODE] from your connection string . i think error is there no need to write provider

Member Avatar for elizabeth mwash
0
161
Member Avatar for GrimR7529

see the thread [URL="http://www.daniweb.com/forums/thread131068.html"]http://www.daniweb.com/forums/thread131068.html[/URL] it will help you

Member Avatar for pritesh2010
0
98
Member Avatar for dougancil

what?? i can't understand your question?you want one Datetimepicker which only select Male-Female. just tell me brief.

Member Avatar for dougancil
0
85
Member Avatar for pritesh2010

can any one tell me how to get the seleted submenuitem value of menu in textbox. like foe eg this is my menu Home Course -Commerce -Science i want when i select science in menu control then textbox should me the Science. any one help me i'm apppriciate. :) thank …

Member Avatar for pritesh2010
0
360
Member Avatar for newbie_coder

see this thread i had define for email validation same way you can define for your expression in regex pattern. [URL="http://www.daniweb.com/forums/thread292975.html"]http://www.daniweb.com/forums/thread292975.html[/URL]

Member Avatar for newbie_coder
0
166
Member Avatar for Roulaa

Ok i got your problem and the solution is as follow. create your table that is Item table in tabel Itemid is Primary key and pictureId,VideoId,AudioId,CategoryId make all this column as alternate key. and after that create your other table with the name Category,Picture,Video, and audio. and alll this table …

Member Avatar for Roulaa
0
215
Member Avatar for Tank50

hey why are you doing this much stuck just create a view with the join of two table and then create a index on that view then fatch the recored from the datatable using where condition. it's very simple.

Member Avatar for kvprajapati
0
294
Member Avatar for Mitja Bonca

hey Mitja do you have created procedure for that. first create the procedure and then write your code as per below for as per the DMl query. [CODE] SqlConnection con = new SqlConnection("");//give your connection string to open the connection con.Open(); SqlCommand cmd = new SqlCommand("proc_new_test",con);//proc_new_test is my sp name …

Member Avatar for pritesh2010
0
164
Member Avatar for Ali.M.Habib
Member Avatar for b1izzard
Member Avatar for b1izzard
0
176
Member Avatar for badx

for solving this error put your connection string in web.Config file in the Configuration tab and then retrive it on the form with configuration manager. when you want to deploy project to another Computer @ that time just change the connection tring of your web.config file as per that computer …

Member Avatar for pritesh2010
0
354
Member Avatar for pritesh2010

This exaple show you how to insert image in database and how to retrive in gridview. see the attachments.

0
60
Member Avatar for bellconsult

why are you writing so much of cmd it's simple for adding the data in access database see the code [CODE] Imports SYstem.Oledb dim cn as OledbConnection Dim cmd As OleDbCommand dim sqlstr as string,ans as Boolean private sub btn_click Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & "c:\Users\BELLCONSULT\Documents\LIBRARY2.mdb " …

Member Avatar for pritesh2010
0
245
Member Avatar for hemal1972

see this link it will help u to learn how to create HTML workshop [URL="http://frogleg.mvps.org/helptechnologies/htmlhelp/hhtutorials.html#char_hhw"]http://frogleg.mvps.org/helptechnologies/htmlhelp/hhtutorials.html#char_hhw[/URL]

Member Avatar for pritesh2010
0
141
Member Avatar for pritesh2010

hello everyone i'm creating billing application in that i got the two problem while i'm use. 1)when i came in purchase form i can retrive all the supplier's name in the one genral list box list. but i want when i came in textbox for typing the name of supplier …

Member Avatar for andrewll2
0
141
Member Avatar for pritesh2010

hello experts i got error when i running the program [CODE] " at Elactronic.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190\r\n at Elactronic.My.MyProject.MyForms.get_SplashScreen1()\r\n at Elactronic.My.MyApplication.OnCreateMainForm() in D:\\Solution SOftware\\Elactronic\\Elactronic\\My Project\\Application.Designer.vb:line 35\r\n at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)\r\n at Elactronic.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81\r\n at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, …

Member Avatar for GeekByChoiCe
0
204
Member Avatar for aniesdamoi

hello every one. I'd created on application in vb6.0 with datareprot. I'd have to done design my biill in datareport but it create problem. it's like I'm retrieving all data from database. there is name ,address, Teleno in group header. while all the product where it will be 5 or …

Member Avatar for frank emmett
0
425
Member Avatar for murali.cpt

hey dear when you deploye the application in any machine that machine should have .net fraemwork. then deploye it. and try it

Member Avatar for murali.cpt
0
88
Member Avatar for andy1510

hey You can use [CODE] The following code returns a random number: Dim num As Integer = random.Next() The following code returns a random number less than 1000. Dim num As Integer = random.Next(1000) The following code returns a random number between min and max: Private Function RandomNumber(min As Integer, …

Member Avatar for pritesh2010
0
91
Member Avatar for pritesh2010

hello everyone i'm creating one Small D.j.software.in this i got three problem 1} how to mearge one .mp3 file with onther .mp3 file 2}how to drop .mp file directly to form's list box 3} how to save that merger .mp3 file. please help

0
100
Member Avatar for Abdul Rouf

hey friend why are you doing this much coding for crystal report try I would like to suggest you to use Push model to design crystal reports.

Member Avatar for pritesh2010
0
131
Member Avatar for sonia sardana

even you can call the disk fragment like this on button click event [CODE] Dim p As New System.Diagnostics.Process p.StartInfo.FileName = "dfrg.msc" p.Start() [/CODE]

Member Avatar for pritesh2010
0
198

The End.