- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 24
- Posts with Upvotes
- 19
- Upvoting Members
- 18
- Downvotes Received
- 6
- Posts with Downvotes
- 6
- Downvoting Members
- 4
- Interests
- play a Cricket,Couter strike and footbol.
- PC Specs
- windows XP, SQl server 2005,2008 and .net 2005
Re: hi If you want the values of the selected rows of the content in the textbox then you can directly write this code on Datagridview_Cell Click Textbox1.Text=Results.Rows[e.RowIndex].Cells["your Cloumn Name"].Value.Tostring(); | |
Re: hii once again i have one idea for this problem use the radiobutton for the answer and give the value like ,1,2, and so on. now when you load the question from the database create one hidden txtbox and write the answer which is not visible at run time. and … | |
Re: hi This is a console based application. You need to run first Server application then client. This for local host(same machine). If you run in different machine, need to configure once. About server IP/address in client code, file path & folder. [CODE] [B][COLOR="Red"]Server code:[/COLOR][/B] using System; using System.Collections.Generic; using System.Text; … | |
Re: The abstract keyword enables you to create classes and class members that are incomplete and must be implemented in a derived class. The sealed keyword enables you to prevent the inheritance of a class or certain class members that were previously marked virtual. | |
i have follwing data in datatable how to convert it to xml ErrorType UtilityType MstLocCode MDescription SubLocCode SDescription FieldName FDescription 1 Elect NM0001 XMN001 ABC ddsafs 1 Elect NM0001 XMN001 XYZ ddsafs 1 Elect NM0001 XMN001 LMN ddsafs 1 Elect NM0005 XMN002 sds 1 Elect NM0006 XMN002 fghfgh Gas ddsafs … | |
Re: huumn.use group by student`s ID & name in your query. so first it will group all the student with the given iD or name and then display the reult. it will show only one recored when you pass parameter. Try this if problem is solved mark as solved | |
Re: web.config is configure ur apllication only but machine.config file related to ur all d application on ur server. the settings made in the web.config file are applied to that particular web application only whereas the settings of machine.config file are applied to the whole asp.net application. The MACHINE.config file contains … | |
Re: what do you want it's not clear and i can't understand pleas write clear what u want after selecting of green color. so i can help You. | |
Re: Hi, I think you had binded your gridview with database then use following code. /* Create One Property in Item Form which Hold the Value which you give from datagridview */ private int _itemId; public int ItemID { get{ return _itemId;} set{ _itemId = value;} } private void dataGridView1_CellContentClick(object sender, … | |
how to add multiple image in listview columns like ListViewItem.ListViewSubItem[] subItems; ListViewItem item = null; item = new ListViewItem(imageList1.Images[0].ToString(), _GroupName); subItems = new ListViewItem.ListViewSubItem[] { new ListViewItem.ListViewSubItem(item,imageList1.Images[1].ToString()), new ListViewItem.ListViewSubItem(item,imageList1.Images[2].ToString()), new ListViewItem.ListViewSubItem(item,_Row["Description"].ToString()), new ListViewItem.ListViewSubItem(item,imageList1.Images[3].ToString())}; item.SubItems.AddRange(subItems); ListView.Items.Add(item); how add to do that. dynamically. | |
how to convert this code to C#. Protected Class Calendar Public Sub New(ByRef Picker As NullableDateTimePicker) End Sub End Class | |
REATE TABLE [dbo].[BiddingTable]( [cAuctionId] [int] NULL, [idUserId] [int] NULL, [cItemId] [int] NULL, [vcBidamount] [nvarchar](50) NULL, [vcBidcount] [int] NULL, [bidQty] [varchar](5) NULL, [vcBidtime] [datetime] NULL, [status] [varchar](50) NULL ) ON [PRIMARY] INSERT [dbo].[BiddingTable] ([cAuctionId], [idUserId], [cItemId], [vcBidamount], [vcBidcount], [bidQty], [vcBidtime], [status]) VALUES (10, 36, 21, N'93.6', 1, N'0', CAST(0x0000A05500F83B44 AS DateTime), … | |
hi everyone , write now i have a with data which i want show the in tabular format like my query gives output like Name Location Rate AA A1 56 AA A2 27 AA A3 67 AB A1 56 AB A2 27 AB A3 67 BB A1 45 BB A2 … | |
hi everyone, In my project i'm working on Fileupload control.when i browse a file with IE7 it gives me a full path path of file but when i'm trying in Firefox and Chrome it does not give me a file path. some says save it to your server or a … | |
Re: you this line is wrong that's whi it's not working ''da = New OleDbDataAdapter("Select * From Application Where Sl_No='" + txteditno.Text + "'", con) in VB.net we are not concatenation string with '+' sign we are use '& '. so instead of this write like this [CODE] da = New … | |
Re: Even you can try this method also. [CODE] private void btnCheckIP_Click(object sender, EventArgs e) { try { string HostName = System.Net.Dns.GetHostName().ToString(); string UserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); UserName = UserName.Replace(@"\", @"\\"); string IPAddresses = ""; System.Net.IPHostEntry _IPHostEntry = System.Net.Dns.Resolve(HostName); foreach (System.Net.IPAddress IPAddress in _IPHostEntry.AddressList) { IPAddresses += IPAddress.ToString() + ";"; } MessagBox.Show(HostName … | |
Re: for generating random number use random class for that. see below Example which gives you some idea how to generate Random Number. [CODE] Private Function GenerateRandomString(length As Integer) As String Dim charPool As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" Dim rs As New StringBuilder() Dim rnd As New Random() While System.Math.Max(System.Threading.Interlocked.Decrement(length),length + 1) … | |
Re: see this link it might be help you to host calender column in Datagridview [URL="http://msdn.microsoft.com/en-us/library/7tas5c80.aspx#Y68"]Msdn[/URL] and [URL="http://www.codeproject.com/Articles/38972/Nullable-datetime-column-in-NET-DataGrid-with-Date"]Click to see Example[/URL] | |
Re: your codes this part is not working Format() is not sql Command just maniuplate from code to find date and time or see the nblow given link for dateTime [URL="http://www.sql-server-helper.com/tips/date-formats.aspx"]http://www.sql-server-helper.com/tips/date-formats.aspx[/URL] [CODE]Format([CheckTime],'mm/dd/yyyy') AS [Date], First(Format([CheckTime],'hh:nn AM/PM')) AS TimeIN, Format([CheckTime],'dddd') AS DDay [/CODE] | |
Re: see the below screenshot which solve your problem | |
Re: see the below link [URL="http://www.programmersheaven.com/mb/VBasic/123406/123406/list-view---show--currency/"]http://www.programmersheaven.com/mb/VBasic/123406/123406/list-view---show--currency/[/URL] | |
Re: if you are binding your listbox with data source so you can do the sum like this also [CODE] Dim i As Integer = 0 For Each _row As DataRow In DirectCast(listBox1.DataSource, DataTable).Rows i += Convert.ToInt32(_row(1)) Next MessageBox.Show(i.ToString()) [/CODE] DirectCast(listBox1.DataSource, DataTable).Rows convert your listbox to DataTable and it loop on … | |
Re: hi just try this code it solve your problem [CODE] Dim result As DialogResult result = MessageBox.Show("r u sure", "Test", MessageBoxButtons.YesNo, MessageBoxIcon.Information) If result = Windows.Forms.DialogResult.Yes Then //statement Else //statement End If [/CODE] | |
Re: hey have you check Button1.Content of Button1. what if it contain null value?? | |
can any one tell me how to create a html help file in detail. Actually i already tried for that even i have created but the problem is i don't no how to create tree in content file. and when i passing the image url to my local machine and … | |
Re: you can also bind your combobox like this also [CODE] //Com is my command, daReserveM my Dataadapter,dtRm1 is my DataTable Com.CommandText = "Select ID,RoomType from mytable" daReserveM.SelectCommand = Com daReserveM.Fill(dtRm1) dtRm1.TableName = "mytable" drp.DataSource = dtRm1 drp.DataTextField = dtRm1.Columns(1).ToString drp.DataValueField = dtRm1.Columns(0).ToString drp.DataBind() //drp is my dropdownlist [/CODE] | |
Re: this error because when you use this [CODE]DateTime.Now.ToShortDateString().ToString()[/CODE] it gives following output and with the slashes(/) 2/15/2012 so insted of try this to solve a problem or [CODE] DateTime.Now.ToShortDateString().ToString().Replace("/","") DateTime.Now.ToShortDateString().ToString().Replace("/","-") DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Date.ToString() [/CODE] | |
Re: see the below example which can be help you. it's a just example just write your own code. [Code] ex:- string str = "a,b,b,c,c,d,d,e,e,f,f,g,g,h,h,i,i,j,j,k,"; //now i want to split with the evry 2 comma //so my o/p should be display like this a,b b,c c,d d,e e,f f,g g,h i,j … | |
Re: you can do this using the Random Class. Just create one Random class count your datatable rows and then looping on count put that rows into another datatable. for Ex. [CODE] Private Datatable ShuffelTable() { DataTable Table = mytable.copy(); if(Table.Rows.Count>0) { Table.Clear(); Random _Shuffelrandom = new Random(); while (mytable.Rows.Count > … | |
Re: for returning the value from any form you can use a Property See the below for Ex. [Code] Class A { private string mystr; public A() { } Public string MYstr { get { return mystr; } set { mystr=values;} } public Void Display() { mystr="WelCome" + mystr; } } … |