Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
56% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
3 Commented Posts
0 Endorsements
Ranked #1K
~10.5K People Reached

34 Posted Topics

Member Avatar for giangnt

If you want only to allow product name to be updated do not allow other fields to changed by the user. otherwise it will make user upset if the changes can not be seen when he saved. If you want you can just get the priduct name from form collection …

Member Avatar for k.d.m
0
94
Member Avatar for gahhon

Try to use datatable or dataset. Since you are using datareader it is readonly and forward way of reading one roe of data at a time.

Member Avatar for k.d.m
0
96
Member Avatar for mwenyenia07

you have to register asp.net with iis to do this you need to find aspnet_regiis which is located in this location [ if you have .net v4.0] 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319' .then navigate to that location in editor and type aspnet_regiis -i and press enter. this will register asp.net service with iis.

Member Avatar for Netcode
0
208
Member Avatar for thomas6188
Member Avatar for strRusty_gal

It is not possible to show message box in asp.net. To display a message you can use content presenter such as Label . To show some client side errors use js alert box

Member Avatar for Mayur Gujrathi
0
96
Member Avatar for luckyismb

Try to use the HasRows property in SqlDataReader to check whether there are any rows return from the query.

Member Avatar for Mitja Bonca
0
80
Member Avatar for ejazmusavi

[QUOTE]Login Failed for user 'Mr-4f04a26307ff\Guest'[/QUOTE] This problem can be easily solved using sql server management studio. You have to add guest user to the sql server.

Member Avatar for k.d.m
0
149
Member Avatar for apanimesh061

Interface can be consider as a contract. All the members and methods defined in the interface should be implemented in derived class. Two interfaces can have same method. But when implement method should be implemented as interface name.method name.

Member Avatar for k.d.m
0
117
Member Avatar for staticclass

Use mouse click and drag events. Inside the drag event if control is being clicked change the size according to the moved position.

Member Avatar for k.d.m
-1
171
Member Avatar for strmstn

you can change the icon by right clicking the project node in solution explorer and the icon that shows is displayed in application tab.

Member Avatar for k.d.m
0
1K
Member Avatar for tbanisida

[QUOTE=tbanisida;1574283]how to create pdf file from c#[/QUOTE] You should provide the question in more detail. If your requirement is only to save some record in pdf format there is built in methods to save a document as pdf files.

Member Avatar for k.d.m
0
394
Member Avatar for k.d.m

Hi, I have developed a software program using c#.net and with sql server express. When I put this into production environment this should be able only for people who has a get the software by me. Eg: If I have issues a license, it should be valid only to a …

Member Avatar for skatamatic
0
121
Member Avatar for xanawa

You can't use Integrated Security=True and user id and password in same connection string. Integrated Security=True demand to use the windows authentication credential for loging. if you use sql authentication mention user id and password in the connection string.

Member Avatar for k.d.m
0
127
Member Avatar for k.d.m

Hi, I am using VS2010. I created s ADO.net Entity data model and try to insert new object to database. Here is the code. [CODE] var cus = new StudentMaster() { studentId =5, studentName = "THA", studentAddress = "GOD" }; s.StudentMasters.AddObject(cus); s.SaveChanges();[/CODE] This didn't give any exception and it worked …

Member Avatar for kvprajapati
0
76
Member Avatar for k.d.m

Hi, I am using VS 2008 express edition. I want to use asp.net configuration tool .But when i execute the tool it is not working. It display this message in browser '[B]An error was [/B][B]encountered. Please return to the previous page and try again. [/B]'. even though i refresh the …

Member Avatar for ITchimes
0
277
Member Avatar for Mattisc
Member Avatar for Zinderin

[QUOTE] public void FillListBoxFromDB(listBox ls, string sqlCommand)[/QUOTE] There is no any Class [B]listBox[/B] .Letter L should be capital for Class ' ListBox' in namespace System.Windows.Forms;

Member Avatar for Zinderin
0
133
Member Avatar for dima shawahneh

There is a new feature Called Type Forwarding from onwards .NET 2.0. I also do not know much details about that [B] Attribute[/B]

