4,588 Topics

Member Avatar for
Member Avatar for hery

hello all, i want to ask how to i set variable in asp:sqldatasource in sqlcommand in asp.net c#.... This is my code asp.net [code] <dx:ASPxListBox ID="lsAssignToko" runat="server" DataSourceID="SqlDataSource6" TextField="NAMA" ValueField="ID" AutoPostBack="true" EnableCallbackMode="True" SelectionMode="CheckColumn" onselectedIndexChanged="lsAssignToko_SelectedIndexChanged"> <Columns> <dx:ListBoxColumn FieldName="ID"/> <dx:ListBoxColumn FieldName="NAMA" /> </Columns> </dx:ASPxListBox> <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:Ora2010 %>" ProviderName="<%$ ConnectionStrings:Ora2010.ProviderName …

Member Avatar for Lusiphur
0
747
Member Avatar for Zinderin

I am still learning C#. I come from a Delphi and C past. I am used to being to create flat data files of of records. Example: [CODE] // Sample Delphi code... type SectorRecord = Record iIdx : integer; iCoordX : integer; iCoordY : integer; sName : String[60]; end; ..... …

Member Avatar for Zinderin
0
276
Member Avatar for judithSampathwa

hi there, i have a mask text box in a form to enter the money amount in the text box.(displayed as $________.__) whee the user enters $___555__.__ how can i validate it.to get the value 555to the database. how ca i do this. hey anybody has any tutorials regarding validating …

Member Avatar for Lusiphur
0
798
Member Avatar for krisox

hi i would like to group rows in categories like that : [URL="http://img199.imageshack.us/img199/9152/capturegww.jpg"]http://img199.imageshack.us/img199/9152/capturegww.jpg[/URL] I konw how to do this with OutlookGroupBy but its not possible to put the same row into severals categories So is there a way to group rows while beeing possible to put the same row into …

Member Avatar for krisox
0
37
Member Avatar for rajdey1

Hi All I am trying to write Asynchronous client-Server Socket program in which whenever a client is connected to server a Windows Form is created which has a textbox and two buttons......on Data recieved by server from client the data is written in respective windows Form textbox and if a …

Member Avatar for nick.crane
0
201
Member Avatar for c0deFr3aK

Hi everybody please help me on how to code this in C#. I have an ASP.Net Web project and needs some C# code behind. Working some variables: In my VB.Net it looks like this: [CODE] Dim str1 as String Private Sub Button1_Click(...) str1 = "some text" 'This will be assigned …

Member Avatar for Lusiphur
0
148
Member Avatar for baladeveloper

hi ... how to create the stored procedure?, and how to call the stored procedure in c# ?....

Member Avatar for Jinnybat
0
95
Member Avatar for nidhi4may
Member Avatar for Merlin33069

Ive looked through google and a few other places, searching for how to calculate the pixels you would need to fill in a 3d space to draw a line, circle , sphere or anything really. Ive always been good with learning math, i just need somewhere to learn it from …

Member Avatar for adams161
0
263
Member Avatar for Zinderin

