|
The webservice object has a URL property.
You should be able to use this to do what you require.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG picture :: my first abstract photo
|
|
|
|
|
I am developing a web application that displays information in a datagrid. As users navigate the data, the datagrid redisplays new data. I am running into a problem when the users us the back button in their browser and the datagrid getting out of sync. How can I keep this information in sync? What techniques are used to synchronize this information? Thanks in advance.
|
|
|
|
|
Hi Folks,
Is there an easy way in C# to get the \Documents and Settings\CurrentUser\Application Data folder path?
Thanks
Davy
My Personal Blog - Homepage. Scottish News - Angus Blog, Perth Blog and Dundee Blog
|
|
|
|
|
Application.CommonAppDataPath or Application.LocalUserAppDataPath
Also this shell method do it:
SHGetSpecialFolderLocation()
Mazy
No sig. available now.
|
|
|
|
|
|
hi,
i want to create a xml document like b4 format. i did sth with xmlnode, xmldocument... but, i still can't add attribute to "chartdataisland"...
can anyone help?
XML Doc:
<?xml version="1.0" encoding="utf-8" ?>
<chartdatalist>
<chartdataisland legend="Phase 01">
<chartdata>
<x>5</x>
<y>73.3</y>
</chartdata>
</chartdataisland>
<chartdataisland legend="Phase 02">
<chartdata>
<x>5</x>
<y>23.3</y>
</chartdata>
</chartdataisland>
<chartdataisland legend="Phase 03">
<chartdata>
<x>5</x>
<y>12.3</y>
</chartdata>
</chartdataisland>
</chartdatalist>
CODE:
XmlDocument doc = new XmlDocument();
doc.LoadXml("<?xml version=\"1.0\"?>" + "<chartdatalist>"+"</chartdatalist>");
XmlNode dataislandElem = doc.CreateNode(XmlNodeType.Element, "chartdataisland", "");
XmlNode dataElem = doc.CreateNode(XmlNodeType.Element, "chartdata", "");
XmlNode XElem = doc.CreateNode(XmlNodeType.Element, "x", "");
XElem.InnerText="12";
XmlNode YElem = doc.CreateNode(XmlNodeType.Element, "y", "");
YElem.InnerText="24";
dataElem.AppendChild(XElem);
dataElem.AppendChild(YElem);
dataislandElem.AppendChild(dataElem);
XmlElement root = doc.DocumentElement;
root.AppendChild(dataElem);
|
|
|
|
|
Have you tried using the XmlTextWriter class? It has a number of methods for writing the nodes, and the one you'd need WriteAttributeString() .
|
|
|
|
|
XmlDocument.CreateAttribute() ?
Mazy
No sig. available now.
|
|
|
|
|
|
Hi this is kind of an embarassing question- do I actually need to run an SMTP server to send an email? What I want to do is have my desktop windows app (Form) send an email when the user clicks a button. If the user installs my app, do I need to also install an SMTP sever on the user's local machine?
I've read a lot about using the System.Web.Mail stuff. But I'm getting the "Could not access 'CDO.Message' object." error when I set SmtpMail.SmtpServer="localhost".
I tried all the suggested fixes- I have Outlook installed, I'm using valid addresses for To and From, I tried setting SmtpMail.SmtpServer to "".
Do I have to install an SMTP server on the user's machine in order to send an email?
thanks
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Bog wrote:
Do I have to install an SMTP server on the user's machine in order to send an email?
No...you just need to point to the user's SMTP server at their ISP...
I passionately hate the idea of being with it, I think an artist has always to be out of step with his time.
-Orson Welles
|
|
|
|
|
Well, thanks but that won't do. I have verizon, for examle, and Verizon doesn't let you send email where the From address is anything besides the email address verizon gives you. If you want to send email From any other address you have to use a different SMTP server. Also where could I find out what the user's ISP's SMTP server is? Like if they don't have Outlook installed, or it's not set up (wrong or missing SMTP for example).
thanks anyway for your response.
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Here's an idea, if you have Outlook installed in the user's machine, why not just use the Outlook Com object.Add a reference to the Com, and add the following code:
Outlook.Application ol = new Outlook.Application();
Outlook.MailItem ml;
ml = ol.CreateItem(olMailItem);
ml.Body = "message body";
ml.To = email address;
ml.SenderName = your email;
ml.Send();
warning : the code above is modified from vba, so it might not exactly like expected.
God, I pity me! - Phoncible P. Bone
If I end up Windows ME someone is going to be hurting. - One of the answers to a question for What OS are you
|
|
|
|
|
This is a new one- I haven't seen anyone mention this.
If the use doesn't have outlook installed, then obviously this won't work. So I'm still probably better off installing an SMTP server on the users local machine instead.
Hey, if the user has Outlook installed, but the user didn't specify an SMTP server for outlook (or specified an incorrect one), then this won't work right? Or is it like using the underlying internal SMTP server of outlook itself or something? See, like me for example- I have outlook installed but I never use it- I use Eudora, so I never told Outlook what SMTP server to use.
thanks for your response,
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
|
Yea this is exactly what I did, and I got the error I described. But thanks for your response anyway.
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
I have a class that represents a table. I want to save it to the database.
I could sen all of the pertinent data that needs to be changed then build it in store procs to write
or i could send a copy of all data to the stored procs
I would like to build it in stored procs but is there a way to avoid building a string to execute?
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I am using a richtextbox in winforms.
When the wordwrap property us set to true i cannot find a way to select the current / any other paragraph within the control.
it seems that some of the methods / api functions return some values in logical lines unit and some in physical lines units.
is ther a way to find a line / paragraph break in the control.
Opher Goddard
|
|
|
|
|
Can I add a web page into a C# Windows application and program it, such load data from database, show specific data only?
Thanks!
|
|
|
|
|
Why do you want to do that !!
- Kannan
|
|
|
|
|
You can display a web page in the "internet explorer control", and of course you can generate text and save it as a html file.
But why do you want to do it?
You can write a web application in C#, so you don't need to generate the page in a windows application.
|
|
|
|
|
Thank Kannan Kalyanaraman & Corinna John.
I do this because I have never developed any web application and have absolutely no idea what web application is like. I was thinking about trying to develop a web application, but I was told that it's complicated. Because I need to develop the server side to provide webservice.
Now what I am developing a tool to compare selected records in selected tables(could be more than 2). I already finished most of functions using Windows form. Also I have a windows form to show the compare result, highlight the difference.
Having the idea of putting the webpage in my windows application, is because I don't like the way I am doing now. If I can show the result in a webpage, then user can save it to wherever they want and also the appearance of webpage is nicer than a form.
I am new in .Net programming. So if you have any suggestion for me, please don't hesitate to tell me.
Thanks again.
|
|
|
|
|
yyf wrote:
I was thinking about trying to develop a web application, but I was told that it's complicated.
Its really easy, especially when you think about all the intricasies involved in a win app. There really is no need to make it a windows app. You'll have install, mainaining, and other problems. Design your 3 page web site in asp.net its soooooo much easier.
And dont listen to them thier probably VB programmers
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I forgot to mention another function in my program. It's to run one or more than one query files. Something like Query Analyzer.
I think that might help you understand why I am using windows application to do this.
|
|
|
|
|
Hi !
Please help me.
i'm trying to create a remote application. everything works fine if i copy the interface-dlls to the client computer.
BUT:
when i get them using soapsuds it doesn't work because the variablenames got somehow changed.
for example:
the property "Destination" (private: destination)
gets to destination. so the initial letter changes to lower-case.
WHY ?!?!?!?
any ideas ?
thanks very much !
|
|
|
|