CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Profile   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > newsgroup > asp.net forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/22/2006 9:37:37 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 13 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
vishal_0009
Asp.Net User
Problem with passing the text box value when using master page3/22/2006 9:37:37 AM

0/0

Hello there guys,

I m having a Masterpage and a ContentPage in my application. Content Page consists of textbox, and Submit Button. Master Page consists of Treeview control.

This content page, actually for search options, when user enters any details in the text box, and click the Submit Button, it will display the result if it does match.

And I've the coding to handle this - is in the codebehind file of the ContentPage - Button Click Event.

 Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click

        Dim strKeyword As String
        Dim objDataView As DataView

        strKeyword = Request.Form("txtSearch")

End Sub

But somehow, the value entered in the textbox is not passing to the variable strKeyword, I come to know that while debugging.

I've checked the another post - http://forums.asp.net/1226563/ShowPost.aspx - which states that its because of the form tag in the masterpage, If I removed the form tag from the master page and put it to the content page - it should work.

When I tried that, it gives me an error that - my treeview control which is in master page - it should be placed inside the form tag with run at server.

So, basically I can't figure it out what to do now? So what I want to do is just pass the value entered by user in the textbox - in the contenpage, to the variable in the codebehind file of that content page.

The same code actually works for me, when I am not using the paster page.

I really appreciate ur help guys. if you guys require any further info, plz let me know.

many thanks,

vish.
vishal_0009
Asp.Net User
Re: Problem with passing the text box value when using master page3/23/2006 2:50:29 PM

0/0

It's sorted now guys. You can check the link below for the answer.

http://forums.asp.net/1235035/ShowPost.aspx

Hope it will help to other ppl, if they face the same problem and don't know the answer.

Vish.

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



Search This Site:


Meet Our Sponsors:



Other Resources:

RSS Viewer - macromedia.flash.actionscript3 - Web Programming Newsgroups RSS Viewer, > ROOT > NEWSGROUP > Adobe-Macromedia Forums > macromedia.flash.actionscript3, Date: 2/20/2008 10:11:51 ... text box value when using master page ...
In a FormView: How can I retain the data inserted and not reset ... ... using the formview's PreRender event to default the values of the text box in ... login problem. remote access using logonuser api. login page not working ...
Time Master (Page 3) ... when you want to pass object-valued arguments such as a text box or ... Passing of the literal values creates a difficult problem when trying to write ...
Time Master (Page 2) In the example below, we attempt to count and output in the text box values from ... next, passing variables with the setTimeout function has some inherent problems. ...
ASP.NET Wiki: AJAX: Javascript and Client Scripting: Passing value from ... Passing values from a popup window back to the parent page is an often asked question. ... Using Extension methods in ASP.NET 3.0 and 3.5 with generics. ...
Passing ViewData To Master and Content Page - ASP.NET Forums ... the reverse direction, which i think does not add any value for ... Text ads served by Kanoodle. About this Site. Questions / Problems with this site? ...
Updating property value in a custom contorl using ASP.NET 2.0 Callback Need to find which text box has the focus. Help on binding controls based on result of others ? ... Why gridview paging failed in master page? ...
How to do a language switch in a master page. - ASP.NET Forums It should work with pages that use or don't a master page. ... only problem is - when I set the language by hand the convert.todatetime throws an exception. ...
ASP.NET Wiki: HTML UI: Web Controls: TextBox Password creates a single-line text box that masks the value entered by the user. ... Using Extension methods in ASP.NET 3.0 and 3.5 with generics. ...
Context Menu Problem - RunUO - Ultima Online Emulation Advanced Player Gate with Shard Control - My Master Runebook - Linked Books ... Value >= 100.0 ) return false; } } return base.MutateSpeech( hears, ref text, ...
Re: Parameter problem with OLAP and spaces - MSDN Forums ... the relevant text box of report1 I have defined a data detsination using report2 ... When I run report1 and click a value to "drill down" it only works for values ...


 
All Times Are GMT