After inserting a new item, I would like to redirect to the page of that inserted item, instead of the list page.
How can I accomplish this?
Thks in advance
View Complete Post
When I add a new item to a list and I click on the OK button (NewForm.aspx), I want it to redirect to a other page
How can I do this?
This causes the link to go to the Homepage instead of going back to the listview.
By the way, If i can solve this by adding the JS to the masterpage instead of the NewForm.aspx page.
Please tell me how :P
Now, I have a custom form that redirects to another form. After submit the Ok button, it uses such link:
I want to redirect from NewForm.aspx to antoher's aspx form with the existing parameter IDO and new created ID (IDC), so the link would be:
I wanted to use http://spservices.codeplex.com/wikipage?title=$%28%29.SPServices.SPRedirectWithID&referringTitle=Documentation
but that function doesn't pass another paramteres, so the new link is:
how can I pass the existing parameters (IDO and Source)?
I am new to this, so bear with me. I am writing an application in C# that uses LINQ to validate a datacontext off a textbox to see if the record exists already. If the record does exist I inserted an if statement to advise the user that the record exists, if the record does not exist I would like to allow the record to be added to the database. If I take out my else statement everything works fine as far as inserting goes, but I do not want to allow inserts in this scenario. I have tried moving the if and else statement to different parts of the code but can't quite figure this one out. Any help would be apprecaited, attached is the code. This code is set to a button press. As a matter of fact, if you see any other errors along the way please feel free to point them out.
protected void enterBTN_Click(object sender, EventArgs e)
//make new data context
SHCDataContext insNewAll = new SHCDataContext();
//LINQ to check if customer exists in database
var checkExisting = from c in insNewAll.Customers
//make list to store values