Click here to Skip to main content
15,887,454 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Mini-registration Check if Room is booked or open Pin
Bernard Grosperrin8-Jun-13 1:30
Bernard Grosperrin8-Jun-13 1:30 
QuestionLooking for ideas for custom WYSIWYG editor for LED display Pin
Member 1008696031-May-13 10:15
Member 1008696031-May-13 10:15 
AnswerRe: Looking for ideas for custom WYSIWYG editor for LED display Pin
Jasmine25015-Jun-13 12:30
Jasmine25015-Jun-13 12:30 
QuestionWhat is the difference between DBContext class and ObjectContext ? Pin
Rockstar_30-May-13 23:29
professionalRockstar_30-May-13 23:29 
AnswerRe: What is the difference between DBContext class and ObjectContext ? Pin
Richard MacCutchan31-May-13 10:42
mveRichard MacCutchan31-May-13 10:42 
QuestionDispaly picture news widh rss reader Pin
mehdin6930-May-13 22:43
mehdin6930-May-13 22:43 
AnswerRe: Dispaly picture news widh rss reader Pin
mehdin6931-May-13 10:09
mehdin6931-May-13 10:09 
QuestionReturning true/false in a boolean function Pin
WickedFooker30-May-13 13:13
WickedFooker30-May-13 13:13 
I am trying to say if a teacher is already teaching 3 classes flag it by returning a true if so, or a false if not. I have it counting the rows (or so I thought), but it is saying the way I did it is not correct. That Tables[0] is invalid.


C#
private bool ValidateTeacher(string TeacherID, String Semester)
   {
       // Populate Room and add Please Select
       string path = Server.MapPath("eAcademy_DB.mdb");
       string connectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" + path;
       string commandText = "SELECT COUNT(*) FROM tblClass WHERE emp_ID=? and sem_Time=?";

       var ds6 = new DataSet();

       using (var connection = new OleDbConnection(connectionString))
       using (var command = new OleDbCommand(commandText, connection))
       {
           // OleDbCommand uses positional, rather than named, parameters.
           // The parameter name doesn't matter; only the position.


           var adapter = new OleDbDataAdapter(command);
           if (ds6.Tables[0].Rows.Count > 3)
           {
               return false;
           }
           else return true;

       }
   }

AnswerRe: Returning true/false in a boolean function Pin
Joshua Omundson30-May-13 13:29
Joshua Omundson30-May-13 13:29 
AnswerRe: Returning true/false in a boolean function Pin
Muhammed Yaseen5-Jun-13 2:46
Muhammed Yaseen5-Jun-13 2:46 
QuestionHTTP requests and Cookies (HTTP Client) - Help pls!! Pin
expertvision30-May-13 2:43
expertvision30-May-13 2:43 
QuestionResizing a webpage according to the screen size/ Resolution Pin
revathilavi29-May-13 19:37
revathilavi29-May-13 19:37 
AnswerRe: Resizing a webpage according to the screen size/ Resolution Pin
Jasmine250130-May-13 9:57
Jasmine250130-May-13 9:57 
GeneralRe: Resizing a webpage according to the screen size/ Resolution Pin
revathilavi30-May-13 18:16
revathilavi30-May-13 18:16 
AnswerRe: Resizing a webpage according to the screen size/ Resolution Pin
Bernhard Hiller30-May-13 21:40
Bernhard Hiller30-May-13 21:40 
GeneralRe: Resizing a webpage according to the screen size/ Resolution Pin
revathilavi30-May-13 23:15
revathilavi30-May-13 23:15 
AnswerRe: Resizing a webpage according to the screen size/ Resolution Pin
dusty_dex30-May-13 22:59
dusty_dex30-May-13 22:59 
Questionoracle ref cursor Pin
jeeva9929-May-13 9:14
jeeva9929-May-13 9:14 
QuestionColor.Translator.FromHtml inside off @Html.DisplayFor Issue -Razor Pin
Alem.B28-May-13 3:06
Alem.B28-May-13 3:06 
AnswerRe: Color.Translator.FromHtml inside off @Html.DisplayFor Issue -Razor Pin
Ali Al Omairi(Abu AlHassan)28-May-13 19:41
professionalAli Al Omairi(Abu AlHassan)28-May-13 19:41 
GeneralRe: Color.Translator.FromHtml inside off @Html.DisplayFor Issue -Razor Pin
Alem.B29-May-13 21:48
Alem.B29-May-13 21:48 
JokeRe: Color.Translator.FromHtml inside off @Html.DisplayFor Issue -Razor Pin
Ali Al Omairi(Abu AlHassan)1-Jun-13 21:19
professionalAli Al Omairi(Abu AlHassan)1-Jun-13 21:19 
AnswerRe: Color.Translator.FromHtml inside off @Html.DisplayFor Issue -Razor Pin
poongunrans28-May-13 20:04
poongunrans28-May-13 20:04 
GeneralRe: Color.Translator.FromHtml inside off @Html.DisplayFor Issue -Razor Pin
Alem.B29-May-13 21:51
Alem.B29-May-13 21:51 
AnswerRe: Color.Translator.FromHtml inside off @Html.DisplayFor Issue -Razor Pin
Richard Deeming29-May-13 2:49
mveRichard Deeming29-May-13 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.