Saturday, March 31, 2012
subst command or maybe network access issue
f. I get a System.IO.DirectoryNotFoundException when I try to open the
file. When I switch to the C drive it works fine. I gave aspnet user admin
right to make sure it wasn't a permission problem but I am still getting the
exception whatever I do unless I look at my C drive. Any idea what gives?
Thanks guys.
Chris"Chris" <cf@.NoSpamzieQuotepro.com> wrote in
news:e2H7fPO9DHA.2432@.TK2MSFTNGP10.phx.gbl:
> I'm trying to open an xml document on my computer. It is on a subst
> drive f. I get a System.IO.DirectoryNotFoundException when I try to
> open the file. When I switch to the C drive it works fine. I gave
> aspnet user admin right to make sure it wasn't a permission problem but
> I am still getting the exception whatever I do unless I look at my C
> drive. Any idea what gives?
Are the other drives you having trouble with by chance network drives?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Monday, March 26, 2012
Suggestion for ArrayOfLinkedLists and LinkedList
I miss the LinkedList class in System.Collections.Specialized very often. It would be of great use in the framework. An additional ArrayOfLinkedLists class would be great too (e.g. for implementation of a graph).
Regards,
David van LeerdamYou can find a LinkedList in the System.Collection.Generic namespace
System.Collections.Generic.LinkedList<T>
System.Collections.Generic.LinkedListNode<T
Thursday, March 22, 2012
Support/Ticket System
ThanksAnyone know where i can find a tutorial on how to build support/Ticket System using VB.NET and SQL
Thanks
Support Trouble ticket type deal
I'm trying to make a support ticket system, I would like to know
How would you display how many replies an issue hasthe date of the last replyThanks
What is your DB architecture like?
I would have 2 tables:
(1) Tickets which contains all ticket information such as title, issue, member who submitted the ticket, createDate, and TicketID.
(2) TicketReplies which contains all replies for a ticket, a createDate, and a foreign key TicketID.
You can set createDate default binding = getDate() which will return the current dateTime.
If you need to know how many replies there are for a ticket you can run:
SELECT COUNT(*)
FROM TicketReplies tr
JOIN Tickets t
ON tr.TicketID = t.TicketID
WHERE t.TicketID = (whatever the ticket is that you are interested in)
If you need to know the date of the last reply you can run:
SELECT *
FROM TicketReplies tr
JOIN Tickets t
ON tr.TicketID = t.TicketID
WHERE t.TicketID = (whatever the ticket is that you are interested in)
ORDER BY CreateDate DESC
Tuesday, March 13, 2012
Survey System with SOA?
Lets say:
We have a website, where user logins in and takes the survey. Results of survey are stored into Database. once Survey is done, user sees a thank you page/
I am trying make system very simple here, so one can explain me how to implement SOA. We have lot more complecated system to implement.
I just need to see how to implement SOA.
Any other sample or example of complete SOA will be helpful.
Thanks,No body can help me out with small sample application with SOA?
I don't need anyone to design Survey System with SOA, but any simple small app with SOA example will be helpful.
Thanks
Swaping rows in a 2 dimensional array
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;/// <summary>/// Summary description for Board/// </summary>public class Sudoku{private static Random rnd;const int colomns = 6;const int rows = 6;//encapsulationstatic int[,] Luach=new int[colomns,rows];//properties //constructorspublic Sudoku(){//// TODO: Add constructor logic here//}public static void InitGame(Label L) {int z=1;for (int r = 0; r < rows; r++) {for (int c = 0; c < colomns; c++) { Luach[r, c] = z; z++;if (z == 7) z = 1; L.Text += Luach[r, c].ToString() +" "; } z++; L.Text +="#"; } }public static void SwapRows() { }} Hello !I'm completely novice and I was given a task at school:
I
I wrote the function InitGame in my class "Sudoku" and that function writes numbers ranging from 1 to 6 when the parameter is "z" and as you can see it goes from 1 to 7 and when it gets
to "7" and goes back to "1"
Now I have a 2 dimensional array called "Luach"
the paramet for rows is "r" and for colomns is "c".
Now the next thing I have to do (and here I face difficulty) is to swap the rows N times (Using the Random)
I print the numbers in onr row and # separates between each rows (I have a 2 dimensional array).
I should write the code for it in a separate function in the class called "SwapRows:
So please tell me what to write so that I can swap the rows N times.
Thanks !!!
// -- SwapRows ------------ // // Input: Two Dimensional array, which rows to swapprivate void SwapRows(int[,] AnArray,int RowA,int RowB) {// creat a temp rowint[] TempArray =new int[AnArray.GetLength(1)];// Store Row Afor (int Col = 0; Col < AnArray.GetLength(1); Col++) TempArray[Col] = AnArray[RowA, Col];// Copy Row B onto Row Afor (int Col = 0; Col < AnArray.GetLength(1); Col++) AnArray[RowA, Col] = AnArray[RowB, Col];// Copy the Temp row onto Row Bfor (int Col = 0; Col < AnArray.GetLength(1); Col++) AnArray[RowB, Col] = TempArray[Col]; }