|
No, you don't need a computer, but I think the bike would be an unnecessary complication.
|
|
|
|
|
Hi,
I am creating a web part for Microsoft SharePoint and i need to add two controls, a userfield (to allow a user to be selected) and a date picker field. So far i have the following code:
protected override void CreateChildControls()
{
btnSubmit = new Button();
btnSubmit.Text = "Add to list";
btnSubmit.Click += new EventHandler(btnSubmit_Click);
Controls.Add(btnSubmit);
txtTitle = new TextBox();
Controls.Add(txtTitle);
dateDueDate = new DateTimeControl();
Controls.Add(dateDueDate);
userAssignedTo = new UserField();
Controls.Add(userAssignedTo);
base.CreateChildControls();
}
protected override void RenderContents(HtmlTextWriter writer)
{
btnSubmit.RenderControl(writer);
writer.Write("<br />");
txtTitle.RenderControl(writer);
writer.Write("<br />");
dateDueDate.RenderControl(writer);
writer.Write("<br />");
userAssignedTo.RenderControl(writer);
writer.Write("<br /><br />");
However, the UserField and DateTimecontrol are causing the web part not to render. I am not sure if i am using the correct field types or adding them correctly.
Any help would be great,
Thanks in advance
|
|
|
|
|
Hi,
I am using xsd.exe to generate the .cs file to serialize and deserialize the xml responce. .cs file contains number os classes. I want to use defauls xml serialization for some classes and custom serialization for some.
<Job>
<tm>
<source>source1</source_transfer_method>
<group>1</group>
</tm>
<active_flag>A</active_flag>
</job>
for the above xml responce xsd had created tow class "job" and "TM". I want to override the serialization of TM class and want to apply custome serialization to create collection (hashtable) for the elements under "TM"
When I Deserialize it both default serialization for "job" class and my custom serialization for "TM" class is not working. Please help.
Using xsd.exe generated below class
[
System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class Job
{
private string active_flagField;
.....and so on
[System.Xml.Serialization.XmlElementAttribute (Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string active_flag {
get {
return this.active_flagField;
}
set {
this.active_flagField = value;
}
}
}
public partial class TM : Hashtable, IxmlSerializable
{
public System.Xml.Schema.XmlSchema GetSchema()
{
throw new System.Exception("The method or operation is not implemented.");
}
public void ReadXml(System.Xml.XmlReader reader)
{
reader.Read();
while ((reader.Name != "TM"))
{
if (reader.NodeType == XmlNodeType.Element)
{
string key = reader.Name;
reader.Read();
string value = reader.Value;
this.Add(key, value);
}
reader.Read();
}
}
public void WriteXml(System.Xml.XmlWriter writer)
{
throw new System.Exception("The method or operation is not implemented.");
}
}
|
|
|
|
|
Hi i am new bee in crystal report, I have created necessary rpt file and bind it with a csv file, but in my one of field which is IPAddress which has value 10.169.57.101 , When I preview report it is showing 10.70 which it is rounding off but i don't want this behavior , i want to display 10.169.57.101 as it is, how can i do that. Please F1 F1 F1.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
I am looking for code in C# or in Matlab that can represent the shape using -- Region based shape representation-- and calculate the similarity between two shapes
|
|
|
|
|
Just a thought, but you might try Googling for regions in c#. You never know, it might work.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi,
I am writing a web part and need to be able to return all the field names that are in the current view.
I have created an object for the view (an SPView object) but need to know how to get out of that object the fields in the view.
Can anyone help me out here please?
Cheers
|
|
|
|
|
Anyone know of a Gantt chart control where you can drag and drop the bars (or at the least, select them and get information about which one was selected)?
TIA
|
|
|
|
|
what about this[^] or this[^]
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: what about this[^] or this[^]
The CP one is VB not C# and the other one is $480 (but looks OK!).
|
|
|
|
|
Don't you have Visual Studio ? you can convert code from VB to C# with the click of a button... well i assume. I actually use SharpDevelop[^] which, if you are not familiar with it, is essentially the same but FREE
That definitely has function to convert VB to C#
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I do have VS but definitely without VB installed.
|
|
|
|
|
this[^] or this[^] might do it for you... or you code just search for some other Gantt chart controls
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hello,
I want to create word document using c#,now i did the task to create simple word document using word DLL.
now my requirement is to make more automation on created word document through c# code,required automation as describe below...
-> Define header and footer,footer contains page number,while header contains some text but i need that header change on odd and even pages,which is property of word "Different Odd & Event Pages".
-> define the fix page size,and need to define margin from 4 different side.
so please help me to short out my requirements.
Thanks,
Kaushal.
|
|
|
|
|
Why don't you do some research and try it for yourself. WordApplication and WordDocument have many functions and properties to help you meet your requirements.
Why not start here[^]
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
hello musefan,
I have already search out on msdn as well as many more sites,but still i can get only which already i have implement,but i am not getting that much things which is describe in previous post and i am also continue with searching more.
nikunj padaliya
|
|
|
|
|
|
Hi musefan,
Thanks for your link,i can go through that and use that code for creating header on my application but when document is generated than i couldn't get the header text,it gives error like
"Error! Auto Text entry not defined."
Thanks & Regards
Kaushal.
nikunj padaliya
|
|
|
|
|
Are you tied to creating this document through automation? If not, and you are targetting Office 2003 or Office 2007, why not generate the document using WordML? What you would normally do, is generate a dummy document that matched the formatting you want, and then use this as a basis for applying the styling that you want via XML.
The advantage of this approach, is you don't need to have Word installed on a target machine to make use of this technique, which is great if you run this on a server.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
Thanks for your reply,i can understand your suggestion,for that can you provide me any example or any reference link,through which i can do it.
nikunj padaliya
|
|
|
|
|
Hi Kaushal,
Did you get the solution for your problem?
Basically, i am also having the same issue.
I want to fix the word document page size and want to repeat the header and footer for every page. Actually i am exporting a gridview to the Word Document. Its all working fine without using the Word dll.But now to get the fixed page size of the word doc and pagination in the word ..like footer should display the page number am i really need the word.dll? and if you find the solution for your problem please let me know by a reply to this post.
Thanks in advance.
|
|
|
|
|
Maybe you can try to use a c# word automation component to create word document and header,footer.Just like the Spire.Doc
|
|
|
|
|
how to drag and drop row from one datagrid to another(both datagrid are having equal number of columns) in C#.net
|
|
|
|
|
Try starting with DragData Demo[^]. Take on the principles and google for anything you don't understand.
If you try to do it and get stuck, or get errors, then post a question with sample code, full details of error etc.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi,
I have been using c# in vs 2008 (3.5) with sp1.
Restarted the machine and now I see I have lost the intellisense in the projects i.e. forms, classes..
What do I do to get the intellisense?
Thanks
|
|
|
|