Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
81% Quality Score
Upvotes Received
11
Posts with Upvotes
11
Upvoting Members
11
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
1
4 Commented Posts
1 Endorsement
Ranked #858
Ranked #309
~86.1K People Reached
Favorite Tags

196 Posted Topics

Member Avatar for "ICode"

For this you need to use some SMS gateways and for this you need to pay amount. It's not free. Visit below link it has nice example.. [URL="http://www.codeproject.com/KB/aspnet/SendingSMS.aspx"]http://www.codeproject.com/KB/aspnet/SendingSMS.aspx[/URL] [QUOTE="ICode";1376310]i dont know if im suppose to post it here or in the C# form, but since im using it in a …

Member Avatar for anand9796
0
2K
Member Avatar for jbisono

can't you use [COLOR="red"][COLOR="red"]TreeView.Controls.Add()[/COLOR][/COLOR] method ? becuase Treeview has controls collection. =========================================================================================== [QUOTE=jbisono;1219219]Hello friends, I am trying to approach a procedure but i am stock trying to add a DropDownList control into a TreeView Control, there is no TreeNode.Control.Add(). can somebody give an idea how can i go for this. …

Member Avatar for benny300
0
2K
Member Avatar for Nada_ward

[QUOTE=Nada_ward;1215667]Hello How I can retrive table names from SqlData base I Just connect to DB. and now I want to display all tables name in combobox. how I can do that?? thanks[/QUOTE] hey dude - You can use either [COLOR="Red"]sysobjects [/COLOR]or [COLOR="Red"]information_schema.Tables[/COLOR] of sql server to retrieve the table name …

Member Avatar for Karthic_1
0
2K
Member Avatar for maria_mj

No you can't use "select * into yourbackuptable from yourtable " , because it's only used when you don't have table created in your database and it will create the same table as "yourtable" with same table schema. If the table is exist then it gives the error... As you …

Member Avatar for wria12
0
6K
Member Avatar for laghaterohan

do you have remove button for each row in gridview or a single remove button ? [QUOTE=laghaterohan;1238455]Ne other simple method will also do.....please suggest....i need it urgently.... Cya Rohan[/QUOTE]

Member Avatar for Mortimertefo
0
571
Member Avatar for Pankaj18

I say instead of setting yes/no , try to set it by true/false. ======================================================================================== [QUOTE=Pankaj18;1250241]Hi, I want to disable resize of popup window. I am using following code but this is not working in any browser. [B]My Code::[/B] [I]window.open(url,'POPUP', "width=360,height=400,toolbar=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no");[/I] And when i m using <BODY Onload='noresize'>. This code working …

Member Avatar for Dalbir_1
0
358
Member Avatar for snehalj

You can set the [B]TextMode [/B]property of Textbox to [B]Password[/B]... [QUOTE=snehalj;1364304]i have one textbox for password, n i want to set character for password, so which property can be used?[/QUOTE]

Member Avatar for Mayur Darji
0
331
Member Avatar for TheDocterd

The error is not coming up because of [B]"using System.Data.SqlClient"[/B] namespace. But the error is clearly saying that you have passed some [B]wrong parameters/arguments [/B]in [B]SqlCommand()[/B] constructor. That's why it's throwing error. Can you please show your code where you are using SqlCommand() and getting this error ? Thanks, Rohan …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for ranu jain

If you are sending an email through [B]SSL SMTP like gmail[/B], then you must need to set [B]smtpClient.EnableSsl = true[/B]. Another thing PasswordRecovery wizard automatically send an email So you need to stop it by setting [B]e.Cancel = true [/B]by handling [COLOR="Red"]SendingMail() [/COLOR]event of PasswordRecovery wizard and in the event …

Member Avatar for azapovjednik
0
242
Member Avatar for anglerman247

there is not difference in sending and receiving email code. from the given code you will receive email on speciified email id in [B]mail.To [/B]property. [QUOTE=Siddharthasharm;1295145]We NEED Email receieveing Code.. becoz sending is too much easy...........lol can we read emails in text form...[/QUOTE]

