- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 8
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 2
By God's Grace, I will succeed.
- Interests
- Chess, C#, asp.net, MVC, JavaScript, jQuery, CSS, PHP, MySQL, MSSQL, SQLite, AutoCAD, Vacation, Photography,…
- PC Specs
- No Computer
58 Posted Topics
Re: change the datatype of `startDate` from `datetime` to `date` in your `sql server` This will solve the problem. | |
I inserted data in sql server using asp.net (MVC 5), and its flowing nicely, but my problem is this. I don't want to insert in sql the exist data. How can I do it? | |
I want to save an image from my computer to my project. c:\\image1.jpg to MyWebProject image folder. how can I do it? | |
How to use two models in a view using Tuple and view model and what is there diffences? | |
Re: go at `UpdateMediaProduction.cs` in line `25` copy and paste here what is in `line 25` so that we will how the exact problem. I believe the cause of this is a date format. | |
for example. name of field: f1 = "field1", f2 = "field2", f3 = "field3", f4 = "field4" how can I update the value of f2 and f3 without changing the value of f1 and f4. f2 = "new field2", f2 = "new field3" the new value of fields are. f1 … | |
Action link in my nav menu <li>@Html.ActionLink("Log Off", "Logout", "Account")</li> My Logout.cshtml codes. @{ ViewBag.Title = "Log Out"; Session.Clear(); FormsAuthentication.SignOut(); Response.Redirect("~/../Home/Index.cshtml"); } Why I can't access my logout form? | |
Re: Required Variabel SqlConnection c = new SqlConnection("your connection"); SqlDataApdapter d = new SqlDataApdapter() String q; DataTable t; Query to insert data to combobox q = "select field from table"; t = new DataTable(); d.SelectCommand = new SqlCommand(q, c); d.Fill(t); combobox1.Items.Clear(); for(int a=0;a<t.Rows.Count;a++) { combobox1.Items.Add(t.Rows[a][0].ToString()); } God Bless and Enjoy Programming. … | |
Re: Good info. Thank you Sir. | |
Re: there is no form tag. <form action="some action"> //your login code. </form> | |
Re:  This is only applicable on `menustrip` and `toolstrip`. | |
Re: Try this sir. // // This functon used to mask(multiply) two images bitmap. // public Bitmap MaskImagePtr(Bitmap SrcBitmap1, Bitmap SrcBitmap2, out string Message) { int width; int height; Message = ""; if (SrcBitmap1.Width < SrcBitmap2.Width) width = SrcBitmap1.Width; else width = SrcBitmap2.Width; if (SrcBitmap1.Height < SrcBitmap2.Height) height = SrcBitmap1.Height; else … | |
Re: start in line 62, change it to. <div class="img-con"> <div class="img-pic"> <img class="thumb" src="../images1.jpg" width="200" height="150"> </div> <div class="img-desc"> <p>Some Description.</p> </div> </div> <div class="img-con"> <div class="img-pic"> <img class="thumb" src="../images2.jpg" width="200" height="150"> </div> <div class="img-desc"> <p>Some Description.</p> </div> </div> <div class="img-con"> <div class="img-pic"> <img class="thumb" src="../images3.jpg" width="200" height="150"> </div> <div … | |
![]() | ![]() |
Re: add this to your query. `where userDob like '"+cbYear.Text+"-"+cbMonth.Text+"-%' order by userDob` example output: `where userDob like '2015-01-%' order by userDob` the format of date is `yyyy-MM-dd`: for `yyyy` represent 4 digit year. `MM` represent 2 digit month. `dd` represent 2 digit day. Happy Programming and God Bless you. | |
Re: `String[] testScore = new String[20];` this is the variable declaration of array. I know that you can do the rest. | |
Re: line 22: command.CommandText =@"select * from log where User Name='"+textBox1.Text+"' and Password='"+textBox2.Text+"'"; change in to: command.CommandText ="select * from log where [User Name]='"+textBox1.Text+"' and Password='"+textBox2.Text+"'"; | |
| |
Re: $x=1; echo $x + $x++ + $x++ + $x; x = 1 + 2 + 2 + 2; x = 7; | |
Re: put it in an events. for example. private void button1_Click(object sender, EventArgs e) { CboAuthor.Items.RemoveAt(0); } | |
Can anyone give me an example to use authentication and authotization in MVC and C#? | |
Re: You can use this site. It will convert the c# codes to VB with ease. God Bless you and happy programming. :) http://converter.telerik.com/ | |
Re: From your program to excel. the answer to your problem is: `Format the columns of excel` Excel default value: `3/11/2015 15:56:09` format: `(d/M/yyyy HH:mm:ss)` Change it to Excel custom value: `Nov. 3, 2015 03:56:09 PM` format: `(MMM. d, yyyy hh:mm:ss AM/PM)`  `Yellow box` for format, change it to … | |
Re: select desired_field1, desired_field1, desired_fieldn from table1 t1 inner join (tabl2 t2, table3 t3, table4 t4) on (t1.t2ID=t2.t2ID and t1.t3ID=t3.t3ID and t1.t4ID=t4.t4Id) | |
[Autorize] I want to set the page if the user is not currently login in MVC. How can I do it? I want to set it in "User/Login" | |
Re: Change line `68` to `sql = "insert into person values(" + str(txtname.Text) + "," + str(d) + ")";` change it to. `sql = "insert into person values('" + txtname.Text + "'," + d + ")"` from `line 52 - 59` if (dateTimePicker1.Checked == true) { d = dateTimePicker1.Value.ToString(); } else … | |
Re: we can do and solve it. but it againts the rules. read this. https://www.daniweb.com/community/rules | |
| |
Re: change line 5 from `cmdUpdate.CommandText = "UPDATE tblProducts SET proQuantity='" & txtTotalqty.Text & "' WHERE pID =" & cmbID.Text & ";"` to `cmdUpdate.CommandText = "UPDATE tblProducts SET proQuantity='" & txtTotalqty.Text & "' WHERE pID = '" & cmbID.Text & "'"` | |
Re: remove your `cookies` and restart your computer. http://www.aboutcookies.org/DEFAULT.ASPX?page=2 | |
![]() | Re: Since `April 08, 2014`, `Microsoft` has `ended their support` to `Windows XP`. Im also a `fan` of Windows XP, but the `technology is upgrading`, so `we must upgrade` to, our `skills` and also, our `computer` too. Even the `internet browser` have a `system requirements`. for more info: http://www.microsoft.com/en-us/windows/enterprise/end-of-support.aspx `Ubuntu` or … |
![]() | Re: Add this in your `Form_Load` cbSearchColumn.Items.Add("Test ID") cbSearchColumn.Items.Add("Test Name") cbSearchColumn.Items.Add("Test Address") cbSearchColumn.Items.Add("Test Description") and add this in `txtSearchString_TextChange` If cbSearchColumn.SelectedIndex = 0 Then sWhere = " where id = '" & txtSearchString.Text & "'" ElseIf cbSearchColumn.SelectedIndex = 1 Then sWhere = " where name like '" & txtSearchString.Text & "%'" … ![]() |
Re: Try this. Sub wsrt() For a = 0 To LVCart.Items.Count - 1 sql = "UPDATE ItemProduct SET stocksretail = (stocksretail - " & STOCKSWSRt & ") WHERE CODE = '" & LVCart.Items(a).Text & "'" cmd = New OleDbCommand(sql.ToString, conn) cmd.ExecuteNonQuery() Next acsdr.Close() cmd.Dispose() End Sub | |
When Im working out on MVC edit. It shows that `it must be a date`. How can I resolve This? | |
I want to insert from product (id, name, price). How can I insert it using mvc[c#], mssql manually. | |
Here's my product table. [id, name, price, description, unit] For example. I want to edit only the name and description. How can I do it in mvc? | |
Re: can you please paste your code? | |
Re: `listBox.Item.SelectedItem` for `String` and `istBox.SelectedIndex` for `Index`. | |
Re: change `line 11` from `For Sale As Integer = 0 To DataGridView1.Rows.Count` to `For Sale As Integer = 0 To DataGridView1.Rows.Count - 1` that will solve the problem. | |
What is the `advantage` and `disadvantage` of the two loops? I don't know their `deferrences` to `each other`. the truth is I don't know where will I use the `for loop` or the `foreach loop`. | |
Re: We can help you, but break it into smaller parts, so we can help you. Don't rush, always ask and you will learn. We will help you to solve it, not to do it for you. | |
Re: using System; using System.IO; using System.Security.Cryptography; using System.Text; //The required variables private static readonly byte[] initVectorBytes = Encoding.ASCII.GetBytes("tu89geji340t89u2"); private const int keysize = 256; //Here the class for encryption: public static string Encrypt(string plainText, string passPhrase) { byte[] plainTextBytes = Encoding.UTF8.GetBytes(plainText); using (PasswordDeriveBytes password = new PasswordDeriveBytes(passPhrase, null)) { byte[] … |
The End.