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
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...
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...
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...
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...
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.
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...
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 =...
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...
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"]...
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...
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...
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")...
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 =...
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
{...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.