Posted this on Asp.Net, seems to be a hard problem, I still can't work it out
I have a edit button, this works fine, until I add the code that prevents the edit button from being seen by users who did not post that ticket. I cannot understand why this is happening. I get an error on the button says 'object reference not set in instance of object'
It happens when I add the following code:
...
User Profile
Collapse
-
HELP! Listview not working with edit button ASP.NET
Last edited by jhardman; Mar 21 '08, 06:07 PM. Reason: please stop posting .NET questions in the ASP forum. ASP has no listviews, so your question makes no sense in the ASP forum. It belongs in .NET -
Accessing indivdual columns from a xsd file - ASP.Net
How can I access the result of an SQL XSD query? I have called the tableadapter and the query but not sure how to access it:
I tried this:
Code:DataTable commentinfo = commentclass.GetCommentInfo(commentid); int userrating = Convert.ToInt32(commentinfo.Rows[0]["userrating"].ToString()); int commentposterid = Convert.ToInt32(commentinfo.Rows[0]["userposterid"].ToString());
Last edited by jhardman; Mar 17 '08, 02:55 PM. Reason: moved to the .NET forum, ASP forum is for "classic" ASP -
Thanks!
I did it by assigning the query to a string, spliting it into a array and looping though that array -
Reading values from a Query
Hi,
I want to read the result of a query I made in a .xsd file. I made a instance of the table adapter called 'address'.
Now, the query gives you the address details of a user using their login id to filter the results.
The problem is this how i call the query:
string details = Address.GetUser sAddresses(logi n);
how can i read though the columns and get the individual details...
No activity results to display
Show More
Leave a comment: