|
Apart from the questio in the subject line what can be other possible scenarios when new session id could be generated?
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
opening and closing a browser
|
|
|
|
|
ASP.NET 2.0 onwards session id will be generated on each request if you are not keeping any data on session. It will be regenerated for new browser instances too.
|
|
|
|
|
Thanks for reply.
I am using asp and the site moves from http to https pages.
When I check the cookies, I get one session id as secured and other as unsecured.
What can be the cause?
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
i will give text in .aspx page but this text value store in .pdf file then display this .pdf file with this text value
|
|
|
|
|
That's good. But what's your issue !
|
|
|
|
|
Please read the guide on how to ask questions at the top of the forum. Rule #1 - use a meaningful subject, 'question' means nothing, they're all questions.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a asp web application which works for both http and https protocols.
I have secured the ASPSessionId in the metabase. While testing I still get it unsecured.
Any reasons why this is happenning?
how can I secure the sessionids?
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
Hi
I was talking about somethign similar on the 2nd page but thought better to start a new post in case no one looked on the 2nd page
Basically i have a for loop and in it I need to add items to a listbox
I have the following but I am getting an error message:
foreach (DataRow row in dataSetactorder.Tables[0].Rows)
{
listboxact.Items.Add (row[0]);
}
error: " The best overloaded method match for 'System.Web.UI.WebControls.ListItemCollection.Add(string)' has some invalid arguments
"
any help would be great cheers
|
|
|
|
|
.netman wrote: The best overloaded method match for 'System.Web.UI.WebControls.ListItemCollection.Add(string)' has some invalid arguments
The error message clear enough. It requires a string type, but you are supplying DataRow . It could be something like
foreach (DataRow row in dataSetactorder.Tables[0].Rows)
{
listboxact.Items.Add (row[0].ToString());
}
modified on Wednesday, April 9, 2008 4:54 AM
|
|
|
|
|
ok ive filled up the listbox and now I want to check if any of the values in the listbox match a value from a text box
WHat is the best way to do this
ive got the following - stallactorder being the string result from the listbox and updateact the string value from the textbox
How can i assign the values from a listbox to a string, or is there a better way to do it?
pesudo code would be
if listbox contains a value which matches textbox
{
}
actual code so far
if (stallactorder.Trim().Contains(updateact))
any help would be great
cheers!
|
|
|
|
|
I think you are following to my reply for your last post yesterday. In that I haven't meant to use a list box. I was suggesting to use List<string> class. It has a Contains() method and you can take the string easily from it.
|
|
|
|
|
Hi!!
try the below code
for (int i = 0; i <= ListBox1.Items.Count - 1; i++)
{
if (ListBox1.Items[i].ToString() == TextBox1.Text)
{
//your statement
}
}
|
|
|
|
|
cheers that sorted my problem thanks!!
I decided not to use the string method nav you discussed as I knew the listbox a bit more
thanks
|
|
|
|
|
Why are you not just databinding to the table?
|
|
|
|
|
Hi,
I have a webservice in ASP.NET 2.0 and I am using DebugView to trace a
problem
with my webservice.
My webservice basically passes back a dataset after passing it a SQL
statement string
and a connection string.
I found a problem with the service that my connection string was wrong so I
passed it a new
string with the change but the service keeps giving me the same error and
when I look at
DebugView it shows the same connectstring that I had passed the first time
with the error.
It does not matter what I pass my service DebugView is showing the orignal
parameters.
Weird!!!!!
Any ideas why this might be happening? Is it cahing the parameters somehow?
Malcolm
|
|
|
|
|
Erhm, maybe you should post some code or something we can examine to help you... Just the message 'something goes wrong' just isn't enough...
|
|
|
|
|
Probably the connection string is being read from an old source, for example if you are running it with a reference to the release build and have only build the debug again since you changed the string.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Strange ! Have you made any changes to the webservice and forgot to update the web reference in the application ?
|
|
|
|
|
I created the webservice proxy using the WSE 3.0 wsewsdl3.exe tool
But when I updated my service as the interface has not changed I
did not regenerate the proxy.
Could that be why?
Also I am trying to get a SOAP message viewer to see what the service is getting.
|
|
|
|
|
NO the regenerated proxy gives the same error.
When i debug the code I can see the that the service call
parameters are been passed the new changed connectstring so......
Any other ideas?
|
|
|
|
|
Hi all!
I have a Calender control on my Page, with a map underneath (The map uses a rather large amount of band-width)
Now, due to the map's code, it has to be created on Page_Load (I didn't code it... But HAVE to use it - Work -_-)
What I'm wondering, is if there's a way to make the Calender control stop causing my Page to refresh every time the date is changed, or if not, if there's a different Calendar control besides
<asp:calendar id="Calendar1">
I've seen some site's with those litle Calendar Icons that you click, and they display a Calender... (They don't cause the page to refresh)... Ideas Anyone?
Thanks!
- Reelix
|
|
|
|
|
those are javascript calendars....
available free online...just search on google...dude
Ashish Sehajpal
|
|
|
|
|
You might find a calendar in the ajax controls.
Maybe the reason the other calendar is refreshing is because they are posting back to the server and then come back in a different state.
|
|
|
|
|
Better , Try with Ajax
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|