CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 3/30/2004 8:49:14 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 186 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
eeckberg
Asp.Net User
Linking back to the referrer3/30/2004 8:49:14 PM

0

I have created a module that contains a populated pulldown of company names. When a company is selected, a list of employees are displayed below. The employee edit form is called by an edit link. The employee edit form is actually divided into two sections, each with an "Update Changes" link. Instead of returning back to the calling form, I stay on the edit form until "Cancel Changes" or a "Close" link is clicked. For now, the Cancel Changes and Close links just invoke the javascript history.back command. All is well for now.

Now for the issue. When adding a new record, I have to use an intermediate form to get the SSN of the employee. Then I display the employee edit form. How do I create a link or URL reference that will carry me back to the original module? Is there a variable of the current URL that I can save to a session variable as part of the load of the originating module?

Oh yeah, I also save the selected company and want to pass it back as an URL variable so I can set the company pulldown to the last selected company and load the employee list. This way, the user doesn't have to reselect the company each time. I've coded for it, I just need to have a way to create the URL to get back to it without incurring the wrath of a security function.

Thanks for helping support a great application framework!
Eric
eeckberg
Asp.Net User
Re: Linking back to the referrer3/30/2004 9:30:39 PM

0

This is one of those times when writing out the problem almost leads to the answer. I've figured out a method, but if there's a better way, I'm willing to switch.

My initial form checks for the existence of a "CompanySelectURL" session variable. If it doesn't exist, it will create the variable using Request.URL.tostring. Ok, so now that's set as long as the session stays active. My Employee Edit form is passed the value of the selected company so the "Cancel" link on that form uses the CompanySelectURL session variable with the Company ID variable tacked on to it as the redirection destination.

This works fine and doesn't cause any security errors. If I insert another form into the mix, say Form A calls Form C and then Form B under certain conditions. The Cancel link on Form B will still reference Form A because A has set the value of the session variable already.

Is there a better/cleaner way to accomplish this?

Thanks,
Eric
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Sams Teach Yourself CGI in 24 Hours Authors: Rafe Colburn, Richard Colburn, Pages: 520, Published: 2002
Phishing and Countermeasures: Understanding the Increasing Problem of Electronic Identity Theft Authors: Markus Jakobsson, Steven Myers, Pages: 739, Published: 2006
The Blogging Church: Sharing the Story of Your Church Through Blogs Authors: Brian Bailey, Terry Storch, Ed (FRW) Young, Leadership Network (Dallas, Tex.), Pages: 199, Published: 2007
Web Analytics for Dummies Authors: Pedro Sostre, Jennifer LeClaire, Pages: 384, Published: 2007
Developing Java Enterprise Applications Authors: Stephen Asbury, Scott R. Weiner, Pages: 885, Published: 2001
Web Metrics: Proven Methods for Measuring Web Site Success Authors: Jim Sterne, Pages: 430, Published: 2002
Professional Search Engine Optimization with PHP: A Developer's Guide to SEO Authors: Jaimie Sirovich, Cristian Darie, Pages: 360, Published: 2007
Syngress Force Emerging Threat Analysis: From Mischief to Malicious Authors: David Maynor, Robert Graham, Lance James, Anand M. Das, Pages: 610, Published: 2006
Explorations with Families: Group Analysis and Family Therapy Authors: Robin Skynner, John R. Schlapobersky, Pages: 438, Published: 1990

Web:
Linking back to the referrer - ng.asp-net-forum.portal_starter_kit ... Linking back to the referrer, > ROOT > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit, Date: 3/30/2004 8:49:14 PM, ...
Disenchanted links back to you Link to any article, and it will link back to you .... I'm a crank selling advertising in your referrer logs! Why aren't you linking to the fine sponsor ...
HTTP referrer - Wikipedia, the free encyclopedia Jan 4, 2009 ... Recently many blogs have started publishing referrer information in order to link back to people who are linking to them, and hence broaden ...
Referrer Lists Free! - Fully Customized by you, including your own ... One of the best ways to get traffic is by linking to other sites, and getting reciprocal links (referrers) back from them. With E-referrer it's all done on ...
Oddmuse: Automatic Link Back You can automatically link back to people linking to your site. Whenever somebody visits a page on the wiki, the script checks the referrer. ...
Advanced Link Manager - Printable Reports This report shows only the referrers that link back to your website, with a side -by-side comparison of your competititon. ...
MZL & Novatech TrafficStatistic Website : Article: Handling ... Update: Elliott Back from Cornell University wrote a Free Referer Spamming .... of an inlink before displaying it in a publicly available referer link list. ...
Railscasts - Going Back This is better because it will link to the referrer if it is present or " javascript:history.back()" when there is no referrer. ...
Check Referrer To Prevent Linking Yours From Other Sites Check Referrer Using Php To Prevent People Linking To Your Downloads From Other .... php check referrer from text file - 27.46 hr back. (1) ...
Top Referer Script » TutorialCode.com You can find out all about who is linking to you, and even link back to them .... that shows the referer, a link back to the referer, and how many hits it ...

Videos:
Oroboros Video Walkthrough This is a video of me, Tasselfoot, playing Oroboros up until level 19, where I intentionally kill myself. To get the easy badge, just play level ...
Gemcraft First Epic Boss: Kongregate Version (Guide Farther Down) I finally got back to playing gemcraft, with my new labtop. I have moved on from armor games, however, to kngregate games ...
Kongregate Badge Guide: Button Hunt 1 And we finally get back to the first button hunt, awesome. If you are not familiar with "kongregate" , its a gaming website where most of the ...
Can you run it - Check if a PC game will run on your system When buying a PC game it's hard becuase you need to make sure your system will run the game. That is why I show you a cool website called "Can you ...
Myspace & Facebook Hack Back on service again! The program is once more available. But to get it you have to do something for me. It's really simple. All you have to do ...
How to Make Free Easy Money Online http://5minutesperday.com/eric55 http://ericsmaketingsytem.ws Hi there! Are you interested in making easy money online from home? If so, you ...
Bux.to Hints and Tips. **UPDATE 26/9/08** Autoclicker does NOT work, The creator of Viv is working on it so you will have to wait, ill keep updating every so often so ...
gbc part 1 well all of you (not very many) have meen waiting for this and i finaly got it!!!!! this is the link to the part two... http://www.youtube ...
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared ...






ajax controls toolkit - dragpanelextender and css friendly

panel using css adapters

two menus on the page- with css adapters and without

partial install success

pre-compiled css friendly adapters posted to codeplex

expanded menu problem in ie 7 only

can't get onadaptedselectednodechanged to work with usercontrol and master page

mix css / non-css controls in same web app?

phantom menus

cssselectorclass not showing

exception has been thrown by the target of an invocation.

creating a vertical scrollable menu dynamically.

using cssfca in custom web controls

please help my menu :-(

radio buttons?

adaptor for login control

menuadapter - menu items not visible if beyond bottom of page

gridview. header style. please, help me out. this is driving me nuts.

menuadapter childs appear behind content in ie

troubles using in existing application

staticitemtemplate and dynamicitemtemplate

menu css adapter and postback

loginstatusadapter requires membershipprovider

working detailsview breaks when converted to css friendly (index out of range error)

treeview onadaptedselectednodechanged

cssadapters

installation error

ie6 and menu top level width

enable/disable cssfriendly via property

loginadapter

   
  Privacy | Contact Us
All Times Are GMT