Search

You searched for the word(s): userid:783182

Matching Posts

  • VB random numbers - in decimal

    Hi, I am trying to write a vb function that provides a 2 digit random decimal number between 0.6 and 0.9. Following code doesn't return anything. What am I doing wrong? When I call the function, I wanted to get a number...something like: 0.65, 0.76, 0.9, 0.5 etc. (they are all between 0.6 and 0.9) Private Sub DecimalNumber() Dim x As Integer For x = 6 To 19 Randomize(Timer) Dim y As Decimal = Format(Rnd(), "0.00" ) Return Next x End Sub
    Posted to Visual Basic .NET (Forum) by nnorman on 5/12/2009
    Filed under: Random
  • CollapsiblePanelExtender Access Control

    Hi, I am using CollapsiblePanelExtender in my web page and I wanted to access its click event to control the access. If the user is not authenticated he/she should not be able to collapse the extender panel. So how can I do this? Thanks for your thoughts!
    Posted to ASP.NET AJAX Control Toolkit (Forum) by nnorman on 5/1/2009
  • Re: Repeater Itemdatabound Question

    Hi, Thanks for your response! But I do get the following error after adding the change. Any thoughts? Public member 'ItemIndex' on type 'DataRowView' not found. 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.MissingMemberException: Public member 'ItemIndex' on type 'DataRowView' not found
    Posted to Getting Started (Forum) by nnorman on 4/30/2009
  • Repeater Itemdatabound Question

    Hello, I have a Repeater running in my web page to get multiple records for a single user.For an example the user has following data: CompanyName | JobTitle =========== ===== CompnayA TitleA CompanyB TitleB CompanyC TitleC I wanted to modify the data in CompanyName through ItemDataBound so the ouput looks like the following: 1. CompanyA, TiltleA 2. CompanyB, TitleB 3. CompanyC, TitlkeC Lets say I have total of 3 records.. How do I add 1,2,3...at the beginning to records... In the aspx page I have
    Posted to Getting Started (Forum) by nnorman on 4/30/2009
    Filed under: Repeater DataBound
  • Re: Repeater ItemDataBound =System.NullReferenceException: Object reference not set to an instance of an object

    Wow! I removed the empty alternate template..works perfectly now! Man I spent a complete day to figure this out... anyway...THANKS A BUNCH!!!
    Posted to Data Presentation Controls (Forum) by nnorman on 4/30/2009
  • Repeater ItemDataBound =System.NullReferenceException: Object reference not set to an instance of an object

    Hi, My whole day is gone now trying to figure out what is wring with this code. The JobRepeater_ItemDatabound codegives me problems. Without this code data shows-up in the repeater. The problem is the label lblHomeAddressin the repeater item template does not recognize it. I kind of simplified the code to show this error.. The error I get is.. ======================================================== Object reference not set to an instance of an object. Description: An unhandled exception occurred
    Posted to Data Presentation Controls (Forum) by nnorman on 4/29/2009
    Filed under: System.NullReferenceException: Object reference not set to an instance of an object
  • Re: Passing variables in user controls

    Thanks to all of you! I reluctantly decided to use session. I realized ViewState only good for postback and it can not be used to retrieve variables from page to page.
    Posted to Getting Started (Forum) by nnorman on 4/28/2009
  • Passing variables in user controls

    Hi, I have a bit silly question to ask. I have a user control, Test.ascx where ID is a variable. There is another user control inside of this code Nextpage.ascx. I am trying to access ID within Nextpage..but it is coming out empty. Is this suppose be this way? Is there a way to pass this variable to Nextpage.ascx? Test.ascx =========== <%@ Control Language="VB" AutoEventWireup="false" CodeFile=Test.ascx.vb" Inherits="modules_Test" %> <%@ Register src="Nextpage
    Posted to Getting Started (Forum) by nnorman on 4/27/2009
    Filed under: User control
  • SQL Procedure to use if else etc.

    @username varchar(20) @name varchar(50), @bdate as date, @isBdatePrivate int, AS SELECT name, id, title, bdate, IsBdatePrivate FROM Employees WHERE username = @username GO =================================================================== Hi, I have this stored procedure. Here IsBdatePrivate field is declared as tinyint and it takes 1 or 0. In the select statement, I would like to make a change as follows.. SELECT name, id, title, bdate, isBdatePrivate As (public if the value is 0, private if the
  • Re: Drop Down List - Assign from the Database

    Thanks again! Silly me..did not do the coding right.. -:( I had a CountryLoad procedure where it picked-up the data from the table and do the binding for the drop down list etc. and I blindly called it. I added following lines... Dim str As String = ds.Tables(0).Rows(0)("country").ToString() Dim drp_country As DropDownList = CType(FindControl("drp_country"), DropDownList) drp_country.DataSource = MyCode.GetCountries(True) drp_country.DataTextField = "Value" drp_country
    Posted to Getting Started (Forum) by nnorman on 4/16/2009
Page 1 of 6 (58 items) 1 2 3 4 5 Next > ... Last »