- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
[code] var q = from nar in db.Narackis where nar.datum == TextBox1.Text select new { nar.ID, nar.sifra, nar.kolicina, nar.naziv }; [/code] Error Message: Error 4 Operator '==' cannot be applied to operands of type 'method group' and 'string' C:\Users\Dragan\Desktop\MegaKameriWebApp\prodavnici\Naracka.aspx.cs 20 47 C:\...\MegaKameriWebApp\ I've tried both nar.datum.toshortdatestring and nar.datum.tolongdatestring and neither … |
|
[code] protected void btnSave_Click(object sender, EventArgs e) { NarackaLINQDataContext db = new NarackaLINQDataContext(); Naracki naracka = new Naracki(); naracka.objekt = Convert.ToInt32(txtObjekt.Text); naracka.datum = txtDatum.Text; naracka.sifra = txtSifra.Text; naracka.kolicina = Convert.ToInt32(txtKolicina.Text); db.Narackis.InsertOnSubmit(naracka); Response.Redirect("Naracka.aspx"); } } [/code] there are no errors but no data is inserted into Database. Please help! |
|
i have two tabels in my database. The first is called 'Products'(consisting of the product's id and the name of the product) and the second one is called 'Orders'. Is it possible, and if yes please gimme the name of that property so I can google it up, when a … |
|
In my ASP.NET project i have 3 web forms. Login.aspx, Signup.aspx and Default.aspx. I'm using Custom Membership Provider for the login and signup controls. When a user logs in a sessions is called. How can I save all the session variables and values into MS SQL and that particular user's … |
|
Basically I'm using LINQ to connect to a database(LoginDB) and the table (Korisnici) and see if there are entries in the username and password column that fit the entries of the Login1 Login Control. The Error message is : Cannot implicitly convert type 'string' to 'bool' Cannot implicitly convert type … |
|
I need to build a program which will upload a .txt file to the server, will read it using StreamReader and the populate an existing SQL table with the concent. The first Page (profiles) does exactly that and works perfectly.. It has a text delimiter and splits the text into … |
|
The title is pretty much self-explanatory. I need to create a simple asp.net web app which will read a delimited text file and then update an existing SQL table with the content of the file. The program does not even have to display any results really.. Just to update the … |