- Strength to Increase Rep
- +7
- 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
173 Posted Topics
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; } } … | |
Re: you can do this easily when you click on user control back button just fire your master windows back button. For this create one public method on your master windows and call that method on your user control back button. [CODE]this is my MstaerPage namespace TestProject { public partial class … | |
Re: for this you have suppose to be create a an EventAuditTrail. In this create one table which contain Id,User Id,DaeTime, ModuleName and Eventtext. and create one static event like (EventAuditTrail) which have above parameter and one insert statement which insert the data into your table. and then call each and … | |
Re: just check out this code it may give you small idea how to do it. [CODE] private void button1_Click(object sender, EventArgs e) { int i = 0; if (textBox2.Text.ToString()!= "") { i = Convert.ToInt32(textBox2.Text); } int j = Convert.ToInt32(textBox1.Text); textBox2.Text = Convert.ToString(i + j); }[/CODE] | |
Re: define your form2 at namespace lavel like for e.g.[CODE] namespace WindowsApplication2 { public partial class Form1 : Form { Form2 frm = new Form2(); public Form1() { } private void btnbold_Click(object sender, EventArgs e) { frm.loadDis(textBox1.Text); f2.Show(); } } } [/CODE] | |
Re: on click of btn bold make btn font style bold [CODE] private void btnbold_Click(object sender, EventArgs e) { if (btnbold.Checked) { btnbold.Checked = false; btnbold.CheckState = CheckState.Unchecked; btnbold.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular); } else { btnbold.Checked = true; btnbold.CheckState = CheckState.Checked; btnbold.Font = new System.Drawing.Font("Microsoft Sans Serif", … | |
Re: hi when you done the changes in datagridview make your non editable. [CODE]DatagridView.EndEdit();[/CODE] and Pass the new changes of the datagridView to DataTable writing [CODE]DataTable _DataTable= ((DataTable)DatagridView.DataSource).AcceptChanges(); [/CODE] It grive the Changes of Datagridview to datatable. and check the Changes. | |
Re: see the below link may be it will help you to what you want to do. [URL="http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx"]http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx[/URL] | |
Re: see the below link which help you very well [URL="http://www.codeproject.com/KB/system/processescpuusage.aspx"]http://www.codeproject.com/KB/system/processescpuusage.aspx[/URL] | |
Re: see the blow link which contains detail of encode and decode [URL="http://www.vbforums.com/showthread.php?t=287324"]http://www.vbforums.com/showthread.php?t=287324[/URL] [URL="http://snipplr.com/view/6034/"]http://snipplr.com/view/6034/[/URL] | |
Re: [CODE]//whenever you are trying to bind DataTable to Datagridview //First of all make Datagridview datasource null; //set the dgExperience.DataSource = null // then write your code // and even you can check your DataTable Like DataTable _DataTable=new DataTable(); if( _DataTable!=null || _DataTable.Rows.Count !=0) then // bind your grid with datatable … | |
Re: [CODE]To do this see this code which // this contains my TempDocumentFolder inside my path . DirectoryInfo _Directory = new DirectoryInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "TempDocuments")); //when you load the form first check the _Directory path it is valid or it contains any file like try { foreach (FileInfo file in _Directory.GetFiles("pe_*.pdf")) // it … | |
Re: now when you click on Add button just add for loop for that scores like this int total=0; for(int i=0;i<scores.Length;i++) { total = total + scores[i]; } MessageBox.Show(total.ToString()); | |
hi can any one tell me how to call webservice through json query here is my code. i want pass two variable and i want to get the result of that methos say Add methos of following service. for webservice [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using … | |
Re: hi see the below link which tell you how to save the data from datagridview to datatable. [URL="http://geekswithblogs.net/dotNETvinz/archive/2009/08/02/save-dynamic-textbox-values-from-gridview-to-database.aspx"]http://geekswithblogs.net/dotNETvinz/archive/2009/08/02/save-dynamic-textbox-values-from-gridview-to-database.aspx[/URL] | |
Hello everyone, I’d created mlm website which is working fine but the only problem i stop that how to show horizontal tree view, or how to show binary tree. I’d already checked this [url]http://www.codeproject.com/KB/vb/SimpleBTree.aspx[/url] [url]http://forums.asp.net/t/Next/2701209[/url] [url]http://www.codeproject.com/KB/vb/SimpleBTree/BTree_src.zip[/url] [url]http://forums.asp.net/t/1639275.aspx/1[/url] [url]http://forums.asp.net/t/1336595.aspx/1[/url] [url]http://www.codeproject.com/KB/scripting/Horizontal_JS_Tree/Horizontal_Tree.zip[/url] site but didn’t get any reference if any have idea how … | |
Re: your sql query is wrong write where condition with qoutes. like [CODE] sql="Select UserName,Password from tblStudentLogin WHERE [Username ID] ='" & trim(UserName.Text) & "' AND [Password =]'" & trim(PassWord.Text) & "' " [/CODE] try this will run. | |
hello everyone , I'm facing a problem in inserting data in TEMPORARY table. i can do it by simple query easily. but i want to do through [CODE] for Ex. i have bunch of query which i'm executing through SET @QueryText="Select ID from employees limit 5"; //it contains bunch of … | |
Re: try this code [code] con = new MySqlConnection(); con.ConnectionString = "Your Connection String"; string sql = "SELECT * FROM table1,table2;"; adpter = new MySqlDataAdapter(sql, con); adpter.Fill(ds); if (ds.Tables[0].Rows.Count == 0) { MessageBOx.Show("NO Details in Table1"); } [/code] | |
Re: You can do this also. [CODE] //form1: public Form1() { InitializeComponent(); label1.Text = ""; } private void button1_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.ShowDialog(this); label1.Text=f2.SendValue.ToString(); } //form2: public Form2() { InitializeComponent(); label1.Text = ""; } //Create your public property on form2 private uint _sendValue; public uint … | |
Re: write your codee what you have written for put the child form in second pane. |
The End.