CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 6/28/2007 5:48:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
jjepen
Asp.Net User
INaming & PostBackUrl6/28/2007 5:48:50 PM

0/0

I am having difficulty with masterpage that I'm currently working on.  The situation is this:

I have a site with master page that has a webmail login portion on it (username, password, remember me, etc.).  The problem I have is that since my webmail application is not part of this site, I am using the PostBackUrl property of the login button to post the page to the login page of the webmail app.

This all works fine when I am working with a single page.  When I stick it on a master page the INaming  model changes the names of my textboxes and since my webmail app is looking for specific POST parameters which are "username" and "password", after the INaming get's done rendering my page the controls are named ct00$username and ct00$password.

A viable solution would be to hand craft the http POST operation in the code behind, or some other trickery to create and set the POST parameters I need.

 

Thanks for all the help in advance.
 

jose_jimenez
Asp.Net User
Re: INaming & PostBackUrl6/28/2007 6:11:39 PM

0/0

You could try hand creating hidden fields on your form with the right names (standard html input fields)

have a clientside click event for the login copy the data from the renamed fields to the ones with the right names and then it will postback to the login form of the webmail application.  you have to be careful in creating the script for the clientside, the fields go through the INaming process as you are aware, so you will have to use the serverside clientid properties to generate the script for each button. 

--JJ


Please mark as answered if I helped.
I don't answer personal emails unless I know you or of you. Feel free to post in the forum to get an answer from me.
MorningZ
Asp.Net User
Re: INaming & PostBackUrl6/28/2007 6:34:45 PM

0/0

I'd suggest using the "IDOverride" control

http://wilcoding.xs4all.nl/Wilco/Toolbox/WilcoWeb.aspx

this will let you keep those WebMail textboxes from getting renamed by the master page


"If you make it idiot proof, they'll build a better idiot"
jjepen
Asp.Net User
Re: INaming & PostBackUrl6/28/2007 6:52:51 PM

0/0

jose_jimenez: I've tried including html hidden inputs and the using javascript to populate them with the values of the asp textboxes and that works great, but asp.net doesn't include them in the POST data.

I'm going to look into the control that MorningZ mentioned and will get back with the results.

jjepen
Asp.Net User
Re: INaming & PostBackUrl6/28/2007 7:01:25 PM

0/0

 MorningZ, your solution worked brilliantly!  That library is definitely going into my permanent stash.

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Page.PreviousPage and User Controls - ASP.NET Forums httpException if I use a postBackUrl to get to this page .... that implements the iNaming interface gets appended with a prefix to maintain unique ids. ...
How to get CommandName/CommandArgument from Request.From for ... I would attach a PostBackUrl to the ImageButtons with the .... Additionally if you use an INaming container, when you call Controls. ...
Gorenc-on.net - prvi gorenjski informativno-družabni portal ... Cookbook is generally only the best inamin break down. is one 350 mg tablet, .... set form postback Url to be current translated CMS Url __CMS_PostbackForm. ...
E-Tanzmusik (v1.5) | Ihnen wird der Zutritt zu dieser Seite verwehrt. Cookbook is generally only the best inamin break down. .... bedtime to treat. set form postback Url to be current translated CMS Url __CMS_PostbackForm. ...
Page.PreviousPage and User Controls - ASP.NET Forums httpException if I use a postBackUrl to get to this page .... that implements the iNaming interface gets appended with a prefix to maintain unique ids. ...
How to get CommandName/CommandArgument from Request.From for ... I would attach a PostBackUrl to the ImageButtons with the .... Additionally if you use an INaming container, when you call Controls. ...
Gorenc-on.net - prvi gorenjski informativno-družabni portal ... Cookbook is generally only the best inamin break down. is one 350 mg tablet, .... set form postback Url to be current translated CMS Url __CMS_PostbackForm. ...
E-Tanzmusik (v1.5) | Ihnen wird der Zutritt zu dieser Seite verwehrt. Cookbook is generally only the best inamin break down. .... bedtime to treat. set form postback Url to be current translated CMS Url __CMS_PostbackForm. ...
Page.PreviousPage and User Controls - ASP.NET Forums httpException if I use a postBackUrl to get to this page .... that implements the iNaming interface gets appended with a prefix to maintain unique ids. ...
How to get CommandName/CommandArgument from Request.From for ... I would attach a PostBackUrl to the ImageButtons with the .... Additionally if you use an INaming container, when you call Controls. ...




Search This Site:










adding synamic sitemapnode

sharing your code with other people

ibuyspy and windows xp home

client-side caching of htc files

dynamically set theme from master page

dnn web sites and registration

help with sqlhelper.executereader

dotnetnuke.mdb.resources not being generated on dnn 2.1.2

windows server update services (wsus) and asp 2.0 controls

returning a value from a method - help!!!

skins not appearing properly in pdf

access denied error for admin

linking login tables with own product tables

don't appear solutions in vs2005!

problem with using dataset

intro to themes for experienced html designer?

the simple one

sub modules, loading custom modules into a parent module

localization question: how to cluster localization strings for a module?

message="conversion from type 'dbnull' to type 'integer' is not valid."

website copy webstie or build publish - "first time caller"

asp.net newbie - database connection problem - personal website starter kit

what can be done?

tell us your express story and win $100!

url to portal for dotnetnuke

how to get document.getelementbyid for a server control in webusercontrol?

multiple roles check

help!

2 things driving me crazy..........

increase decrease font size while resizing division

 
All Times Are GMT