Group Forums >> web developers and designers >> ASP.NET 1.1

Rate

ASP.NET 1.1

124 Views
13 Replies Flag as inappropriate
Liquid_cooled2_max50

8 posts

back to top

Posted about 1 year ago

 

If you have knoweldge of asp.net post please



Gangstame_max50

8 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

I'm afraid you'll have to be a little more specific...  What do you want to know?

Me1_max50

97 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

I agree. What is the problem you want to solve? or is that you just want to know who has a knowledge?

Liquid_cooled2_max50

8 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

Ok sorry about that guys what I am tring to do is connect a database to my website (mssql) and I was wondering if any of you know how to get it to retrive certian fields from the database. I got it to pull some information but the most import info I need it to pull it gives me a service app error.

Pirate86_max50

8 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

ok if you google it you'll find yourself a tutorial, i kinda looked thru it alittle but of the top it looks to be related to things like commputer programing issues, you werent realy specific enough for me to tell you were to look for it so just try that.

Me1_max50

97 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

I suggest that you copy and paste your code here.  My first question is: why are you using 1.1? is it a requirement?


But anyway...if you can post your code here many people will be able to help you better. You are not being very specific and the fact you are not getting the desired result might be due to different factors.

Liquid_cooled2_max50

8 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

Another question is do you all no how to setup a blog and a forum I would like to put both of them on my site


 

Me1_max50

97 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

There are many options available for you, and your choice might change depending on your knowledge and test...or luck.


I like dotnetnuke. You get more than a blog and a forum. All of this assuming you want or have to use ASP.NET instead of other technology.


http://www.dotnetnuke.com/


 

Gangstame_max50

8 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

Yeah if you post up your code here, I'd be happy to take a look at it.  Also any error messages.


As has been said, there are a lot of ways to skin this particular cat.  Personally, I find PHP to be a lot friendlier as far as communicating with a database and generating html out of it.  Here's how easy it is to query a DB in PHP (from my personal site):


<?php

$dblink = mysql_connect('my.database.com', 'username', '********');

if (!$dblink) {

    die('Could not connect: ' . mysql_error());

}



$query = "SELECT title, author, genre, description FROM books_read ";

$query .= "ORDER BY book_id DESC LIMIT 11";



// Perform Query

mysql_query('USE dbestebbins');



$result = mysql_query($query);



// Check result

// This shows the actual query sent to MySQL, and the error. Useful for debugging.

if (!$result) {

    $message  = 'Invalid query: ' . mysql_error() . "\n";

    $message .= 'Whole query: ' . $query;

    die($message);

}

// Code to display results snipped



// Free the resources associated with the result set

// This is done automatically at the end of the script

mysql_free_result($result);



mysql_close($dblink);

?>


But if you have to use ASP.net, and you are writing your query code by hand, make sure and run them through your query browser (what this is called depends on what flavor of SQL you are running, but it basically allows you to run queries through your database manually).  Make sure that you are using the right data source , that it's all configured correctly, and the query is proper, if you are allowing Visual Studio (or some such, I assume this is what you're using since you're using ASP.net) to write your code.  If you are as you say finding some queries work and some do not, then you can rule out database connectivity issues and there is likely an issue with your query itself.  Returning null values shouldn't make your form barf, but there may be some problems with your table dependencies, table/column disambiguation, etc.  I would recommend that you research how to make your pages, at least while you're developing them, display any error information.  There's a decent thread on how to do this here:


http://forums.asp.net/t/1317998.aspx


Don't leave this functionality in your live pages though as it could be a security risk...


Hope this helps

Gangstame_max50

8 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

Oh and regarding a blog and a forum, wow maybe start a new thread on that one hehe...  But just a quick stab: there are lots of open source solutions out there.  PHPBB is a good forum solution, and Wordpress is a good PHP solution, but then again I'm biased to PHP. 


However, I am planning on writing my own blog and forum to exercise my skills.  A blog is really just a simple database table or few tables with a web front end...  You might have a table with an integer column for post ID, a varchar column for title, a varchar column for author (if you're going to have more than one writer) and a text column for the post itself.  You would then write a query to display the latest posts, and links to an archive page that would bring up past posts by date...  Start simple and go from there would be my advice.  You could add a table for comments if you want to allow them and write a comments page that uses the post ID to find associated comments...  and...  and...


Once you've conquered the blog, a forum isn't really all that more complex...  I am reading a great book that uses a simple forum as one of its coding examples (again, ahem, in PHP), and I have found it to be a great buy at 26 bucks on amazon:


http://www.amazon.com/PHP-MySQL-Dynamic-Web-Sites/dp/032152599X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1223006275&sr=8-1


Happy coding!

Me1_max50

97 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

Way to go Eric!


I also prefer PHP and MySQL over ASP.NET.


But definetelly, it's impossible to help if we don't really know where the problem is.

Liquid_cooled2_max50

8 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

Thanks guys I will have to look into php which I have never used

Me1_max50

97 posts

back to top
Rate

Rate This | Posted about 1 year ago

 

Yes, you should