|
Is it possible to programmatically delete cookies? can anyone help me with this please.
cellardoor
|
|
|
|
|
You may be able to do this by deleting files in the directory returned by
Environment.GetFolderPath (Environment.SpecialFolder.Cookies)
/ravi
|
|
|
|
|
Just Curious does that work for all browsers or only IE? That would be sweet because I run 5 or 6 browsers and would love to be able to delete all the cookies at once.
Like to clear all the caches as well...
|
|
|
|
|
I'm pretty sure that's an IE-specific (i.e. Windows) location only. Different browsers store cookies in different locations. This[^] app knows them and takes advantage of this fact.
/ravi
|
|
|
|
|
Hello,
Is there a way programmatically to set the page properties, or something to print the HTML document without header, and a footer?
Right now I am using this command to do this:
<br />
HtmlDocument document = (HtmlDocument)webBrowser.Document;<br />
document.ExecCommand("Print", true, 0);<br />
But it always prints page number, and a file name on the bottom, etc...
Thank you.
|
|
|
|
|
I'm trying to post xml data and retrieve that post data by by the post data from the url using another aspx page using c#. I found some information from http://www.codeproject.com/Purgatory/XmlPost.asp, but am unable to successfully post xml data. Does anyone have any sample code to accomplish posting and retrieve xml data? Thanks in advance.
|
|
|
|
|
theflux123 wrote: I'm trying to post xml data ... retrieve data using another aspx page
You can use the class described in this[^] article to post and retrieve your data.
/ravi
|
|
|
|
|
Hi All
the problem is this that when i add a child node to parent node the code written in the button1_click is
treeview1.SelectedNode.Nodes.Add(Child);
but it only works if u select the parent node and if u press the button without selecting parent node it hangs on i want to put a check when someone clicks the check executes first and if the parent node is not selected it displays a message box to select the node first and then add child node
Search One , Praise One , Love One
|
|
|
|
|
if(treeview1.SelectedNode != null)
{
if(treeview1.SelectedNode.Text == "ParentNodeName")
{
}
}
Tarakeshwar Reddy
MCP, CCIE Q(R&S)
Experience is like a comb that life gives you when you are bald - Navjot Singh Sidhu
|
|
|
|
|
Thanxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
|
|
|
Hi,
Really thanks for your reply.But i could not open the link which you provided.
Could you please suggest any other link?
Thanks
Regards
Anu
|
|
|
|
|
http://regularexpression.com/
|
|
|
|
|
Load the url in a webbrowser control, then use the Document property and then the Links property
|
|
|
|
|
You have forgotten the colon in some of the (?: parantheses.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
I have generated a .cs file from my .xsd file using the command line program XSD.
The xml file contains many nested tables, so several of the generated classes have columns with autoincrement=true.
If I add a new child row then I would expect the autoincrement column to be set to a value after I add it. Unfortunately, it remains at DBNull.
This means it becomes a root level item rather than the child it should be.
Any ideas?
|
|
|
|
|
Please confirm that you have provided values for AutoIncrementSeed and AutoIncrementSteps
Regards,
Ritesh Mehrotra
Software Engineer
|
|
|
|
|
I create a simple form with a toolstrip and attach a ToolStripProgressBar to it.
I want my progress bar to align from right to left, so I set the RightToLeft propery of the toolstrip to "NO", and set the Alignment property of progress bar to "RIGHT". But it doesn't work.
And for whatever I change these properties, my progress bar is always align to the left.
Can you help me with that?
Thx alot.
|
|
|
|
|
Hi All
I am saving image files on web server. To secure them i want to encrypt them. How can i achieve this? Please give me some solution/suggestion to solve the problem.
Regards
|
|
|
|
|
Zee Ahmed wrote: How to encrypt an image file ?
The same way you would encrypt anything else. There is nothing special about encrypting image files. A simple search of the internet with ".NET Encryption" will turn up many useful resources.
|
|
|
|
|
Hi, I have a question that I would like for someone to help me with. Because of resource restrictions, I tend to steer away from using try/catch blocks if it is possible.
I just want to know if there is a way of testing whether a connection will open using if statements (maybe using the conn.State/ConnectionState properties) or other methods.
Any suggestions?
|
|
|
|
|
That's really bad practice avoiding try/catch/finally, how do you close an open connection if your code exceptions and you don't have a finally block?
|
|
|
|
|
Using if statements you can pretty much avoid the entire try/catch thing in general. I realize there are certain things that have to be try/catched but most people don't realize how resource intensive try catches can be.
|
|
|
|
|
TheKrazyNomaD wrote: I realize there are certain things that have to be try/catched but most people don't realize how resource intensive try catches can be.
Only if an exception is thrown. They cost nothing if it isn't. Do you expect that the connection will fail sufficiently often that it isn't an exceptional situation but a normal situation?
|
|
|
|