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
  1. Home
  2. Web Development
  3. ASP.NET
  4. want some idea

want some idea

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasevisual-studiotutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mohd imran abdul aziz
    wrote on last edited by
    #1

    i am newbie to asp.net. Currently i using making web application using C# and aSP.NET(VISUAL STUDIO 2005).i am making web page to track Inquiry coming for services. I want to make inquiry id as combination of serviceid and maximum no in the respective service so i am trying when user select respective service. i would populate 1 + of max no. of respective service.Where do i write code for same. Is it possible as after selecting service id i am generating query. Please guide me.

    regards imran khan

    V 1 Reply Last reply
    0
    • M mohd imran abdul aziz

      i am newbie to asp.net. Currently i using making web application using C# and aSP.NET(VISUAL STUDIO 2005).i am making web page to track Inquiry coming for services. I want to make inquiry id as combination of serviceid and maximum no in the respective service so i am trying when user select respective service. i would populate 1 + of max no. of respective service.Where do i write code for same. Is it possible as after selecting service id i am generating query. Please guide me.

      regards imran khan

      V Offline
      V Offline
      Vikram kshatriya
      wrote on last edited by
      #2

      HI Imran, YOu can generate the respective service id at database level.If you are using database table then simply declare a variable and then select max id and increase by 1.See the example below - DECLARE @intMAXID INTEGER SET NOCOUNT ON --Get the Maximum ID from the Table and increment it by 1 SELECT @intMaxID = MAX([ContactId])+1 FROM TESTTABLE IF @intMaxID is NULL select @intMaxID = 1 I hope this is helpful for you as i understand the problem .If you want another then please let me know.

      Vicky

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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