568 Posted Topics
hello ! i have query , in which i am concatinating different fields and making a simple string , the length of string is very large, i want to put line break in it , i dont know to do this , my string is now in this format. LotNo:12 … | |
Hello ! i am working on a simple asp.net project , i have two forms , frmlogin.aspx and frmmain.aspx , i want to redirect my frmlogin.aspx when my session is expired. i already added global.asax. i used all these codes at the session end event of it , HttpContent.Current.Response.Redirect("frmlogin.aspx"); Server.Transfer("frmlogin.aspx"); … | |
Re: please do not post same question with different wordings , this is your third one i am watching right now , bad habbit . | |
Re: please just check [Click Here](http://www.planet-source-code.com/) and search there you will find some demo projects about this. hope this link will provide you enough information to take your first step. i think you have to make your base of socket programming before doing something like this. Regards | |
Re: well if you have a form having diff controls , like datetime picker , picture box , textboxes and you want to populate them by using combo box. you have to bind all your controls with your datasource , like this . dim con as new sqlconnection("you connection string") con.open … | |
Re: well , you have to use the array list , for this purpose , here is what i tried at my end first i add a list box and a button on my form , i add 4 items a b c d manually in the list box , then … | |
Re: there is another method to do this is use this code at the textbox textchange event dim con as new sqlconnection("connection string") dim dt as new datatable con.open() dim da as new sqldataadapter("select * from table1 where name like '" & textbox1.text & "%'",con) da.fill(dt) datagridview1.datasource = dt con.close hope … | |
Re: well i think it is much better that you allow your user to make changes in grid after that press save button to save all the changes , this will not put load on your db , but i think in your case you may use cellvaluechange event , to … | |
Re: congratulation ,on your completion of second project :) , Regards | |
Re: this error comes when we try to insert the FK value which is not in it Parent table. | |
Re: hello please see these links hope they will solve your prob [Click Here](http://code.google.com/p/geocoordconversion/) [Click Here](http://www.codeproject.com/Articles/15659/Longitude-Latitude-String-Parser-and-Formatter) | |
Re: well just set the format property to time and set showUpDown property true , :P if this answer solve your porb , please vote up . Regards | |
Re: you want to some to give you working code ? if yes :P then NO ONE will give you , please do some efforts before asking any thing :P Regards | |
Re: satti you just have these three words ? or your are giving example:P | |
hello ! may God bless all of us , well i am working on a project in which i need to create a simple desktop viewer , a user can view the screen of any computer in LAN network , how can i do this , as this is very … | |
Re: when ever you find this type of error ,please type your query in management studio it will help you to find errors , Regards | |
hello ! i am using mssql server 2008 , i have a table with three fields , 1- ProdID 2-ProdName 3-ProdPic , now i want to show the all records of the table in the datagridview by using vb.net , how can i show my image field in datagridview , … | |
hello all of you ! i am making a simple form which can create the text file from the database table , for this , i am using this code at the load event of my form so that it can create the files at the load time. IO.File.Create("C:\Customers.txt") IO.File.Create("C:\Towns.txt") … | |
hello ! this is my code , i am writing a text file form the datagrid, but this code is very slow , please check it out and give me some advice how i can make my code fast , If IO.File.Exists("C:\Customers.txt") = False Then IO.File.Create("C:\Customers.txt") End If Dim FILE_NAME … | |
Re: well set the backgroud color property ----> transparent (in web tab). hope this will solve your prob. Regards | |
Re: well i think you have to set the anchor property of your form and controls so that when ever size of your form is changed the control will also set their locations. and you can also use flowlayoutpanel control it will also set the position of your form according to … | |
hello ! well i dont have any idea about the socket programming ,i am developing an lan chatting application , i want to add the file transfer functionality in it , now you are thinking that why not i share my folder over network , well i dont want to … | |
hello ! i love to use cell phone apps , but now i want to develop them , please guide me which is the best and easy sdk for android mobile applications , and from where i can start working on it. Regards | |
hello ! i am working on a c# project , but i had done all this is vb before , now i have all the code in vb.net and i want to use it in c# project , someone told me that if i make dll of my vb modules … | |
Re: as i understand is that you have 10 rows and you have a column name house and a optimum value now you just want to get the largest optimum value of any house ? if i m right then you can do like this. here is code if there is … | |
hello ! i am new in c# , i have images in my mssql table and i want to show those images in the datagridview , i add a column type image , but i am not able to show images in it , please help me in this . … | |
Re: well , if you just want to show the value in textbox related to the selected value of the combo then you can do like this , dim con as new sqlconnection("your connection string ") con.open() dim da as new sqldataadapter("select val1 , val2 from table ",con) dim dt as … | |
Re: well you can first get the id or name of those frames , as i just worked once in a facebook scraper , so i dont have that much knowledge , but the basic idea is that you can use the get element by id , to get the any … | |
hello all ! may God Bless you all , basically i like to work in .net , but due my boss's requirement i have to work on ExtJs , in the bigging it was very difficult for me to switch my self from .net to JS , but i am … | |
Re: can youplease be more specific that in which format i mean in excel or word or pdf etc ? | |
Re: hello ! well there is not enough time to read your all code , it is better to always ask question to the point , as far as i understand you simply populate the grid from your database using vb.net , if yes then do like this . import system.data … | |
Re: well , there is an idea to deal with this situation , is that , you can just add a column to your db , name isViewing datatype bit , now if user one get records it will not only get records to you but also update isViewing true , … | |
Re: i think you can do like this, now here is sample you can do same with your close function , Public Function Open_DB_Connection(byval formName as string) As String Try Connection.ConnectionString = "Data Source = LocalHost\;Initial Catalog = Database;Integrated Security = True" Connection.Open() Return "Success" Catch ex As Exception MsgBox("your " … | |
Re: i think there is nothing wrong with the query , as there is not that much time to read your full code , but i think you are using data table or data set , , the best way is to add row to your datagrid manualy using sqldatareader , … | |
Re: my advice to beginner20 is that please try to study first , then search some code samples , after knowing all the basic logics and working of components which will be used in your coding then start coding , this will save lot of time of yours , while coding … | |
Re: i think first you have to set then format of your datetime picker so that it can only show the time then just simple bind it with your datasource. Regards | |
hello ! i am working on a simple grid , i create 3 columns name , A B C , manually , now i have a table having three fields A B C , i want to show Rec A in A col , B in B Col and C … | |
Re: i think the most simple way is this that when you make setup of your application to deploy it on your client machine , the window where you add all your files present in bin folder , and create shortcut at the desktop , there are two columns , you … | |
hello every one ! i want to make an application that can work like windows remorte desktop connection or teamviewer , but on local network , how can i do this , i even dont know where to start my work , please guide me , and help me if … | |
hello every one , ! i have same prob as the user had in this thread [Click Here](http://www.daniweb.com/web-development/databases/ms-sql/threads/421214/remote-server-access) first i thought to post my question in that thread but then i thought it is better to open new thread . in above mentioned thread a user have prob to connect … | |
Re: well , this is very simpele , you can do like this dim con as new sqlconnection("your connection string") con.open() dim da as new sqldataadapter("select columnName from table",con) dim dt as new datatable() da.fill(dt) combobox1.datasource = dt combobox1.displaymember = "columnName" combobox1.valuemember = "ColumnName" con.Close() hope this will help you. Best … | |
Re: dim i as integer Dim conn As New SqlConnection("*******") conn.open() for i = 0 to DataGridView1.rows.count - 1 Dim query As String = "Insert Into orders(Itemname, Quantity, totalcost, barcode, ordernumber, orderdate, buyinprice, saleprice, vendorname, status, RepairNumber) values (@Itemname, @Quantity, @totalcost, @barcode, @ordernumber, @orderdate, @buyinprice, @saleprice, @vendorname, @status, @RepairNumber)" Dim cmd … | |
hello! i am facing an error ("object refrence is not set to an instance of an object.") i check my all code but i can able to solve it . here is a line of code where i getting it. . . . cmd = new sqlcommand(_mycommand_) if (__mycondition) { … | |
Re: i think you have to use a simple code which you used to populate your combobox what you have to do it to use a query with where clause and use that query to populate the combo call that query at your first combo where you select the brandy. you … | |
Re: well , simple you have to change the query like this [CODE] Dim da As New OleDb.OleDbDataAdapter("Select DISTINCT firm from Employees where firm='"& combobox1.text &"'", con) [/CODE] use this , then your grid will only show the records of selected firm , now you have to use oledb connection in … | |
Re: well first you have to select the reporting tool to make reports , like crystal reports , telerik reports , and also active x report etc , then google that how to make the specific reports , after this you will be able to make reports you want to create. … | |
Re: hello ! use this code for binding [CODE] cboOrganization.DataBindings.Add("SelectedValue", ds.Tables(bsTableName2, "OsID",true) [/CODE] This will work fine :) Regards | |
Re: replace this TextBoxDataKode.Text = DGS4.Item(1, GridView.SelectedRows(0).Index).Value with this TextBoxDataKode.Text = DGS4.Item(1, DGS4.currentrow.Index).Value.tostring() Regards | |
hello! i am working on a client and server application , i want to connect my server with my client application to perform some database transactions.i think it is very simple to connect a client with the server , but here is the point , i have two pc , … |
The End.