Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-01-2012, 10:25 PM   PM User | #1
Rickyb
New to the CF scene

 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rickyb is an unknown quantity at this point
Simple Ticketing system

Hi, I'm trying to create a simple ticketing system with ASP.NET MVC (C#) as a first project (seems simple enough I guess).

I followed this tutorial from Microsoft's http://www.asp.net/mvc/tutorials/get...o-aspnet-mvc-3 And used it to create a page where customers can be added

Now that I have a simple system to add and edit customers, I need to be able to 'create a ticket' for a customer. I figured I'd do the same thing, just for tickets, but that just gets me a page to create customers and a page to create tickets, but no way to 'link' a ticket to a customer/customer ID

I want to be able to 'create a ticket' from the customer details page.

I'm sure this is very very simple to do, I'm just new to it and I've been googling for days without finding what i need. I just need pointed in the right direction so i can take that and run with it

Thanks in advance if you can help me!
Rickyb is offline   Reply With Quote
Old 07-02-2012, 12:43 PM   PM User | #2
livetecshosting
New Coder

 
Join Date: Jul 2012
Location: Bug Tracking, Isssue Tracking
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
livetecshosting is an unknown quantity at this point
Yes, this is very simple. You can simply pass customerid via querystring like
CreateTicket.aspx?CustomerID=5

And then in ticket add page, just set this querystring customerid as default customer id.

To get customer id passed in query string
CustomerID = Request("CustomerId")

Thanks
livetecshosting is offline   Reply With Quote
Old 07-03-2012, 02:20 AM   PM User | #3
Rickyb
New to the CF scene

 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rickyb is an unknown quantity at this point
Awesome, i'm trying it now to see if I can get something to work. Do I need to do anything with the databases? Thanks again!
Rickyb is offline   Reply With Quote
Reply

Bookmarks

Tags
asp.net, mvc

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:19 PM.


Advertisement
Log in to turn off these ads.