Member Avatar for tej kharka
0
500
Member Avatar for krunalkakadia

[QUOTE=krunalkakadia;1211396]hi guys, i m displaying news titles & it's contents using repeater control. pictorial representation: news Title 1 news Title 2 news Title 3 news Title 4 now, when i click on news Title 1,it's content should appear from my database in between news title 1 and news title 2.same …

Member Avatar for Atul Dhiman
0
222
Member Avatar for KushMishra

hey dude - Put this line [COLOR="Red"]GridView1.EditIndex = -1;[/COLOR] after [B]conn.Close()[/B] in RowUpdting event.

Member Avatar for showet
0
231
Member Avatar for coroll

you can do something like below [CODE] foreach (Form form in Application.OpenForms) { if (form is formProd) form.itemsGridView.DataSource = DS.Tables["product_Header"]; } [/CODE] [QUOTE=coroll;1457072]Hi!, I have a formProd and a dataGridView in it. I want to access the dataGridview of formProd from formMain. [CODE] foreach (Form form in Application.OpenForms) { formProd …

Member Avatar for coroll
0
149
Member Avatar for glyvery.happy

Your code seems incorrect to me. I have one question, why are you setting DataSource property of Combobox again in Selection Index Changed event ? Try to use below modified code. [CODE] ***Code of Form Load event********* da.Fill(ds) comboBox1.DataSource = ds; comboBox1.DisplayMember = "Stud_Id"; comboBox1.ValueMember = "Stud_Id"; comboBox1.Items.Insert(0, "---Select----"); //no …

Member Avatar for rohand
0
2K
Member Avatar for kgenn

You don't need to use Insert into statement to show data in gridview. You can directly store those data coming from textbox into DataTable by creating new DataRow and Add this DataRow to DataTable Rows collection. Once you will add the row to DataTable, you need to bind your DataTable …

Member Avatar for vuyiswamb
0
174
Member Avatar for xZombeast

The error is saying that your file is [B]somewhere open or used by some other process[/B]. That's why it's throwing error " File in use. ". So just make sure that the file source/target not open anywhere or not used by any other process.. [QUOTE=xZombeast;1466608]I made my IO exception and …

Member Avatar for rohand
0
132
Member Avatar for virusisfound

The best way is that [B]You should have to store your connection string in configuration file (app.config/web.config)[/B] and read it from there in your coding. So that it will not create any trouble if you are installing it on any other computer. Another benefit is when you need to make …

Member Avatar for virusisfound
0
241
Member Avatar for pacheco

You can do it with the help of OleDbCommand easily. Your code looks like below : [CODE] objCmd = new OleDbCommand(); objCmd.Connection = objCon; objCmd.CommandText = "Update table1 Set username=@username, password=@password Where username=@uname"; objCmd.Parameters.AddWithValue("@username", combobox1.Text); objCmd.Parameters.AddWithValue("@password", txtPassword.Text); objCmd.Parameters.AddWithValue("@uname", combobox1.Text); objCon.Open(); objCmd.ExecuteNonQuery(); objCon.Close(); [/CODE] [QUOTE=pacheco;1464534]Hi, Let's say i have 2 boxes, …

Member Avatar for pacheco
0
128
Member Avatar for NewOrder

hey I believe there is [B]no difference between winform application and windows form application[/B]. Is there any ? The first code portion in your thread is of [B]Console application[/B] that's why it has [B]Main(string[] args)[/B] method within a cs file. In the Windows form or winform application, there is [B]program.cs[/B] …

Member Avatar for NewOrder
0
162
Member Avatar for Tellalca

what you really want ? you can use [B]Tick [/B]event of [B]Timer [/B]class and check conditions inside the event.. [QUOTE=Tellalca;1461864]Hey; In my application I want to count number of seconds while the application is waiting for the user input. I think I should use another thread but I never worked …

Member Avatar for rohand
0
628
Member Avatar for revjim44

You can use [B]Equals ( )[/B] method of string class to compare the value. The best way is to compare your string with either the upper case or lower case letter. See the below modification : [B][COLOR="Red"]while (!playerName[count].ToString().ToUpper().Equals(endProgram))[/COLOR][/B] try by it and let me know... [QUOTE=revjim44;1461435][CODE]using System; using System.Collections.Generic; using …

Member Avatar for rohand
0
161
Member Avatar for virusisfound

What the problem is ? are you getting any error ? show us your some efforts that what you have done so far ? [QUOTE=virusisfound;1459213]I understand the concept. But. I have create my table at run time. when new table is create then the data of that table show in …

Member Avatar for virusisfound
0
265
Member Avatar for umamahesh2020

Can you please let us know what the error is coming up when you are exporting data to excel file ? [QUOTE=umamahesh2020;1460645]I getting an error that one when click on the Export Button in the show shows the data of GridView Along with PageIndexing NUmbers also [CODE] protected void btnexcel_Click(object …

Member Avatar for umamahesh2020
0
154
Member Avatar for shwetank11

In the SQL query, you can do something like below in your query.. [B]Select Mark1, Mark2, Mark3, Mark1 + Mark2 + Mark3 As Total From yourtablename[/B] Now in the front end side, only fire the above query, store the result into datatable and bind your data table to your gridview.. …

Member Avatar for rohand
0
72
Member Avatar for bhagawatshinde

In the CellContentClick event of DataGridview in your child form, you need to write the code. In the event you need to create the object of your Parent form. Now once you have object of your Parent form, you can access public field of your parent form. Set the value …

Member Avatar for Mitja Bonca
0
348
Member Avatar for Mr.BunyRabit

Yes you can do it without gridview.. you just need to write a Updatae query to update the data in database.. your code looks like below.. [CODE] OleDbCommand objCmd = new OleDbCommand(); objCmd.Connection = objCon; objCmd.CommandText = "Update yourtablename Set col1=@col1, col2=@col2 Where idcolum=@idcol"; objCmd.Parameters.AddWithValue("@col1", txtnam.Text); objCmd.Parameters.AddWithValue("@col2", txtnam.Text); objCmd.Parameters.AddWithValue("@idcol", txtID.Text); …

Member Avatar for Mr.BunyRabit
0
287
Member Avatar for uchiha203

I suspect the error is coming from either of `e.CommandName` line or from `e.CommandArgument.ToString()` line. Just let me know one thing, did you set the `CommandName` and `CommandArgument` property of your Download command button in gridview. Also why are you using Split( ) function ? > Hi guys, I just …

Member Avatar for uchiha203
0
173
Member Avatar for Pari13

Put one[COLOR="Red"]Label [/COLOR]on your aspx page where you have dragged your report viewer control. Then check with your datasource. I mean [COLOR="red"]If (DataTable or DataSet.Tables["yourtablename/index"].Rows.Count == 0)[/COLOR] then [COLOR="red"]"Print message No recreds available"[/COLOR] in Label. Hope it will help you. [QUOTE=Pari13;1317259]Hello Developers, I am developing an web application and i …

Member Avatar for Pari13
0
683
Member Avatar for rohand

Hi Team - do you guys have any idea how to use windows application form controls within windows service ? Actually i want to build reminder application which will show popup message in Tray icon of System within a given time interval. I don;t want on daily basis user run …

Member Avatar for vuyiswamb
0
198
Member Avatar for AngelicOne

You can also do the same thing in [B]RawDataBound [/B]Event of GridView. In the event, you just need to find the hyperlink column by it's ID in like below : [B]DataRowView rowView = (DataRowView)e.Row.DataItem; Hyperlink hLink = e.Row.FindControl("id of hyperlink"); hLink.Text = hLink.NavigateURL = "test.aspx?empid=" + rowView["emp_id"].ToString();[/B] Now on the …

Member Avatar for crishjeny
0
2K
Member Avatar for pooja_shah

Yes I am agree with finito. regarding your question, it's not that's much difficult. you can create your Insert statement dynamically by checking condition. For example you have two fields name and qualification(nullable) in your table. So your code may looks like string strSQL = ""; strSQL = "Insert Into …

Member Avatar for crishjeny
0
75
Member Avatar for kayfar

Can you please explain in detail where and why you want to use? anothething it's also very simple to define If..Else . [QUOTE=kayfar;1290368]can anyone tell me how to use if else statement using c# and MS Access database..this is my code.. [CODE] protected void Button2_Click(object sender, EventArgs e) { string …

Member Avatar for crishjeny
0
315
Member Avatar for manavsm

The easiest way is, as you are using [COLOR="Red"]PostBackUrl [/COLOR]property you don't need to pass vlaue in querystring instead you can access your entire GridView control of current page on Default3.aspx page. Below is the code to access entire GridView. [CODE]GridView grid = (GridView)PreviousPage.FindControl("GridView1"); txt1.Text = grid.SelectedRow.Cells[2].Text; txt2.Text = grid.SelectedRow.Cells[3].Text;[/CODE] …

Member Avatar for crishjeny
0
2K
Member Avatar for naka1888

I believe the error is occuring from your SQL Delete statement/query. Can you please put some line of your code ? [QUOTE=naka1888;1290179]Hi, I have a simple grid view that i want to be able to delete rows from by clicking the delete button that's automatically created. Every time I click …

Member Avatar for crishjeny
0
237
Member Avatar for jellybeannn

I believe the error is from below statement you have written : [CODE] pInsert[0] = new SqlParameter("@i1", [COLOR="Red"]SqlDbType.Int[/COLOR], 5, [COLOR="Green"]customer_dd.SelectedValue.ToString()[/COLOR]);[/CODE] Look the red highlighted portion, you have defined the datatype as "Int" and you are trying to store string value (see the green highlighte portion). If you want to store …

Member Avatar for crishjeny
0
125
Member Avatar for kali Annan

I believe we don't need to fetch all the rows from UserLogin table and then check the username and passworkd user has entered. Instead we pass the entered username and password in Where clause and save the execution time. and always at the end of operation close datareader.

Member Avatar for nigelzephyr
0
453
Member Avatar for harika.k

You can do it in following way : [CODE] SqlDataAdapter objAdpt; SqlConnection objCon = new SqlConnectin("your database connection string"); DataTable objDt; now in the Click event of Button say "OK" button click event.. objAdpt = new SqlDataAdapter("Select * from yourtablename WHERE UserID=' " + textBox1.Text.Trim() + " ' , Password …

Member Avatar for vijaykrishnabor
0
2K
Member Avatar for AngelicOne

You can do in below way : Create table Book_Author(joincolum As bookid+authorid) [QUOTE=AngelicOne;1360810]I have a book table and a author table which contains book id for the book tbl and author id for the author tbl. Then I create another table which is Book_Author and it must have the book …

Member Avatar for AngelicOne
0
100
Member Avatar for eng.amira

Show us some of your efforts or code you have done so far...So that here experts can take a look and give you solution.. [QUOTE=eng.amira;1362267]Hello i am working now to design a new website my problem is that i cannot insert in to my DB i use access as my …

Member Avatar for eng.amira
0
92
Member Avatar for AngelicOne

You need to make your query dynamic based on the selection of your combo boxes.. take a look in below code it may help you... string strQuery = ""; string strOrderBy = ""; string strWhere = ""; strQuery = "Select * from " + searchfromtablecombo.SelectedItem.Text; strWhere = " Where filedname …

Member Avatar for rohand
0
101
Member Avatar for amar_devloper

See you can't directly use the event of your gridview which is there in your custom user control. You muse need to use Events and Delegates to achieve this.. Handle the event in your custom control for Gridview.. Let say event for RowCommand()... So code looks like below in your …

Member Avatar for rohand
0
1K
Member Avatar for MichaelWClark

Hey Michael visit below link..It has nice explaination about Paging with Storedprocedure..I believe it will help to you.. [URL="http://www.codeproject.com/KB/database/CustomPagingStoredProc.aspx"]http://www.codeproject.com/KB/database/CustomPagingStoredProc.aspx[/URL] [QUOTE=MichaelWClark;1352786]I created a stored procedure to handle paging and sorting. Linked a LinqToSql to it and bound my gridview from that. I use my Gridview.PageSize to determine how many results to …

Member Avatar for MichaelWClark
0
368
Member Avatar for erum

The error is saying that your "[B]CheckSurveyExistCompletedEventArgs[/B]" class is not defined/exist in "[B]VotingPanel2.ServiceReference3[/B]" namespace. You just need to follow the below steps : 1) Just make sure that "[COLOR="Red"]CheckSurveyExistCompletedEventArgs[/COLOR]" class exist in the namespace. 2) remove the reference of "[COLOR="red"]VotingPanel2.ServiceReference3[/COLOR]" from your silverlight project. 3)Once again Build "[COLOR="red"]VotingPanel2.ServiceReference3[/COLOR]" project. 4) …