I know you guys MUST be tired of scope questions ... but I need some help getting through this fog ... The following code works ([I]notice where I instanced 'cp'[/I]) .... [CODE] public partial class frmMain : Form { ConnectParams cp = new ConnectParams(); public frmMain() { // Fires up …

Member Avatar for Zinderin
0
150
Member Avatar for mahmud2008

[code] using System; using System.Collections.Generic; using System.Text; namespace Factorial { class Program { static void Main(string[] args) { int i, n, fac = 1; string s; Console.Write("Please enter any number to find it's factorial(0 to 19):\n"); s = Console.ReadLine(); n = Int32.Parse(s); for (i = 1; i <= n; i++) …

Member Avatar for ddanbe
0
220
Member Avatar for Thew

Hello everyone, I have a problem in my Borland C++ project. I need to use my own COM object written in C# (this COM allows me to directly print PDF files) in my another project in C++, but as soon as I call some COM functions which require a string …

Member Avatar for Thew
0
242
Member Avatar for f08

we are using visual studio 2005 and MS access and Oledb connection i.e we are using manual connection for the connection with database Actually we want to update our general ledger table and cash table in access from a single form cash receipts. In general ledger we want updation in …

Member Avatar for kvprajapati
0
94
Member Avatar for moshe12007

i have in the Visual C# 3 options of database : 1. SQL SERVER (.sdf) 2. ACCESS (.mdf) 3. ADO.NET (.edmx) which database advisable to use??? *if you give me answer please give me tutorial\book\name of book. thanks.

Member Avatar for kvprajapati
0
173
Member Avatar for TomB1988

Hi there, The program in hand must retrieve a bunch of data from an SQL Database (currently stored in a DataTable), fiddle around with the data, and then upload the changed data to the same SQL database. Everything works fine at the mo apart from the final bit, uploading to …

Member Avatar for microdata
0
141
Member Avatar for bushman_IL

Hello, I am trying to send an object over a socket using C#. I originally used a memorystream and binaryformatter, but to do this I need to include a reference from program1 to program2. I don't want to have a reference, so I just want to be able to transform …

Member Avatar for bushman_IL
0
1K
Member Avatar for chandruswami

In validating textbox in c#.net, I want to allow the user to enter value based on the conditions. Not Allowed ------------ 1. Only special characters not allowed (Ex: !@#) 2. Only Numbers not allowed (Ex: 3456) Allowed --------- 3. characters only small letters allowed. (Ex: asd) 4. characters only capital …

Member Avatar for ddanbe
0
68
Member Avatar for moshe12007

i dont know how to read from database SQL. i try this : [CODE] string sql = "Select * from Table1 "; DataSet ds = new DataSet(); string connStr = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlConnection conn = new SqlConnection(connStr); SqlCommand cmd = new SqlCommand(sql, conn); conn.Open(); SqlDataAdapter adapter = new …

Member Avatar for nick.crane
0
94
Member Avatar for smita mone
Member Avatar for addie20

how I am new to c# and I have a question I have to create a form, it is of 2 pages so I created 2 different forms, now based on the database table, I have to fill few textboxes in form2 in order to overcome the exception of crashing …

Member Avatar for sadhawan
0
191
Member Avatar for virendra_sharma

want this code in C# ,[code]void sort(int *a, int size) { int i,j, swapped=0; for (j=size-1; j>0; j--) { swapped=0; for (i=0; i<j; i++) { if (a[i+1] < a[i]) { swap(a[i], a[i+1]); swapped=1 } } if ( swapped == 0 ) break; } }[/code]

Member Avatar for bbman
0
175
Member Avatar for tirpanceker

Hello, I'm searching a program or api to discover bluetooth device.. I'll using it in a c# program which run in my laptop. I'm using 32Feet.Net 2.5 in the Toshiba notebook and receive error "No supported Bluetooth protocol stack found". It supports microsoft and widcomm/broadcom bluetoth satck.. Please advise a …

0
22
Member Avatar for Kami3
Member Avatar for chan_lemo
0
263
Member Avatar for farukdeni
Member Avatar for litlemaster

I am clue less about what are delegates and why do we use them in c#. Also what are no type safe functions as the concepts seems to be relevant.

Member Avatar for farooqaaa
0
85
Member Avatar for devraj.sanjhi

tell me how to make a stylish login page like yahoo messenger i want to make an stylish log-in like yahoo messenger but how????

Member Avatar for dnanetwork
0
155
Member Avatar for leejiaen1212

Dear All, Is C# able to do a project similar to a planner or maybe a simulator? Example: 1) User load floor plan 2) User 3) User drag and drop or select the devices and add to the floor plan 4) Program calculate total cost 5) if possible program analyse …

Member Avatar for Ketsuekiame
0
284
Member Avatar for wade2462

I am coming from c++ and its nice STL. In C++ I could do this [CODE=C++] <include> string ... ... int nMyInt = 5; string sMyString; sMyString[5] = "b"; [/CODE] Ive tried this approach in c# but doing this way gives me this error [QUOTE]Property or indexer 'string.this[int]' cannot be …

Member Avatar for wade2462
0
121
Member Avatar for haro2x

Hello i have made a webbrowser using the webbrowser control in c#. I have disabled the new window event, and now I want to get the url of the clicked link to open this url in current window. Here is the code: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; …

0
65
Member Avatar for Jesi523

I need some help. I am currently creating an event caledar. First there is a web page that a person would input information for an event there were holding with the dates and times. This information would be stored in a SQL Server database. Then a link is given to …

0
68

The End.