|
I understand what you are saying.
But, I know of a website where the pages with forms are in their respective URL folders with last edits shown.
Does this mean that website is absolutely hitting the database everytime the person moves off the page after editing it to another?
|
|
|
|
|
Not necessarily, it could be storing data in the session. But, that's nasty, you should avoid that.
But, it is possible that they are, yes.
Christian Graus - Microsoft MVP - C++
"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 agree. So then, if session objects are not being used, nor cookies or anything client side, are you saying they MUST be doing interim updates?
|
|
|
|
|
If they are not using the approach I suggested, then I believe so, yes.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Theres also the application cache, which isnt strictly session.
The technique I tend to use for this is to keep the graph of business objects in the ViewState between postbacks, and then commit the lot to the database on save. This works well when the client wants to add a new record and a bunch of child objects before saving.
|
|
|
|
|
Yeah, that's what I've been advocating, too.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
It does cause friction sometimes when you deliver something like that and the client says "But our inhouse IT guys said it was impossible to add child data without saving the parent first!".
Cue dirty looks :P
|
|
|
|
|
Hi,
I need to post details of items purchased on my site to PayPals site. If i was using html it would be a simply cut n paste of the html form code. However as .Net uses a form for its pages, i cant simply add this extra paypal form to my page.
Can anyone give me help / pointers on how i go about posting form data to a 3rd party site (PayPal) with using Get method and posting everything in the Url?
Thanks in advance!
|
|
|
|
|
You can actually adopt the hidden field and then distribute to the PayPal form through a simple javaScript trick. That should not be difficult right?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Ok, but can you please explain how to do this or point to a link?
|
|
|
|
|
munklefish wrote: as .Net uses a form for its pages, i cant simply add this extra paypal form to my page.
Yes, you can. A page is not limited to a single form.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: A page is not limited to a single form.
You didn't mean server side form, right ?
|
|
|
|
|
N a v a n e e t h wrote: You didn't mean server side form, right ?
Right. I ment form. Perhaps I should have been more clear, but on the other hand if you try to use two server forms on a page, you get a very informative error message telling you that this is not possible.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Yes. Is there anyway to change this behavior ? Will overriding the Form class help to avoid this error ?
|
|
|
|
|
Hi,
I have a number of checkboxes in a datalist, which is populated by a database. When the user submit the page form i need detect how many and which checkboxes are ticked. However the number of checkboxes may/will vary over time as the site administrator adds/removes options.
So how do i check which boxes are ticked?
Any help & suggestions would be greatly appreciated.
Thanks!
|
|
|
|
|
Hi
I am using the asp.net login control and I am trying to stop one user loggin in several times opening several sessions
is there a way to do this, is it through the web.config file?
cheers
|
|
|
|
|
Do you mean you wish to prevent users from opening several instances of a browser and logging in to you site? Nothing in the web.config will prevent this that I am aware of. You needed come up with a mechanism to handle this.
only two letters away from being an asset
|
|
|
|
|
hmm maybe something simpler like
imagine i log onto one machine and then log onto another different machine at the same time with the same login credentials
how would i prevent that?
thanks
|
|
|
|
|
You need to design a mechanism to store and check something like the ip address of the user and their logged in status. Though this isn't foolproof, however, since they can close the browser and not logout, thus locking them out from other machines.
only two letters away from being an asset
|
|
|
|
|
|
i have searched a lot about web messenger but didnt get any idea. i want to put functionality in my web site as meebo.com. How can i put different messengers on my website.
i just want to know what is the logic behind meebo.com . Does messengers like yahoo,MSN,AOL provide some type of webservices or APIs that we can use or we have to purchase some component.
Please help me in this.
|
|
|
|
|
Did you check out http://www.meebo.com/[^]?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
yes i want to know how the meebo.com functionality ca be achieved
|
|
|
|
|
I use WinXP pro SP2
I setup IIS and use Visual Studio 2005 to create a WebService(or website) http://localhost/WebServices1 (my PC no internet) and a error appear:
Configuring web site http://localhost/WebServices1 to ASP.NET 2.0 fail. You may need to manualy configure this site for ASP.NET 2.0 in order for your site to run corectly.
Press Ok then create Webservice1 (C:/Inetpub/wwwroot/WebServices1/)
but can't Debug. And Other Website can't reference(Web references).
Please help me! thank! (sorry my eng. not well).
modified on Monday, February 25, 2008 10:30 AM
|
|
|
|
|
In what order did you install things? If you setup IIS after installing Visual Studio you may need to run iisreg to ensure ASP.NET 2.0 is recognized.
only two letters away from being an asset
|
|
|
|