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
~10K People Reached
Favorite Tags
Member Avatar for giangnt

My code here, I want only product.name being updated. How do I do this ? p/s: Give me many ways to do this public ActionResult EditProduct(Product product) { if (ModelState.IsValid) { db.Entry(product).State = EntityState.Modified; db.SaveChanges(); } return View(); }

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

{ conOOC.Open(); SqlCommand cmdDisplay = new SqlCommand("SELECT * FROM [Course] WHERE ([CourseID] = @id)", conOOC); cmdDisplay.Parameters.AddWithValue("@id", ddlCourseList.SelectedValue); SqlDataReader dtrDisplay = cmdDisplay.ExecuteReader(); while (dtrDisplay.Read()) { GridView1.DataSource = dtrDisplay; GridView1.DataBind(); } this one is depends on user select which items on the dropdownlist, once they have selected should display the gridview, but …

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

I created an application on asp.net using visual studio 2008 and i wanted it to run on IIS(Internet information server). but when you run it in the browser, it brings this error XML Parsing Error: not well-formed Location: [url]http://localhost/Default.aspx[/url] Line Number 1, Column 2:<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %> …

Member Avatar for Netcode
0
202
Member Avatar for thomas6188

Hi, Suppose i have a model with a validation [CODE]public class LoginModel { [Required(ErrorMessage="ID not entered")] [StringLength(5,ErrorMessage = "Length should be 5")] public string Id { get; set; } }[/CODE] In the view page i have a text box. When the validation fails. The controller returns to the view page …

Member Avatar for k.d.m
0
69
Member Avatar for strRusty_gal

Hi Thanks for viewing this thread. Does anyone know how to display MessageBox at C# aspx pages? Sorry i cannot use MessageBox.Show() as it does not display it when i run it with IIS. Please ask me more question if you need to. Thanks for the help

Member Avatar for Mayur Gujrathi
0
82
Member Avatar for luckyismb

How to handle "0 rows found" error while filling datatable with select query that returns 0 rows.

Member Avatar for Mitja Bonca
0
64
Member Avatar for ejazmusavi

I m trying to connect an sql express database over lan. my connection string is as below. Data Source=Mr-4f04a26307ff\sqlexpress; AttachDBFilename=F:\\Projects\\MyProj\\FirstProj\\bin\\Debug\\Database\\MyDB.mdf;Integrated Security=ture; User Instance=true; but unable to connect and throw this exception Login Failed for user 'Mr-4f04a26307ff\Guest' What is the problem with this and what is the solution. thnx

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

Please tell me what r interfaces ..... I tried to understand them myself but could not !!!??? Please help !

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

Hi, I'm developing an application which has a treeview and a crystal report viewer. There are a lot of other stuff too, but I want to make the user be able to change the size of the treeview with the mouse (see the picture) [url]http://imageshack.us/photo/my-images/3/mousedrag.png/[/url] how can I do this? …

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

Hello, I have been struggling with this for hours now. Is there any way to completely remove the icon that is displayed in the upper left corner of a window in WPF, without setting the window style to ToolWindow? I have tried loading user32 and setting various WinAPI-styles with no …

Member Avatar for k.d.m
0
1K
Member Avatar for tbanisida
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
105
Member Avatar for xanawa

Could you please tutor me on how to make this connection? (using visual studio 2008) @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DBRestaurant.mdf;Integrated Security=True;Persist Security Info=False;User ID=annamarie;TrustServerCertificate=False;User Instance=True"

Member Avatar for k.d.m
0
113
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
70
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
259
Member Avatar for Mattisc

Hello, I am trying to send files from one folder on the C drive to another using a simple C# Win forms. I have created this but unable to get it working. Can anyone help? [CODE] private void butSort1_Click(object sender, EventArgs e) { string sourceFile = @"C:\Test\test.txt"; string destinationFile = …

Member Avatar for Mattisc
0
191
Member Avatar for Zinderin

C# noob. Ok, here's what I'm trying to do ... I have a dbUtilities class I've made. And its my desire to have methods in it like "FillListBoxFromDB" .... I want to pass the listBox that will be the target, and the sql query command. I will have multiple places …

Member Avatar for Zinderin
0
118
Member Avatar for dima shawahneh

Hello every one Can we change the settings of a dll file after deployment if we can not , any alternative suggestions ? thx

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

I have an MDI form "mdi1". And another form "form1" On mdi1 I have a label "lbl1" I want to change text of lbl1 when a button on form1 is clicked. form1 is a child form of mdi1. How can i do this.

Member Avatar for Geekitygeek
0
4K
Member Avatar for aragmus

hi guys what constructors should i use for this program? [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BACKUPEXEFILES { public class cCOPY { private string _directorypath; private string _filename; public string directorypath { get { return _directorypath; } set { _directorypath = value; } } public string filename …

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

hi there, i am creating an application in visual studio 2008 standard edition. i have a form all frmMainMenu and a frmLogin and a frmAddNewProposal. i have a close button in frmMainMenu, i want to coed this so that when i click on the close button the frmLogin should appear. …

Member Avatar for Geekitygeek
0
451
Member Avatar for arc64

hi..i want that the matter in my label1 on the first page shud be copied to other page on the label present there.... and also i want that the value in drop down box that person choses on first page is copied to label on second page......... pls help....

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

Hey everyone, For logging purposes, I want to pass an entire row of my DB to a file. Is there an easy way to store a row of items into an array or something similar that I could pass to a function for parsing? e.g., array = SELECT * FROM …

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

I am new to C# and have been given someone elses' code to edit. One of the things that needs to be edited is the windows interface. Is there a way to pull up the IDE to edit the generated windows from the .designer.cs file? Thanks!

Member Avatar for ddanbe
0
125
Member Avatar for prajaktaran

Hello, I had start a thread for how to attach a database on our program. I was really thankful to daniweb. I have create project on windows application (C#) back end is SQL server2005 I have dettach my database from SQL servr2005 and attach database in Visual Studio 2008 But …

Member Avatar for k.d.m
0
110
Member Avatar for kalpa23

any one know how to search a string array for a particular value a then remove it from there without keeping a null element to find the element where the value exists and then to remove the element Please if any one know how to do it give me an …

Member Avatar for kalpa23
0
427
Member Avatar for ali_zdn

i have a windows form application, and i want that when i execute the program, program must show me the main form quickly, but my program firstly do some operations (connecting to sql, filling the combobox etc. ) because in form_load function i call a function to fill the combo …

Member Avatar for arunkumars
0
94
Member Avatar for anishnair

Friends , I am working with [B]windows application with C#[/B].As i am new to crystal reports am having a doubt. Iam displaying the report fom dataset by passing two parametes. After passing these two parametes i am binding the data into a dataset. The code is given below Dataset ds1=new …

Member Avatar for pritesh2010
0
133
Member Avatar for AngelicOne

What are this? I read this on some forums. It goes like this [CODE]da.InsertCommand = new SqlCommand ("insert into table values('')",con);[/CODE] a dataadapter calling an sql command? Could someone explain me this?

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

I have two forms named form1 and form2 respectively. And a MDI form named mdi1. I want to open form2 as a child of mdi1 when a button on form1 is clicked. How can I do this please help me.

Member Avatar for k.d.m
0
103