|
Suppose there are two pages: page1 and page2
If I connect to page1, a cookie is set for me and I can be recognized in page2 if I send back the cookie received from the first page.
I am connecting to page1 via HttpWebRequest class and am successfully receiving cookie in CookieContainer property. But when I send back the cookie to page2, page2 does not remember me. It seems the the cookie has been deleted from server right after the first request. I'm sure that I'm sending the cookie to page2 through the second request because I did an experiment:
I connected to page1 via Firefox. Then I copied the cookie returned from page1 and programatically sent it to page2 via HttpWebRequest, and page2 recognized me! So I concluded that I'm successfully sending the cookie to second page. This is why I'm trying to access Firefox cookies. Then I can send this cookie to page2.
|
|
|
|
|
Hi,
I'm loading a simple HTML form in a C# form using the WebBrowser control:
webBrowser.Navigate("registration.htm");
The form has a Submit button, which when clicked should open the default Browser and POST this data to the form handler on a website.
I've found suggestions to handle this form locally or in the WebBrowser control itself, but none that describe how to make sure that the Submit button (in HTML) can lead to the default browser to open.
Any ideas?
Thanks,
Sarab
|
|
|
|
|
sir,
how to set marquee the user enter in textbox in asp.net(c#)
|
|
|
|
|
asp.net questions belong in the asp.net forum!
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
How i signed my dll or assembly.I want detailed information(with small example).
|
|
|
|
|
|
|
U r here to answer questions if you not know the ans then please keep kalm
|
|
|
|
|
I think you need to know that no one is here being paid for answering questions. So while asking questions, always remember that you are asking for help and not assigning job to your employees.
The biggest trick is that it takes just a bit of politeness to get help from others. Try this and you will never be disappointed.
By the way I have given him the most useful link of his life (to learn how can we use Google) this will help him in finding answer of his most of ‘how to’ questions.
Thanks for your nice words.
-Dave.
|
|
|
|
|
Ashutosh_Bodake wrote: I want detailed information(with small example).
Well bully for you. I want Cindy Crawford's home phone number and I'm not likely to get that out of this forum either.
You do know that people who answer questions here are volunteers only, and are under NO obligation to do anything for you? We aren't paid. We don't work for Code Project. So, you are unlikely to get a detailed explanation of code signing in an answer to a post - you have been given perfectly valid links, so I suggest you follow them.
BTW - one of the basic skills of any competent developer is to be able to research things for themself. Google would have given you more than enough information - so stop being lazy, and learn how to think for yourself.
|
|
|
|
|
I've got Cindy's number....want it? Can't have it!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hey pet my friend salsbery has a number of Cindey.Pls call him so he kick you from this forum.
|
|
|
|
|
We are developing a chat messenger using WCF.
We want to implement SSL security while login. I have read Gtalk (desktop application) also uses SSL while Login; but i dont know how.
Please give your valuable suggestions.
modified on Monday, September 22, 2008 2:07 AM
|
|
|
|
|
Hi all
Am dont hav much knowledge abt Satelite Assembly.I interest to learn that concept.If any body give me Usefull link for Satelite Assembly in C#.Net.....
Thanx
Mohan t working for N.I.C
|
|
|
|
|
Google is your friend[^]
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
I have listview (left side) in the screen and right side 3 radio buttons.
I Want to implement in .Net windows application using C#.net (2.o framwork).
LIst view nodes are fixed. When I open any root nodes it should display the child nodes and at the same time, i need to display the the 3 radiobuttons for each child node. When I collapse the root node then child nodes should collapse as well as the radio button should not be displayed.
eg:
Fruites
---> Mango Radio button1 Radio Button 2 Radio Button3
---> Apple Radio button1 Radio Button 2 Radio Button3
Vegetables
---> Tomoto Radio button1 Radio Button 2 Radio Button3
Can any one give me some hint to implement this.
thanks in advance
Prabhakar
|
|
|
|
|
Hi every body,
I am getting a problem when i work with Microsoft.Interop.Excel.dll
I tried to export and modify excel file with my conditional formatting for each cell of rows.
the function is :
Microsoft.Office.Interop.Excel.Range cellitem;
cellitem.FormatConditions[1].Modify(XlFormatConditionType.xlExpression, XlFormatConditionOperator.xlEqual, "=AND($X$" + position + ">2,MOD($X$" + position + ",2)=0)", "");
it was working good in English region but when i changed the region to Germany(de) it was crashed.
I don't know what is wrong .
Could you help me any solutions!
Thanks,
modified on Monday, September 22, 2008 2:28 AM
|
|
|
|
|
Try to use "," instead of "." in float number.
|
|
|
|
|
hi,
Thanks for your answer, but I'm sorry, I don't understand your answer.
Maybe you thought that the formula contained a float number. Unfortunately, it does not contain any float number. I tried to modify a simple formula but it still does not work well when changing to German region.
I updated the example that I did for clearer question.
I really appreciate if someone can help me this urgent issue.
Thanks.
|
|
|
|
|
I don't know about the formula. But English Excel has some differences with German Excel.
For example, if you want to count the average, in german excel you must use:
=MITTELWERT(...)
|
|
|
|
|
hi stancrm,
Thanks a lot, I have finished solving my problem.
From your ideal I have changed the format of formula input because in German the ',' is changed to ';'.
Now it works well.
One again thanks to you .
I posts the change here to any one can compare and understand clear about the problem if they have.
cellitem.FormatConditions[1].Modify(XlFormatConditionType.xlExpression, XlFormatConditionOperator.xlEqual,
"=AND($X$" + position + ">2;MOD($X$" + position + ";2)=0)", "");
|
|
|
|
|
Does anybody knows how to u use ming in windows.<a href="http://sourceforge.net/projects/ming/">http://sourceforge.net/projects/ming/</a>[<a href="http://sourceforge.net/projects/ming/" target="_blank" title="New Window">^</a>] . How do we do the windowsxp installation i couldn't find and searched alot may be only gurus knows.
|
|
|
|
|
Best bet is to contact the developer at sourceforge.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hey, I was writing some code for my class and the assignment is to create a domain model and then also make an xml document of the information. I have been getting the following error
System.InvalidOperationException was unhandled
Message="There was an error generating the XML document."
Source="System.Xml"
StackTrace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o)
at Assignment2.CustomerSerializer.ObjectToXml(Object obj) in C:\Users\xxxx\Documents\Visual Studio 2008\Projects\Assignment2\Assignment2\CustomerSerializer.cs:line 42
at Assignment2.CustomerSerializer.SerializeObjectToFile(Object customer, String fileName) in C:\Users\xxxx\Documents\Visual Studio 2008\Projects\Assignment2\Assignment2\CustomerSerializer.cs:line 20
at Assignment2.Customer.SaveObjectToFile(String fileName) in C:\Users\xxxx\Documents\Visual Studio 2008\Projects\Assignment2\Assignment2\Customer.cs:line 106
at TestAssignment2.Program.Main(String[] args) in C:\Users\xxxx\Documents\Visual Studio 2008\Projects\Assignment2\TestAssignment2\Program.cs:line 36
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.InvalidOperationException
Message="A circular reference was detected while serializing an object of type Assignment2.Customer."
Source="System.Xml"
StackTrace:
at System.Xml.Serialization.XmlSerializationWriter.WriteStartElement(String name, String ns, Object o, Boolean writePrefixed, XmlSerializerNamespaces xmlns)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterCustomer.Write3_Customer(String n, String ns, Customer o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterCustomer.Write2_Vehicle(String n, String ns, Vehicle o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterCustomer.Write3_Customer(String n, String ns, Customer o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterCustomer.Write4_Customer(Object o)
InnerException:
I checked through the inner exception and found that im getting a circular reference error and when i checked on boards and also other articles I found that basically its because i can't use a circular reference. Im having a hard time understanding this and was hoping that i could get an answer to how this can occur.
Thank you.
|
|
|
|
|
The built-in XML serialization is evil and should be avoided; always write custom serialization.
Having said that, and not wanting to read too much of what you posted, I can only guess that a Customer has a Vehicle and that Vehicle has the Customer and that is the circularity. How you remedy that (with the built-in XML serialization) I don't know, but once you figure it out you should have learned something.
"We learn more from our mistakes than we do from getting it right the first time."
|
|
|
|