Skip to posts
  • About

Win Web Hosting

Web Hosting Information
  • Home
  • ASP.NET
  • Cloud Hosting
  • Dedicated Servers
  • Linux Web Hosting
  • Microsoft AJAX
  • Microsoft Siverlight
  • Windows Web Hosting

I have to pass a hide int value whenever i change the value of the dropdownlist in asp.net. How to do?

February 22, 2010 James 1 comment
ASP.NET ASP.NET, change, dropdownlist, Hide, Pass, value, whenever

Comments

Leave a comment Trackback
  • Written by Lobes about 2 years ago.

    < %
    ' Selected constants from adovbs.inc
    Const adOpenStatic = 3
    Const adLockPessimistic = 2

    Dim cnnExcel
    Dim rstExcel
    Dim I
    Dim iCols

    ' This is all standard ADO except for the connection string.
    ' You can also use a DSN instead, but so it'll run out of the
    ' box on your machine I'm using the string instead.
    Set cnnExcel = Server.CreateObject("ADODB.Connection")
    cnnExcel.Open "DBQ=" & Server.MapPath("xl_data.xls") & ";" & _
    "DRIVER={Microsoft Excel Driver (*.xls)};"

    ' Same as any other data source.
    ' FYI: TestData is my named range in the Excel file
    Set rstExcel = Server.CreateObject("ADODB.Recordset")
    rstExcel.Open "SELECT * FROM TestData;", cnnExcel, _
    adOpenStatic, adLockPessimistic

    ' Get a count of the fields and subtract one since we start
    ' counting from 0.
    iCols = rstExcel.Fields.Count
    %>

    < %
    ' Show the names that are contained in the first row
    ' of the named range. Make sure you include them in
    ' your range when you create it.
    For I = 0 To iCols - 1
    Response.Write "

    < %
    rstExcel.MoveFirst

    ' Loop through the data rows showing data in an HTML table.
    Do While Not rstExcel.EOF
    Response.Write "

    ” & vbCrLf
    For I = 0 To iCols – 1
    Response.Write “

    ” & vbCrLf
    Next ‘I
    Response.Write “” & vbCrLf

    rstExcel.MoveNext
    Loop
    %>

    ”
    Response.Write rstExcel.Fields.Item(I).Name
    Response.Write “” & vbCrLf
    Next ‘I
    %>
    ”
    Response.Write rstExcel.Fields.Item(I).Value
    Response.Write “

    < %
    rstExcel.Close
    Set rstExcel = Nothing

    cnnExcel.Close
    Set cnnExcel = Nothing
    %>

Comment Pages:

Leave a Comment

Cancel Reply

You must be logged in to post a comment.

RSS

Win Web Hosting Home Page

Cheap Windows Hosting

 

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Archives

  • May 2012 (55)
  • April 2012 (81)
  • March 2012 (82)
  • February 2012 (79)
  • January 2012 (92)
  • December 2011 (163)
  • November 2011 (205)
  • October 2011 (339)
  • September 2011 (367)
  • August 2011 (367)
  • July 2011 (322)
  • June 2011 (338)
  • May 2011 (358)
  • April 2011 (94)
  • March 2011 (40)
  • February 2011 (36)
  • January 2011 (41)
  • December 2010 (30)
  • November 2010 (40)
  • October 2010 (41)
  • September 2010 (52)
  • August 2010 (150)
  • July 2010 (165)
  • June 2010 (159)
  • May 2010 (238)
  • April 2010 (248)
  • March 2010 (202)
  • February 2010 (576)

Recent Posts

  • Flash, HTML5 or Silverlight?
  • Data Binding Part 1
  • Silverlight Data Visualization
  • Database connection string access 2003 and 2007
  • coresuite map EN

Tags

.NET 2010 about AJAX Application Applications ASP.NET best Business cheap cloud Company Computing Control Create data Dedicated Development Free from help Host hosting India Introduction Linux Microsoft more need Page Part private Server servers service Services Silverlight Site Software Source Tutorial Using Video website Windows

Categories

  • ASP.NET
  • Cloud Hosting
  • Dedicated Servers
  • Linux Web Hosting
  • Microsoft AJAX
  • Microsoft Siverlight
  • Windows Web Hosting

Meta

  • Register
  • Log in
  • Valid XHTML
Powered by WordPress Web Design by SRS Solutions © 2012 Win Web Hosting