Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
O

orsini

@orsini
About
Posts
37
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • List view and SelectedItemTemplate problem "Help"
    O orsini

    thank so much for you help. it is very close to that, do you know how is it in C# then, i can convert it. I try it the way you did, and still something missing there.

    ASP.NET help question csharp

  • List view and SelectedItemTemplate problem "Help"
    O orsini

    Hi, I am new to .net and i have this maybe silly question. i have this test list view and i want to take a item field and poste it in a label when selected. here is the code. Protected Sub DepartmentsListView_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) MessageLabel.Text = "The key value is " & _ DepartmentsListView.SelectedValue.ToString() & "." Label1.Text = DepartmentsListView.SelectedItemTemplate.InstantiateIn(what else come here?) End Sub I was looking for info on that, but not luck. thanks for you attention

    ASP.NET help question csharp

  • sqldatareader and inner join problem, not getting all records, PLEASE HELP
    O orsini

    thank you so much, both answer are great, both worked fine, thanks again. I am trying to get away from those fance interface user and get more into the code behind. so, when I bind that productlistview. with the reader, i have a funcion that return the selected value.

    Public ReadOnly Property prodid() As String
    Get
    Return ProductListView.SelectedValue
    End Get
    End Property

    which i retrieve it in the next page. how can i tell the productlistview, that the datakeynames = myrreader("pid") from the code behind. thanks for your help.

    ASP.NET database help question

  • sqldatareader and inner join problem, not getting all records, PLEASE HELP
    O orsini

    i have this code, when i run this page, this reader dont bring the first record. i ran this sql(SELECT) on the sql database and runs fine, and if i put the seme SELECT in a Sqldatasource and bind the griview, it works fine too. what is wrong with this reader? ****************** any idea. THIS WORKS

    SqlDataSource1.SelectCommand = "SELECT products.pid, products.pname, flavors.fl_name, product_flavors.flavor_icon FROM product_flavors LEFT JOIN flavors ON product_flavors.flavorsid = flavors.flavorsid LEFT JOIN products ON product_flavors.pid=products.pid WHERE products.pid = 84"
    ProductListView.DataSource = SqlDataSource1
    ProductListView.DataBind()

    ********************** THIS NOT BRING ALL THE RECORDS. ALWAYS LEAVE ONE OUT.I THINK THE FIRST ONE.

    Dim conn As SqlConnection
    Dim cmd As SqlCommand
    Dim cmdString As String = "SELECT products.pid, products.pname, flavors.fl_name, product_flavors.flavor_icon FROM product_flavors LEFT JOIN flavors ON product_flavors.flavorsid = flavors.flavorsid LEFT JOIN products ON product_flavors.pid=products.pid WHERE products.pid = 84"
    conn = New SqlConnection(ConfigurationManager.ConnectionStrings("eConnectionString").ToString)
    cmd = New SqlCommand(cmdString, conn)
    conn.Open()
    Dim myReader As SqlDataReader
    myReader = cmd.ExecuteReader()
    myReader.Read()
    GridView1.DataSource = myReader
    GridView1.DataBind()
    conn.Close()

    ASP.NET database help question

  • Menu control and CSS problem, please help
    O orsini

    I have a menu control, when I apply this class to the StaticHoverStyle it gets applied to the area behind the text and the area of Height:30px and width:100% so the effect is doble , any help on that?

    .nav_hovermenu
    {
    height:30px;
    Width: 100%;
    cursor:pointer;
    background-position: left top;
    background-image: url(images/nav_hoover.gif);
    background-repeat:repeat-x;
    color:Blue;
    }

    ASP.NET help css question

  • help ListView and SelectedValue onloadpage
    O orsini

    Hi, I setup my listview Selected value to 0, when my page is loaded, i can't get that value to filter a sqldatasource. i try to read it and populate a label and it doesnt work, here is the code. any idea? Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Label1.Text = ListView1.SelectedValue End Sub <asp:ListView ID="ListView1" runat="server" DataKeyNames="pid" DataSourceID="SqlDataSource1" GroupItemCount="3" SelectedIndex="0"> <AlternatingItemTemplate> <td runat="server" style=""> pid: <asp:Label ID="pidLabel" runat="server" Text='<%# Eval("pid") %>' /> <br /> p_tn: <asp:Label ID="p_tnLabel" runat="server" Text='<%# Eval("p_tn") %>' /> <br /> </td> </AlternatingItemTemplate> <LayoutTemplate> <table runat="server"> <tr runat="server"> <td runat="server"> <table ID="groupPlaceholderContainer" runat="server" border="0" style=""> <tr ID="groupPlaceholder" runat="server"> </tr> </table> </td> </tr> <tr runat="server"> <td runat="server" style=""> </td> </tr> </table> </LayoutTemplate> <EmptyItemTemplate> <td runat="server" /> </EmptyItemTemplate> <InsertItemTemplate> <td runat="server" style=""> p_tn: <asp:TextBox ID="p_tnTextBox" runat="server" Text='<%# Bind("p_tn") %>' /> <br /> <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" /> <br /> <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />

    ASP.NET sysadmin help question workspace

  • question about Visual STudio 2008
    O orsini

    we are planning to buy VS 2008, I would like to know if buying one copy I can install it on my desktop and my laptop as long I am the only one using both. My boss said that is not true, Any idea? i was looking on Microsoft website, but i cant find any info about it. any help?

    ASP.NET visual-studio question csharp help

  • Microsoft in full compliance
    O orsini

    In miami, the city made a art center, for concert and art events where Carnival Cruise Line must be paying half, for that reazon the center is named Carnival Performing Art. Guess what? the cost was $420 million, Carnival paid only $20 million. It is locate just in downtown area, and when they finished, gues what, they realized that they didn't make any parking lot for it. but it doesn't end there. to keep the place is $600.000 per month, the company responsable for running it, ask the city for the money for a year, because they can't keep it. and now they are asking for $2.000 000 for the parking lot, all that with our money, but let me give you the good thing. since it is a center made with our money. well only rich ppl can go, ticket for any concert or event starts at $400, believe me it is not a joke.

    The Lounge php com question announcement

  • service capture
    O orsini

    Could someone tell me where to find a good server capture applicatio, i want to see what is post back to the server any time i make a request. i just went to Adobe MAX and I saw someone using it, but i couldnt find the name of it. thanks

    Web Development adobe sysadmin question

  • web server capture
    O orsini

    Could someone tell me where to find a good server capture applicatio, i want to see what is post back to the server any time i make a request. i just went to Adobe MAX and I saw someone using it, but i couldnt find the name of it. thanks

    ASP.NET adobe sysadmin question

  • Adding data into GridView
    O orsini

    check out this videos, they will help you a lot to do what you want to do, the are in asp.net official website [http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax](<a href=)[^]" rel="nofollow">http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax[^][[http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax](<a href= "New Window")[^]">^]

    ASP.NET css database design question

  • Need Help. filtering a SQLDataAdapter with a girdview selected.value [modified]
    O orsini

    Thank for answering, i might be do that, thanks

    ASP.NET css sysadmin xml help

  • Need Help. filtering a SQLDataAdapter with a girdview selected.value [modified]
    O orsini

    i have a grid view with bind to a sqlDatasource and I have a repeater that i want populate, according with the selected item in the grid view. and the data comes from a relational tables. here is the grid view and and the sqldataadapter, I know i am doing something wrong, but i dont know what it is, help please asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="EventId" DataSourceID="SqlDataSource1" SelectedIndex="1"> and here is the the sqldataadpter Sub BindData() 'Read sample item info from XML document into a DataSet Dim cnn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("vpx_newConnectionString").ToString) cnn.Open() Dim cmd As SqlDataAdapter = New SqlDataAdapter("select * from mediaphotos Where EventID =" & GridView1.SelectedValue, cnn) Dim ds As New DataSet() cmd.Fill(ds) -- modified at 10:13 Monday 17th September, 2007

    ASP.NET css sysadmin xml help

  • How to pass the gridview datakey to filter a dataset, help pleas
    O orsini

    HI, i am have this grid view, and i have a ds binding a repeater. i want to filter the select command depending on the seleccion in the gridview, i have this code, but i can't make work right. Sub BindData() 'Read sample item info from XML document into a DataSet Dim cnn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("vpx_newConnectionString").ToString) cnn.Open() Dim cmd As SqlDataAdapter = New SqlDataAdapter("select * from mediaphotos Where EventID =" & GridView1.SelectedValue, cnn) Dim ds As New DataSet() cmd.Fill(ds) ' Populate the repeater control with the Items DataSet Dim dsPaged As New PagedDataSource() dsPaged.DataSource = ds.Tables(0).DefaultView dsPaged.AllowPaging = True dsPaged.PageSize = 5 dsPaged.CurrentPageIndex = CurrentPage 'Disable Prev or Next buttons if necessary cmdPrev.Enabled = Not dsPaged.IsFirstPage cmdNext.Enabled = Not dsPaged.IsLastPage rptParts.DataSource = dsPaged rptParts.DataBind() can someone help me here, what i am doing wrong

    ASP.NET css wpf wcf xml help

  • Hyperlink in Grid View
    O orsini

    i hope i can post the code now, ImageButton ID="ImageButton3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/update_1.gif" PostBackUrl='<%# "product_imageupdte.aspx?pid=" + Eval("pid", "{0}") + "&" + "imgtype=3" %>'/>

    ASP.NET css

  • Hyperlink in Grid View
    O orsini

    i hope i can post the code now, ImageButton ID="ImageButton3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/update_1.gif" PostBackUrl='<%# "product_imageupdte.aspx?pid=" + Eval("pid", "{0}") + "&" + "imgtype=3" %>'/>

    ASP.NET css

  • Hyperlink in Grid View
    O orsini

    ASP.NET css

  • Hyperlink in Grid View
    O orsini

    this is a image button inside a formview, but the concept is the same for template fields in gridview, i hope this is what you are looking for, this link pass two values on the string to the next page. where i read them "pid" in this case is the field returne fron the database, you just have to make it twice, for name and last name instead imagtype=3

    ASP.NET css

  • A questiona about Partial Class , can someone help me here
    O orsini

    HI, i am new with V Studio 05, i found that some times my partial class get mess up and and my pages stop working fine, for example this is a new page i create, empty on. this is the aspx file <%@ Page Language="VB" MasterPageFile="~/index.master" AutoEventWireup="false" CodeFile="faq.aspx.vb" Inherits="faq" title="Untitled Page" %> and this is the vb file Partial Class faq Inherits System.Web.UI.Page End Class this is the error i get, Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). Source Error: Line 1: Partial Class faq Line 2: Inherits System.Web.UI.Page Line 3: Source File: C:\Inetpub\wwwroot\vpxsports_new\faq.aspx.vb Line: 1 can someone tell me what is goingo on here

    ASP.NET help asp-net database design tutorial

  • Adding data into GridView
    O orsini

    ok, when you bind the sqlDatasource. if you want enable edit and adding, you have to make when you are configuring the sqldatasource, in the box you select the columns you want to show from the database, there are three botton, Where, orden by and Advanced click the last one, Advanced, and check the first box "generate inset up........ and bind again your grid view to the sqldatasource. and play with the grid view setting to make enable edit and adding. hope that will help

    ASP.NET css database design question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups