Hi all, I am facing a problem regarding SharePoint discussion list. Scenario is simple, i have a discussion list having a site column "Status" user may update that status in the every reply. i am trying to update the parent list "Status", with the updated "status" whenever new reply is posted. please let me know if anyone know about this issue,i will be thankful to you. best regards,
free_soul424
Posts
-
SharePoint Discussion List Issue -
Connection problem with MS Exchange ServerThanks for your reply, I can login to OWA using the same username, password and domain, but it creates problem when I try it through code as I mentioned. :(
-
Connection problem with MS Exchange ServerHi, I am trying to connect with Microsoft Exchange Server using the following code
static void Main(string[] args)
{ {System.Net.ServicePointManager.ServerCertificateValidationCallback =delegate(Object obj, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{
return true;
};ExchangeServiceBinding objExchangeServiceBinding = new ExchangeServiceBinding();
objExchangeServiceBinding.Credentials = new System.Net.NetworkCredential("user", "pass", "domain.com");
//objExchangeServiceBinding.AllowAutoRedirect = true;
objExchangeServiceBinding.UseDefaultCredentials = true;
objExchangeServiceBinding.Url = "https://10.11.1.250/ews/Exchange.asmx";FindItemType request = new FindItemType(); request.ItemShape = new ItemResponseShapeType(); request.ItemShape.BaseShape = DefaultShapeNamesType.Default; request.Traversal = ItemQueryTraversalType.Shallow; request.ParentFolderIds = new BaseFolderIdType\[1\]; DistinguishedFolderIdType inbox = new DistinguishedFolderIdType(); inbox.Id = DistinguishedFolderIdNameType.inbox; request.ParentFolderIds\[0\] = inbox;
ServerVersionInfo objServerVersionInfo = objExchangeServiceBinding.ServerVersionInfoValue;
}But I get the following error “The request failed with HTTP status 401: Unauthorized.” Can anyone please tell me what the problem is? I will be thankful to you regards,
-
Mouse hittest for a rotated rectangleHi, I am facing a problem in GDI+ drawing , I have drawn a rectangle on the panel and rotated to some angle. Anyone can guide me how can I apply mouse hittest on the rotated rectangle. I will be thankful to you. I am using following code to draw and rotate the rectangle.
Matrix mx = new Matrix(); mx.RotateAt(30, new PointF(70, 70), MatrixOrder.Prepend); e.Graphics.Transform = mx; g = e.Graphics; Rectangle rect = new Rectangle (10,10,100,100);
Regards, -
Bitmap ClippingHi, I am try to clip the invisible area of a bit map. I have tried the following code. 1.Bitmap bmp = new Bitmap(100, 100); // create a bitmap 2.Graphics bmpG = Graphics.FromImage(bmp); // graphics handler to bitmap 3.bmpG.DrawRectangle(new Pen(Color.Blue), new Rectangle(1000, 1000, 99, 99)); Notice line 3, it allow me to draw the rectangle beyond the bitmap. The size of bitmap is 100 X 100 and I have drawn a rectangle at the location 1000, 1000. In think the device contexts automatically manage it. My question is that can I see the region that is not visible. Actually I want to clip the region in which my rectangle is situated. And want to show it when the user scroll. Please guide me I will b thankful. Regards,
-
Issue regarding Serialization [modified]Hi, I am facing an issue in serialization. I have a class that implement ISerializable interface. Actually I want to make my object to travel on the network. If I don’t implemetn the ISerializable interfce and use the following code I can get the same functionality.
public static Object GetSerializedObject (Object pObject)
{
try
{
BinaryFormatter objBinaryFormatter = new BinaryFormatter();
MemoryStream objMemoryStream = new MemoryStream();
objBinaryFormatter = new BinaryFormatter();
objBinaryFormatter.Serialize(objMemoryStream, pObject);
objMemoryStream.Position = 0;
Object objReturnedObject = (object)objBinaryFormatter.Deserialize(objMemoryStream);
objMemoryStream.Flush();
objMemoryStream.Close();
objBinaryFormatter = null;
return objReturnedObject;} catch (Exception objException) { throw; }
}
Please guide me which is the best practice that I should follow. Is there any difference in the approches. There is no constrant to serialize some attribute of the class, the whole object should be serialized. Regards,
modified on Tuesday, February 26, 2008 8:11 AM
-
Bring the rectangle to the frontHi, I have drawn three rectangles rect1, rect2, and rect3 respectively on a windows form. These rectangles are overlapping. Most of the portion of the rect1 is covered by rect2 and rect3. I want to bring the rect1 to the front. Is there any way please guide me I will be thankful to you. Don’t ask me to draw rect1 before rect2 and rect3. Any other solution that can bring the rectangle to the front, except change the drawing sequence. Regards,
-
Saving Bitmap in HashTableyup you may change the condition with the following code if (imgHash.Contains("1")) e.Graphics.DrawImage((Image)imgHash["1"], new Point(0, 0));
-
Saving Bitmap in HashTableUse the following code, i think it will work... public partial class Form1 : Form { Hashtable imgHash = new Hashtable(); public Form1() { InitializeComponent(); /* create new bitmap*/ Bitmap bmp = new Bitmap(100, 100); Rectangle rect = new Rectangle(12, 12, 50, 50); Graphics g = Graphics.FromImage(bmp); g.DrawRectangle(new Pen(Color.Red), rect); /* put the bitmap in hashtable*/ imgHash.Add("1", bmp); } private void Form1_Paint(object sender, PaintEventArgs e) { if(imgHash != null) this.CreateGraphics().DrawImage((Image)imgHash["1"] ,new Point (0,0)); } }
-
Shifting from .net 2.0 to .net 3.0My development environment consists of .Net 2.0, SQL server 2005, visual studio 2005 and using windows XP. Now I want to switch to .net 3.0. Can u please answer me the following questions. 1. Can I have two different .Net frameworks at a same time? 2. Can I have two different visual studio versions on same system? 3. Do I need anything more (like windows service, OS) to shift in .net 3.0 Please guide me I will be thankful to u. Regards,
-
How to get points inside polygonI tried it and it is really working fine. It is good solution. You have really solved the looping cost of my program. Thanks a lot. Regards,
-
How to get points inside polygonHi, it is really great solution, but I don’t think it will work for polygon.... :^)
-
How to get points inside polygonThanks a lot for you reply. Actually I want to check the mouse enter event for the polygon, I found two ways to check it 1. Check all the polygons coordinates and on mouse move and pick up the source polygon 2. Create a Hashtable of point and their respective polygon object. On every mouse move check that hash. I found 2nd method fast and efficient. I don’t think so it may cause out of memory, what u suggest! Please guide me about the good approach that I should fallow. Regards,
-
How to get points inside polygonHi, is it possible to get all the point inside the polygon. Scenario is quite simple; I have created a polygon on panel. Now I want to get all the points inside polygon. Can anyone tell me about any function (win32 or .net library function) or good web link, I will be thankful to you. Regards,
-
Copying columns from one DataTable to another DataTablethanks a lot for ur reply, plz tell me is there any way to copy the data without iteration. actually i want to copy the whole column in another datatable. thanks,
-
Copying columns from one DataTable to another DataTableHi, I have two datatables each table contain one column. I want to make a new data table that should contain both columns. Can u plz tell me how can I do this in c#.net. I will be thankful to you, Regards,
-
How to be come Microsoft Certified ProfessionalHI, I am looking toward the Microsoft Certifications. Actually I am bit confused which certification is good for me and which exam should I give first. I have more than 2 year experience and working on .Net framework 2.0 and Microsoft visual studio 2005. please guide me I will thankful to you. Regards,
-
Magnification AlgorithmHi, thanks a lot for your reply. Actually I am using the same method as you have described but it is bit slow and getting complex. Because I have to draw the whole drawing again. Have u seen such kind of code or any sample. Plz let me know I will be very thankful to you. Regards,
-
Magnification Algorithmhi, i am trying to implement magnification just like ACDC. Any one can guide me about magnification algorithm. i will b thankful to you. regards,
-
Printing GDI Drawing objectsI am using “System.Drawing.Printing” to print a drawing. Drawing consists a lot of rectangles, and lines. Actually my drawing is very large in size. Can any one tell me how can I devide drawing into pages. I will be thankful to you. Regards,