Member Avatar for erum
0
143
Member Avatar for amitchawla

Why are you using WHILE loop ? You can directly write **SWITCH...CASE** statement without iterating through WHILE loop. Anotherthing You are checking **WHILE(1)** So it will be alwayz true and your loop will be never **terminates**. So it will become **infinite**... > start quote: using System; using System.Collections.Generic; using System.Linq; …

Member Avatar for rohand
0
125
Member Avatar for shrikant76

The reason is that you are returning True/False withing Foreach loop. cosider the case if your XML file doesn't have "User" node. Then your ForEach loop never gets execute. So your function will never return a value.. So put your If condition outside the ForEach loop... like below [CODE] foreach((XmlNode …

Member Avatar for rohand
0
930
Member Avatar for new SE

The reason is it's exceeding the size of int. You can store the data in between [B]-2,147,483,648[/B] to [B]2,147,483,647[/B] [QUOTE=new SE;1350510]int.. in the usp also int..it's happens only if i'm insert 9999999999[/QUOTE]

Member Avatar for new SE
0
749
Member Avatar for jbisono

I don;t have any idea about your requirement but do [B]AutoPostBack = false [/B]for your dropdown. Or, put your controls inside [B]UpdatePanel [/B]of Ajax.. [QUOTE=jbisono;1348192]Hi all. originally i have this problem [URL="http://www.daniweb.com/forums/thread283467.html"]http://www.daniweb.com/forums/thread283467.html[/URL] everything works good in IE but in firefox if i try to change the dropdownlist attach to the …

