Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. liamba

    Wrong Format

    yeah i understand what your saying....i forgot to add to my above statement that im trying to write to the database while allowing nulls within the txtmobile field in the database. so when nothing is entered in the text box and i try to write this is when the error occurs
  2. liamba

    Wrong Format

    hi, im trying to write to a sql server database using the following code DataRow objRow = objDataSet.Tables["tblMember"].Rows.Find(Session["MemberID"]); objRow["Name"] = lblMemberName.Text; objRow["Password"] = txtPassword.Text; objRow["Address1"] = txtAddress1.Text...
  3. liamba

    Reference a Image

    the objGraphics is declared as follows Graphics objGraphics; and called in the page load InitaliseGraphics(); which calls protected void InitaliseGraphics() { objGraphics = Graphics.FromImage(objBitmap); } following this the Draw() is called. there are various errors that i...
  4. liamba

    Reference a Image

    I understand what you are saying but my lack of programming ability is holding me back. i am still having trouble saving the graph, i have created a folder "LineGraphs" to store the graph but am having difficulty with this.i have attched the code below. any help would be great. protected void...
  5. liamba

    Reference a Image

    Hi, the code below draws a line graph by getting data from a sql server database,draw the line and saving it to my C:. However i want to be able to view this graph on a image, however i cant get the image to display since im running it on my local host and the local host cant reference anything...
  6. liamba

    Graphing Problem

    No the graph never appears. Although you can see it if i look directly into my c:. Any other picture/image that i have not created will appear in the image once the code is finished.
  7. liamba

    Graphing Problem

    Hi, What i am trying to do is draw a line graph by reading data from a sql server database. while it appears to be doing this correctly the image doesnt appear once the code has finished executing. I have set a image url to equal the location of the image but with no result. it does however...
  8. liamba

    Indexing Error

    Thats works perfectly. Thanks very much.
  9. liamba

    Indexing Error

    Hi, After changing to a data row im still getting a error Operator '>' cannot be applied to operands of type 'object' and 'decimal' What i am trying to do is loop throw all the "Total" columns in my datatable and pick out the highest public void FindMaxValue() { objDataTable =...
  10. liamba

    Numbers Only Problem

    i'll try that Thank you
  11. liamba

    Numbers Only Problem

    yeah it fired when there was both a correct and incorrect value enterd.then when a correct value was entered the error message still appeared.
  12. liamba

    Numbers Only Problem

    Hi, I have some javascript code that im trying to use so as to prevent users from entering any characters except for numbers in to a ASP textbox. Im trying to call this function on the "onkeypress" of the HTML table however it doesnt seem to be working.Below is the code im trying Any help...
  13. liamba

    Numbers Only Problem

    great thanks...i'll give it a go
  14. liamba

    Indexing Error

    Hi, Im getting an error and i have no idea what it means.Hoping someone could shed some light on it for me.Thank you Cannot apply indexing with [] to an expression of type 'int' Here is the code public void FindMaxValue() { objDataTable = objDataSet.Tables["tblScore"]...
  15. liamba

    Numbers Only Problem

    Reason i was using the table was that i have 18 textboxes so thought it might be easier to call the function with that table instead of 18 separate times.i have tried what you suggested but that involves removing the ASP.NET text box which i have to use for other parts of the code. Any...
  16. liamba

    Numbers Only Problem

    Hi, I have some javascript code that im trying to use so as to prevent users from entering any characters except for numbers in to a ASP textbox. Im trying to call this function on the "onkeypress" of the HTML table however it doesnt seem to be working.Below is the code im trying Any help...
  17. liamba

    Simple Button Problem

    Hi, I'm having a problem with a button..what i wanted to happen is if the "Submit" button has being pressed then find the button and perform that code within it else just do another function. if (btnSubmit.Something == true) { Buttton btn = (Button)FindControl("btnSubmit")...
  18. liamba

    Syntax Trouble

    Hi, Im trying to read from a sql server database based on a date. The sql statement i believe is correct however it is the syntax at the end of the statement i believe is where the problem lies protected void Calendar1_SelectionChanged(object sender, EventArgs e) { string date =...
  19. liamba

    Writing to SQL Server

    hi im trying to write to a sql database from textboxes using C#, however i keep getting the following error 'System.Data.DataRow.DataRow(System.Data.DataRowBuilder)' is inaccessible due to its protection level. the code i am using is public partial class Register : System.Web.UI.Page {...
  20. liamba

    Writing to MS Access using C#

    hi, im trying to write to a ms access database using c#,however i keep running in to problems. One is A field initializer cannot reference the nonstatic field, method, or property 'Register.objConnection' the other A field initializer cannot reference the nonstatic field, method, or property...

Part and Inventory Search

Back
Top