- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
34 Posted Topics
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 …
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.
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.
store the values in ViewState property
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
Try to use the HasRows property in SqlDataReader to check whether there are any rows return from the query.
[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.
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.
Use mouse click and drag events. Inside the drag event if control is being clicked change the size according to the moved position.
you can change the icon by right clicking the project node in solution explorer and the icon that shows is displayed in application tab.
[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.
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 …
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.
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 …
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 …
Specify if there any errors or the exception Message
[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;
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]
[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
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.
[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.
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
[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 …
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;
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.
Use timer control .Using that you can manage the execution of Sql Statements after any time interval.
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
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
Add this code inside the button click event form2 frm2=new form2(); frm2.MdiParent = mdi1.ActiveForm; frm.Show();
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(); }
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 …
Hi every one ; i need to change default printer settings,especially tray selection method . please help me.
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 …
The End.
k.d.m