Member Avatar for jbisono
0
196
Member Avatar for vinc_1418

You can do something like below : [CODE] StreamReader objSR = new StreamReader("Filepath"); string strLine = ""; while((strLine = objSR.ReadLine())!= null) { if(!strLine.Contains("text of heading")) // make sure you are not inserting heading in text box.. { textBox1.Lines = (string[])strline; // It will append line to textbox. } } [/CODE] …

Member Avatar for MichaelWClark
0
81
Member Avatar for karthiknbc

Can you please let us know what you are trying to do and this error is coming up ? Put the code and give us some proper explaination, So that here guys can trap the issue and give you correct solution.. [QUOTE=karthiknbc;1339826]'System.Data.SqlClient.SqlTransaction' in Assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not …

Member Avatar for karthiknbc
0
245
Member Avatar for subhankar02dey

You can define TemplateField -> ItemTemplate -> define <asp:HyperLink> in your GridView. [CODE] <asp:TemplateField HeaderText="Click"> <ItemTemplate> <asp:HyperLink ID="link1" runat="server" ></asp:HyperLink> </ItemTemplate> </asp:TemplateField> [/CODE] Now you just need to handle RawDataBound Event of GridView. In the event, you just need to find the hyperlink column by it's ID like below : …

Member Avatar for siju kuriakose
0
3K

The End.