Subject: Problem with request.form.
Posted By: shankar_v1983 Post Date: 1/28/2006 9:07:03 AM
Let us say i have a page called accountplan.asp
I am having several textboxes,textareas and buttons.
I have two buttons
1. addrelation
2. addKeyplayer
when i click on the addrelation button i am calling a function addrrelation() writing in javascript.
function addrelation()
{formname.action="accountplan.asp?action=addrelation";
formname.submit;
}
Similarly i have another function called addkeyplayer and this time the querystring being passed is addkeyplayer

The problem i am facing is when i give
for each temp in request.form
response.write(temp)
next
I am not able to see certain textbox names. why is this so.According to my knowledge whenever i give the for loop mentioned above it should display the name or Id of all the elements present on the screen.





Reply By: Imar Reply Date: 1/28/2006 9:15:51 AM
Hi there,

Is this about ASP.NET 2? If so, why are you using the Request.Form collection instead of accessing controls like TextBoxes directly? Can you post the source for the page and its Code Behind?

If it's not about ASP.NET, you may want to repost this in a more appropriate forum, like one of the ASP or ASP.NET 1.x forums here: http://p2p.wrox.com/default.asp?CAT_ID=11

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

Go to topic 39163

Return to index page 383
Return to index page 382
Return to index page 381
Return to index page 380
Return to index page 379
Return to index page 378
Return to index page 377
Return to index page 376
Return to index page 375
Return to index page 374