Member Avatar for k.d.m
0
106
Member Avatar for MARKAND911

[CODE] Form f = this.MdiParent; f.Controls["label1"].Text = "Hello MARKAND911";[/CODE] This will solve your problem.Place the code inside the button Click event

Member Avatar for Geekitygeek
0
4K
Member Avatar for aragmus

Constructor that should be selected can't guess using class itself. Choosing of the Constructor vary from the your need.So select it as appropriate.

Member Avatar for k.d.m
0
139
Member Avatar for judithSampathwa

[QUOTE]in the fromClosing event I wrote the code as[/QUOTE] is this fromClosing event means the Dispose method? if no Place the code inside the Form Dispose method. [QUOTE] new frmLogin().show();[/QUOTE] Please Try to give the code in details.

Member Avatar for Geekitygeek
0
495
Member Avatar for arc64

Making a controls access modifier to public is not a good way of programming.Instead of that use [B]properties[/B] which is more flexible way of setter and getter method

Member Avatar for k.d.m
0
196
Member Avatar for Duki

[QUOTE]For logging purposes, I want to pass an entire row of my DB to a file[/QUOTE] In this case you only concern with one row and use the Adapter Class. So using the Adapter fill data in to DataSet and using that youcan get that data row and easily write …

Member Avatar for k.d.m
0
170
Member Avatar for kelskels

Designer.cs class contain all the details of designing .code class (.cs) and designer class are partial.In run time both classes are combined and execute as a one;

Member Avatar for ddanbe
0
142
Member Avatar for prajaktaran

if you use the wizard in making report ,why are you specifying the database path? Try to just give the report source in report viewer.

Member Avatar for k.d.m
0
130
Member Avatar for kalpa23
Member Avatar for ali_zdn

Use timer control .Using that you can manage the execution of Sql Statements after any time interval.

Member Avatar for arunkumars
0
108
Member Avatar for anishnair

DataSet can have many tables. Instead of using another DataSet add report header details to that second dataset table and pass the whole dataset not only the first table

Member Avatar for pritesh2010
0
151
Member Avatar for AngelicOne

insertCommand property in SqlDataAdapter Class accept T-Sql Statement.Using the instance of SqlCommand we can provide T-Sql Statement to insertCommand property. SqlCommand Class is used to specify what type of interaction we want to perform with database

Member Avatar for k.d.m
0
105
Member Avatar for MARKAND911

Add this code inside the button click event form2 frm2=new form2(); frm2.MdiParent = mdi1.ActiveForm; frm.Show();

Member Avatar for k.d.m
0
120
Member Avatar for reza.adinata

int count=0; private void timer1_Tick(object sender, EventArgs e) { count++; //Picture 2 display after 30 seconds if(count==30) { FunctImage2(); timer1.stop; count=0; } } private void InitTimer() { timer1.Enabled = true; timer1.Interval = 1000; } private void btnAddMore_Click(object sender, RoutedEventArgs e) { FunctImage(); InitTimer(); }

Member Avatar for reza.adinata
0
157
Member Avatar for NargalaX

In GUI Constructor write this code clock.Enabled=true; write this code inside timer click event section Label1.Text = GetDate(); private string GetDate() { string hour, min, second; hour = DateTime.Now.Hour.ToString(); min = DateTime.Now.Minute.ToString(); second = DateTime.Now.Second.ToString(); return (hour + ":" + min + ":" + second); } [QUOTE=NargalaX;936419]I'm making a program …

Member Avatar for k.d.m
0
119
Member Avatar for k.d.m

Hi every one ; i need to change default printer settings,especially tray selection method . please help me.

Member Avatar for ddanbe
0
98
Member Avatar for jaaam

READ PROGEAMMERS HEAVEN PDF DOCUMENT. IT IS A REALLY GOOD ARTICLE [QUOTE=jaaam;935677]I am very new to c#. I would like to get into c#. Kindly give me suggestions in where to start c# with. Suggest me some books too. Is "Head First C#"book is that good for begginers Thanks, Jam …

Member Avatar for k.d.m
0
175

The End.