J
JJ297
Could someone assist me. I have the selected value from a tree view
going to another page with this code:
Response.Redirect("RequestForm.aspx?TitleID=" &
TreeView1.SelectedValue)
On the RequestForm.aspx page load section I have this:
TitleTxt.Text = Request.QueryString("TitleID")
I have this for my button click:
..CommandText = "AddLoanRequest" '
..Parameters.AddWithValue("@RequestorEmail", EmailAdd.Text)
..Parameters.AddWithValue("@TitleID", TitleTxt.Text)
How do I get just the title ID to go into the database. Right now
it's going in as the title ("name") but I only want the Title ID
Here's AddLoanRequest Stored Procedure
@RequestorEmail varchar (75),
@TitleID varchar(255),
AS
INSERT INTO Requestors(RequestorEmail,TitleID)
values
(@RequestorEmail,
@TitleID)
Thanks for your help
going to another page with this code:
Response.Redirect("RequestForm.aspx?TitleID=" &
TreeView1.SelectedValue)
On the RequestForm.aspx page load section I have this:
TitleTxt.Text = Request.QueryString("TitleID")
I have this for my button click:
..CommandText = "AddLoanRequest" '
..Parameters.AddWithValue("@RequestorEmail", EmailAdd.Text)
..Parameters.AddWithValue("@TitleID", TitleTxt.Text)
How do I get just the title ID to go into the database. Right now
it's going in as the title ("name") but I only want the Title ID
Here's AddLoanRequest Stored Procedure
@RequestorEmail varchar (75),
@TitleID varchar(255),
AS
INSERT INTO Requestors(RequestorEmail,TitleID)
values
(@RequestorEmail,
@TitleID)
Thanks for your help