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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

MrRhodos

@MrRhodos
About
Posts
6
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SUM
    M MrRhodos

    It works fine when SUM returns a value. If not the FormView is completely empty.

    ASP.NET question

  • SUM
    M MrRhodos

    Is it possible to insert a default value to a textbox if a SUM doesn't return a value? If so, how? My SELECT statement is: SelectCommand="SELECT Projekter.ProjektId, Projekter.Projektnavn, Projekter.Projektbeskrivelse, Projekter.Organisation, Projekter.[Afdelingschefs godkendelse] AS Afdelingschefs_godkendelse, Projekter.Købsordrenummer, Projekter.SamletFaktureringsskønForProjektet, Projekter.MedarbejderId, Projekter.Projektstartdato, Projekter.Projektslutdato, Projekter.[Direktions godkendelse] AS Direktions_godkendelse, Projekter.Bemærkninger, Projekter.[Sidste bogføring] AS Sidste_bogføring, Projekter.Kundenr, Projekter.Leasingnr, Projekter.Adresse, Projekter.Postnr, Projekter.[By], Projekter.Afsluttet, SUM(Udgifter.Brugtbeløb)-Projekter.SamletFaktureringsskønForProjektet AS Expr1 FROM Projekter INNER JOIN Udgifter ON Projekter.ProjektId = Udgifter.ProjektId GROUP BY Projekter.ProjektId, Projekter.Projektnavn, Projekter.Projektbeskrivelse, Projekter.Organisation, Projekter.[Afdelingschefs godkendelse], Projekter.Købsordrenummer, Projekter.SamletFaktureringsskønForProjektet, Projekter.MedarbejderId, Projekter.Projektstartdato, Projekter.Projektslutdato, Projekter.[Direktions godkendelse], Projekter.Bemærkninger, Projekter.Kundenr, Projekter.Leasingnr, Projekter.Adresse, Projekter.Postnr, Projekter.[By], Projekter.[Sidste bogføring], Projekter.Afsluttet HAVING (Projekter.ProjektId = @ProjektId) AND (Projekter.Afsluttet = @Afsluttet)"

    ASP.NET question

  • Date type
    M MrRhodos

    It was much easier than that, but thanks for your help. <%# Bind("dob","{0:d}") %> And you are right about the book, it would probably help a lot.

    ASP.NET question

  • Date type
    M MrRhodos

    Now we are getting somewhere.. You understood my question. :-) I am a beginner, so you could please tell what kind of code I need and where I have to put it? I guees it is to be placed under scripts and look a bit like:

    Protected Sub ProjektstartdatoTextBox_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)

    ::code::

    End Sub

    Thanks for your help.

    ASP.NET question

  • Date type
    M MrRhodos

    I know. At the moment the text box contains a date rendered as text, but it is a date field in SQL DB. At the moment the format is "date time" and I want to change it to only "date".

    ASP.NET question

  • Date type
    M MrRhodos

    How can I change the date type of a textbox in a Formview? Thanks.

    ASP.NET 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