Posts
 
Reputation
Joined
Last Seen
Ranked #831
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
24
Posts with Upvotes
19
Upvoting Members
18
Downvotes Received
6
Posts with Downvotes
6
Downvoting Members
4
10 Commented Posts
0 Endorsements
Ranked #355
~102.01K People Reached
Interests
play a Cricket,Couter strike and footbol.
PC Specs
windows XP, SQl server 2005,2008 and .net 2005
Favorite Tags
Member Avatar for virusisfound

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

Member Avatar for pritam_4
0
5K
Member Avatar for TrueCoding

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 …

Member Avatar for Ailan
0
2K
Member Avatar for alladin2010

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

Member Avatar for modyalaskalany
0
5K
Member Avatar for bhagawatshinde

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.

Member Avatar for parth vyas
0
282
Member Avatar for pritesh2010

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 …

0
175
Member Avatar for Kingcoder210

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

Member Avatar for sandybriones
0
2K
Member Avatar for cumadhu

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 …

Member Avatar for perezvarm
0
619
Member Avatar for ana_eht

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.

Member Avatar for xyudha
0
712
Member Avatar for Mirfath

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

Member Avatar for pritesh2010
0
1K
Member Avatar for pritesh2010

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.

Member Avatar for pritesh2010
0
270
Member Avatar for pritesh2010

how to convert this code to C#. Protected Class Calendar Public Sub New(ByRef Picker As NullableDateTimePicker) End Sub End Class

Member Avatar for Michael27
0
116
Member Avatar for pritesh2010

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

Member Avatar for poojavb
0
158
Member Avatar for pritesh2010

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 …

Member Avatar for hericles
0
85
Member Avatar for pritesh2010

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 …

Member Avatar for dickersonka
0
656
Member Avatar for chanthung

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 …

Member Avatar for nicolle john
0
174
Member Avatar for poloblue

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 …

Member Avatar for sknake
0
173
Member Avatar for PutingPanday

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

Member Avatar for thines01
0
132
Member Avatar for choosechrist

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]

Member Avatar for choosechrist
0
173
Member Avatar for rhone0809

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]

Member Avatar for M.Waqas Aslam
0
148
Member Avatar for vodkasoda
Member Avatar for LearnVBnet

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]

Member Avatar for LearnVBnet
0
1K
Member Avatar for bwaha

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 …

Member Avatar for bwaha
0
11K
Member Avatar for dilse4sk

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]

Member Avatar for pritesh2010
0
163
Member Avatar for saadahkh

hey have you check Button1.Content of Button1. what if it contain null value??

Member Avatar for tungnk1993
0
98
Member Avatar for pritesh2010

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 …

Member Avatar for pritesh2010
0
257
Member Avatar for dilse4sk

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]

Member Avatar for pritesh2010
0
175
Member Avatar for saneeha.nust

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]

Member Avatar for saneeha.nust
0
227
Member Avatar for dilansankalpa

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 …

Member Avatar for thines01
0
250
Member Avatar for bhagawatshinde

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

Member Avatar for bhagawatshinde
0
97
Member Avatar for ee_persian

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

Member Avatar for pritesh2010
0
156