It would probably be easier to change the CalendarFeed to allow access to
the base Auth methods (I thought it should, if that is not possible, can you
please file a bug against the .NET libs at:
http://code.google.com/p/google-gdata/issues/list).
When you create your AtomEntry below, can you please save that the XML it
produces to a string and show it? I am currently travelling and can not
really try to recreate this....
Frank Mantek
Google
On Thu, May 8, 2008 at 11:24 AM, manoj <[EMAIL PROTECTED]> wrote:
>
>
> First question: why are you not using the Calendar classes?
>
> I want to create web application which shold allow multiple users to
> Login from same machine.
> This is not achieved by Authentication Methods provided by
> CalendarFeed
> So I am using AtomFeed Authentication method which serves my purpose.
>
> Second question: what do you mean with "ExtensionElements.Add" is not
> working?
>
> AtomEntry contains ExtensionElements array which has values for When &
> Where Fields.
> It is where I want to add Time & Location for event.But it is not
> getting added.
> Instead event gets created with default server time & blank Event
> Location.
>
> On May 8, 1:37 pm, "Frank Mantek" <[EMAIL PROTECTED]> wrote:
> > First question: why are you not using the Calendar classes?
> > Second question: what do you mean with "ExtensionElements.Add" is not
> > working?
> >
> > Frank Mantek
> > Google
> >
> > On Thu, May 8, 2008 at 7:10 AM, manoj <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> >
> > > I am using AtomEntry to add New Event to Calendar using .Net API
> > > I am able to create event, but not able to set Event Start Time &
> > > Event End Time in ExtensionElements of AtomEntry. The event is
> > > created with same default start & end time.
> > > Please look through code snippet for your reference.
> > > Thank you.
> >
> > > CreateEvent()
> > > {
> > > AtomEntry oAtomEntry = new AtomEntry();
> > > oAtomEntry.Title.Text="some title";
> > > oAtomEntry.Content.Content ="some content";
> >
> > > XmlDocument oXD = new XmlDocument();
> > > XmlNode oXmlNode = oXD.CreateNode(XmlNodeType.Attribute,
> > > "startTime",http://schemas.google.com/g/2005");
> > > oXmlNode.Value = startTime
> > > XmlElement oxml
> > > =oXD.CreateElement(GDataParserNameTable.XmlWhenElement);
> > > oxml.Attributes.SetNamedItem(oXmlNode);
> > > XmlNode oXmlNodeEnd =
> > > oXD.CreateNode(XmlNodeType.Attribute,"endTime","http://
> > > schemas.google.com/g/2005");
> > > oXmlNodeEnd.Value = o EventTime.EndTime.ToLongTimeString();
> > > oxml.Attributes.SetNamedItem(oXmlNodeEnd);
> > > oAtomEntry.ExtensionElements.Add(oxml); //But this statement doesn't
> > > add ExtensionElement to AtomEntry
> > > }
> >
> > > Similarly, I am not able to inset Where as it is also an Extension
> > > Element that need to be added to AtomEntry.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---