Click here to Skip to main content
15,908,013 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQLCommandBuilder not working Pin
Thomas von Smolinski15-Feb-12 8:55
Thomas von Smolinski15-Feb-12 8:55 
GeneralRe: SQLCommandBuilder not working Pin
kruegs3515-Feb-12 9:22
kruegs3515-Feb-12 9:22 
GeneralRe: SQLCommandBuilder not working Pin
Shameel15-Feb-12 17:29
professionalShameel15-Feb-12 17:29 
AnswerRe: SQLCommandBuilder not working Pin
kruegs3515-Feb-12 9:35
kruegs3515-Feb-12 9:35 
Questioncrystal report Pin
sachin rathi15-Feb-12 3:04
sachin rathi15-Feb-12 3:04 
AnswerRe: crystal report Pin
Pete O'Hanlon15-Feb-12 5:54
mvePete O'Hanlon15-Feb-12 5:54 
AnswerRe: crystal report Pin
thatraja15-Feb-12 19:21
professionalthatraja15-Feb-12 19:21 
QuestionConsole Application In C# For Fetching Data From Live Website Pin
Muhammad Anwar Ul Haq Islam15-Feb-12 2:41
Muhammad Anwar Ul Haq Islam15-Feb-12 2:41 
HI,

I have a problem. I put my code which i want to do below. I have a website which is in Share point. I need to active a email alert but not using Share point. I want to create a server scheduler and this application will get information from my website about the task lists. if some tasks deadline is near then my scheduler will send email to the specific user. This console application will help me to get list items from my share point website. I also want to fetch List guids from share point web application. In short i can say i need to fetch all list items and want to store them in the form of array. Later on i will use this information and will put a flag to check if the due date is close. If the due date is coming soon then i will send an automatic email to that specific user. If you see my code which i share in my post you will find some information about this. Please let me know if you need further information.

If there is some other way to active automatic email but without using share point workflow or alert. Because share point alert are always needed to be closed manually every time if we put some schedule on them. So please anyone who has a solution please let me know..

Thanks in Advance for your help Smile | :)




C#
namespace Email
{
    
    class Program
    {
        static string siteUrl = "";
        //Todo - Get the appropriate arguments
        //Tip: List guids and other guids could be fetched from the SharePoint Web UI
        static void Main(string[] args)
        {

            try
            {
                using (SPSite testSite = new SPSite(siteUrl))
                {
                    Console.WriteLine("site url: " + testSite.Url);
                    using (SPWeb ourWeb = testSite.OpenWeb(new Guid("e94c0a67-7408-4413-a4d2-4f26275008ac")))
                    {
                        SPList ourList = ourWeb.Lists[new Guid("DEB874E1-8BE7-4AD5-A507-EE6C8DF27FDC")];
                        foreach (SPListItem ourItem in ourList.Items)
                        {
                            //todo check if a reminder is to be made
                            if (checkForRemind(ourItem))
                                Console.WriteLine("Remind!");
                            //todo remind the appropriate person by email!
                            //remindPerson();                            
                        }

                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("OOps: " + ex.Message);
            }
        }

        static bool checkForRemind(SPListItem ourItem)
        {
            bool remindIsSet = false;
            foreach (SPField ourField in ourItem.Fields)
            {
                Console.WriteLine("Field name: " + ourField.StaticName);
            }
            return remindIsSet;
        }
    }
}

QuestionDrawing Text on Panel Pin
Danzy8315-Feb-12 0:39
Danzy8315-Feb-12 0:39 
AnswerRe: Drawing Text on Panel Pin
Pete O'Hanlon15-Feb-12 1:14
mvePete O'Hanlon15-Feb-12 1:14 
GeneralRe: Drawing Text on Panel Pin
Danzy8315-Feb-12 2:05
Danzy8315-Feb-12 2:05 
GeneralRe: Drawing Text on Panel Pin
Dave Kreskowiak15-Feb-12 3:55
mveDave Kreskowiak15-Feb-12 3:55 
AnswerRe: Drawing Text on Panel Pin
Wayne Gaylard15-Feb-12 1:22
professionalWayne Gaylard15-Feb-12 1:22 
AnswerRe: Drawing Text on Panel Pin
BobJanova15-Feb-12 2:02
BobJanova15-Feb-12 2:02 
GeneralRe: Drawing Text on Panel Pin
Danzy8315-Feb-12 2:10
Danzy8315-Feb-12 2:10 
GeneralRe: Drawing Text on Panel Pin
Pete O'Hanlon15-Feb-12 2:25
mvePete O'Hanlon15-Feb-12 2:25 
GeneralRe: Drawing Text on Panel Pin
BillWoodruff18-Feb-12 1:05
professionalBillWoodruff18-Feb-12 1:05 
AnswerRe: Drawing Text on Panel Pin
Montasser Ben Ouhida2-Mar-12 4:30
Montasser Ben Ouhida2-Mar-12 4:30 
QuestionHow to create method extensions but inject into them with IoC Pin
Gizz14-Feb-12 23:08
Gizz14-Feb-12 23:08 
AnswerRe: How to create method extensions but inject into them with IoC Pin
BobJanova14-Feb-12 23:24
BobJanova14-Feb-12 23:24 
GeneralRe: How to create method extensions but inject into them with IoC Pin
Gizz15-Feb-12 0:16
Gizz15-Feb-12 0:16 
GeneralRe: How to create method extensions but inject into them with IoC Pin
BobJanova15-Feb-12 0:38
BobJanova15-Feb-12 0:38 
GeneralRe: How to create method extensions but inject into them with IoC Pin
Gizz15-Feb-12 1:41
Gizz15-Feb-12 1:41 
GeneralRe: How to create method extensions but inject into them with IoC Pin
BobJanova15-Feb-12 1:58
BobJanova15-Feb-12 1:58 
QuestionGive me some Suggestions for Make a Editor like Word Pin
Marlai14-Feb-12 21:15
Marlai14-Feb-12 21:15 

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.