Jump to content
Xtreme .Net Talk

sj1187534

Avatar/Signature
  • Posts

    113
  • Joined

  • Last visited

Everything posted by sj1187534

  1. Hi Guys, That did work. As you said, I declared the usercontrol in the wrong way. But when I changed it to what "hrabia" suggested, it worked. Thanks a lot for responding. SJ
  2. can u please explain a little more on how to use the client-side script u were talking about? SJ
  3. Thanks a lot..... I am fighting with that for a long time. SJ
  4. this is the error it is giving me when I did that: ============================================== Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 110: Dim passText As String, returnValue As Integer Line 111: passText = curUser.Get_Pass() Line 112: If ((Not NewPassRows1_txtNewFirstPass.Text Is String.Empty) And (NewPassRows1_txtNewFirstPass.Enabled = True)) Then Line 113: passText = NewPassRows1_txtNewFirstPass.Text Line 114: End If \EditProfile.aspx.vb Line: 112 ============================================== I made the textbox in the usercontrol public and also declared the user control textbox like this: Protected WithEvents NewPassRows1_txtNewFirstPass As System.Web.UI.WebControls.TextBox SJ
  5. Hi....It did not work. It is saying that txtFirstNewPass is not a member of System.Web.UI.UserControl !!!! I declared the text field txtNewFirstPass as Public in the usercontrol code-behind file and also declared the NewPassRows1 instance of NewPassRows in the main .aspx page as a UserControl. SJ.
  6. Nope...that didn't work!! Its giving the following error: --------------------------------------------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: If ((Not NewPassRows1_txtNewFirstPass.Text Is String.Empty) And (NewPassRows1_txtNewFirstPass.Enabled = True)) Then ' Error is in the above line' passText = NewPassRows1_txtNewFirstPass.Text End If -------------------------------------------------------------------------- NewPassRows1 is the user control and txtNewFirstPass is a textbox in the control. SJ.
  7. Hi, How can we access the webcontrols within a user control. For example, I created a user control that has two text boxes in it. Now, I want to read the text entered in these text boxes from the main page. How can we do that? SJ.
  8. Hi, I am trying to hide a row in a HTML table. The application should be something like this. There is a hyperlink and a table containing a text-box in each row. When I click the link, a particular row should be visible/invisible. I know we can use javascript in VB. But VB.net is not allowing to do that. Is there any other way to get this done? Thanks, SJ
×
×
  • Create New...