|
|
In fact I want to save the contents of the page when the user valids it. To do this I try to use WebRequest command but I have an error when I called the page whith specifique control (security error). It's important for me to keep a trace of html contents. If you have another idea to do this tell me about it.
|
|
|
|
|
Hey howzit,
I am very new to the C# .NET environment and am learning every day, but I need to be able to launch the default mail recipient e.g. Outlook from my C# application. Could anyone help me out, please try keep the code simple.
Much appreciated!
|
|
|
|
|
The following snippet launch the systems default email client
<br />
System.Diagnostics.Process.Start("mailto:test@test.com");<br />
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Hey there,
Thanks for that code. Is there way of specifying which file(s) to include in the new email as attachments?
|
|
|
|
|
I don't know, but you can use third party component like DotNetOpenMail[^]
.Using "mailto:" you can specify subject ,body - but not file .
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Hi howzit?
Does anyone know how to add annotations to an EXISTING PDF programmatically? I have been fiddling with iTextSharp from SourceForge.net but it only allows you to create new blank PDF's and then add annotations.
Any help would be greatly appreciated!
|
|
|
|
|
|
i want to make an application that can find out what windows media is currently playing like the feature in MSN Messenger that displays what the user is currently listening to. is this possible and how would i go about it?
|
|
|
|
|
There is an article which explains something like this with the itunes library at http://msdn.com/coding4fun
|
|
|
|
|
Hello,
I have some experience in openGL. I plan to deploy in C#. But is there any way to use it in C#? Specifically I want to have a nopenGL view control on my C# form without loosing the features of C# form. I found CsGL.BaseCode but it says I should have CsGL.BaseCode.dll. But I do not have it. I have CsGL bins CsGL.dll and CsGL.native.dll but not that. Is any one can send me an example related to my problem?
I will be so glad to hear for your feedbacks.
|
|
|
|
|
The Tao[^] framework supports OpenGL. It's officially supported by the Mono[^] project and it's supposed to compile under Visual Studio .NET too. It might be what you're looking for.
I have no experience with it. So, fingers crossed.
Here's some more info[^] on it.
|
|
|
|
|
Maybe you want to check SharpGL[^].
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick || Fold With Us! || Pensieve || VG.Net ||
|
|
|
|
|
i need to use the log off mechanism of windows operating system but to display log in form containing one Textbox to enter and a button and the background desktop become inactivated to user clicks or browsing ?
Is there anyway in win32 functions i can use that please help me with this functions
Thanks for you all.
Human knowledge belongs to the world
|
|
|
|
|
You mean you want to override the standard Windows logon / station locked dialogs?
If that is what your looking for you'll need to build your own GINA[^] library, from what I can gather it isn't that difficult to do but your going to need to resort to good old fashioned C++ or something as you'll need to create a standard Windows DLL, something you can't do in C# AFAIK.
A better explaination of what GINA does and how you can to customize it can be found in this MSDN article[^].
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
how do i change the default icons of binary files using C#?
|
|
|
|
|
You would need to change the systems registry files to change the file type associations to match your program, that's all i know sorry, but you should get some good Google results from that
|
|
|
|
|
Do u want to display a icon for the dll's that u create in C#?
if yes then write the following code before the class
[ToolboxItem(true)]
[ToolboxBitmap("icon_application.bmp")]
The string in quotes is the bmp file that u need to include in
your project.
Hope that works for u
Regards,
Pramod
|
|
|
|
|
Pramod, I think that he wants to associate his application with certain filetypes rather than set an icon for his actual application
|
|
|
|
|
that's y i asked him wht really he wants to do...
Thanks & Regards
Pramod
|
|
|
|
|
hi, I am trying to execute a dos command and I found this code fragment:
<br />
System.Diagnostics.Process proc = new System.Diagnostics.Process();<br />
proc.EnableRaisingEvents=false;<br />
proc.StartInfo.FileName="calc";<br />
proc.Start();<br />
The problem is, I wish to execute a command AND monitor the return code. Thank you!
|
|
|
|
|
Well the return code can be found by using
<br />
proc.ExitCode<br />
You can Kick off any Dos command by simply calling the dos exe/bat file/whatever
<br />
proc.StartInfo.FileName = @"ipconfig";
proc.StartInfo.Arguments = @"/renew";
proc.Start();<br />
If you want more control of how the process runs though you can use ProcessStartInfo - you can then handle passing in details and handling errors etc, even stop the command line window coming up at all.
|
|
|
|
|
|
I have a repeater with 2 nested repeaters inside to display multi-tier data.
The first Repeater contains Customer Information.
The Second Repeater contains Call Tracking Information
The Third Repeater contains Comments
The data currently displays like so:
Customer Info: Blah Blah Blah
Call Tracking Information: Blah
Comments about each Call Tracking Issue: Blah...
My query to obtain customer information looks like so:
"SELECT HSCTI.ItemID, HSCTI.Cust_Name, HSCTI.Region, HSCTI.Contact_Date, HSCTI.Reason, HSCTI.Status FROM HSCTI WHERE HSCTI.Status = 'Open'";
My ItemDataBound to my first Nested Repeater looks like:
public void Customers1_ItemDataBound(Object sender, RepeaterItemEventArgs e) <br />
{<br />
if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) <br />
{<br />
Repeater oRPT = (Repeater)e.Item.FindControl("Customers2");<br />
DataRowView oDrv = (System.Data.DataRowView)(e.Item.DataItem);<br />
oRPT.DataSource = oDrv.CreateChildView("<HSCTI>");<br />
oDrv.DataView.RowFilter = "HSCTI.Status = 'Open'";<br />
oRPT.DataSource = oDrv;<br />
oRPT.DataBind();<br />
}<br />
}
I keep getting an error indicating:
System.ArgumentException: This constraint cannot be enabled as not all values have corresponding parent values
Can someone tell me how to fix this?
Thank you.
Tim
|
|
|
|
|
I've updated a connectionString manually on IIS and restarted Web site,
but previously working INSERT is not working to the new data source.
New connectionString is okay (see details below).
I know I can have multiple connectionStrings, but don't know
how to select one of them on the fly.
I don't know how to handle this situation.
Any help will be very appreciated.
Thanks in advance!
Eugenio
DETAILS:
I'm running an ASP.NET Web Service (IIS 5.1).
Web service INSERTs a couple of records successfully into a DataSet
created using DataSet Wizard on VS2005 to a SQLEXPRESS on local machine.
I've the same database on a remote SQLSERVER (that I can access thru
MS SQLServer Mgmt Studio Express), and wanna INSERT data to it.
So I manually changed Web.config to the new connectionString on IIS and
restarted the Web site that I'm using. Data obviously did not go to the
old database, but it did not go to the new too! (although my code haven't
thrown any exception). Data has been lost.
Second turn, I configured the code to use an ODBC System DSN to the
old and okay database. Worked fine. Changed the DSN settings to the
remote database (connectionString remained the same) as restarted
Web site on ISS. The same behaviour got before: data was lost!
Eugenio
|
|
|
|