|
|
i have an windows application that is a client for my web service ,where i use sessions to keep if someone is logged in !
but every time i call i new method from the client application , the web service does not remember that i had logged in just before to calle that methot!
pls help ..
Thanks!
|
|
|
|
|
You have to get the cookies that the server returns when you are logging in, and send them back to the server in every request for the server to be able to identify the session.
---
b { font-weight: normal; }
|
|
|
|
|
can i learn fast to work with cookies, if its simple i mean if i could make it in 10 minutes ...could u give me a simple example?
if its not simple i will make it in a different way...
-- modified at 7:10 Sunday 18th June, 2006
|
|
|
|
|
You don't have to .net framework allready has the functionality for this. You just have to set the CookieContainer property of the client service with CookieContainer instance and also you must take care to use the same container on every call if you want to use the same session.
damianbc
|
|
|
|
|
u check for this in web sites
|
|
|
|
|
|
|
|
No, you're wrong!
It's because of the difference between a pigeon!
|
|
|
|
|
Looks like a spambot to me!
|
|
|
|
|
Excuse me, but looking at your posting history....
Ummmm, yeah. Do you have any clue about what you're doing, or how to use this website, or any website for that matter?
Your posting history either says you don't have a clue, or just enjoy babbling to yourself. Would you like some help?
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 9:00 Sunday 18th June, 2006
|
|
|
|
|
I have a class which kind of represent something akin to a node in a tree like data structure.
I have some method like that:
class Element
{
IList<int> GetElementPath(); // get the path from the root
Element this[int index] { } // get children
Element this[IList<int> path] {} // descend the hierarchy with given indexes
}
Now I try to add some XML comment to GetElementPath()
/// <returns>The path from the root to this element, to use with
/// <see cref="this[IList<T>]"/></returns>
That doesn't work...
And I have some problem to understand the XML documentation specification.
Could someone shed some light for me? Thanks!
|
|
|
|
|
found it!
<see cref="this[IList{int}]"/>
|
|
|
|
|
I have a collection which inherits Collections.CollectionBase and implements the
public void Sort(Icomparer comparer){ InnerList.Sort(comparer) }
If I use List<> I do not get Sort exposed in the base class. If I use SortedList<> my generic signature changes from <t> to <k,t>.
What I need is something between the two which acts like CollectionBase but is strongtyped. Is there a Generic definition I'm missing? Any suggestions are welcomed.
Thanks.
|
|
|
|
|
is it possible for a file to be open in only a read mode so that it can be edited???
for example i created a program that keeps on reading from a file but when i try to edit the file i get an error [ i am assuming that it is bcuz the program is using the file so it has been lock bcuz when i close teh program i can save it]
this is what i did
File.OpenText(path); [I]this is in a thread that keeps on looping and captures the data[/I]
should i have used file.openText ????????????
kenny
|
|
|
|
|
I recommend to use one of the File.Open overloads. There you can set which file share mode should be used. As those only return a FileStream you would have to construct the StreamReader yourself (not more than a ctor call).
|
|
|
|
|
do you have any example of how i would do this???
kenny
|
|
|
|
|
I really dont know which forum I should ask this question in, so I am just going to ask here.
I need to know how to prepre for MCPD prerequisites exam such as 70-528 & 70-536, any help for you guys like giving me the name of the books etc. would really be helpful.
Also Microsoft suggested these two books:
MCTS Self-Paced Training Kit (Exam 70-528): Microsoft .NET Framework 2.0 Web-Based Client Development
AND
MCTS Self-Paced Training Kit (Exam 70-536): Microsoft .NET Framework 2.0 - Application Development Foundation
But whenever I click on the first link ofr 70-528 it pulls up the second book 70-536... And when I try to search on amazon or barnes and nobles that book does not exist!!
Now my question is how the heck do I prepare for 70-528??
I sure would appreciate if someone could guide me to the right direction. Thanks.
|
|
|
|
|
There is a certification/resume forum. I think I took both exams, and I just used experience to pass them and not a book so I am not a help (except to tell you about the other forum).
Steve Maier, MCSD MCAD
|
|
|
|
|
Hi everyone,
I've been playing with the dataGridView control in C# now for a couple of days, and I've got most all of the functionality that I wanted out of it. One thing I am not able to solve as of yet though I could use some help on. I have a contextMenuStrip associated with my dataGridView control. The way it is working now is that the user has to left click in the cell first (which selects it), and then they right click, it brings up the contextMenuStrip, which allows them to do a couple of things with the data in the cell. I am wondering if there is a way that the user can move the mouse to the cell, right click, have it select that cell automatically, and then the contextMenuStrip that appears will work on the contents of that cell they just right-clicked on. Also, I am wondering if there is a way to disable the contextMenuStrip if they are not in a cell? (Currently, they can click anywhere on the datagrid, even in empty space where there are no rows, and the menu strip will show up there ... I would like the menustrip to only show up when they right click inside of a cell that has text in it).
Thanks much in advance!
|
|
|
|
|
|
ur program returns a value only if he enters the if statement!
u must return also something outside of the if...
Type it the right way!
|
|
|
|
|
Well, read the error. What if a NEVER equals b ? You need to return a default value outside your for each.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|