optiontips.in -Refresh Page

Posted by Optiontips.In under ASP.NET on 5/15/2012 | Points: 10 | Views : 938 | Status : [Member] | Replies : 0

I´m using a Dialog Box in my Web MAtrix Site that contains a text field which the user can insert whatever he wants to be recorded in the database.

So far so good, I have wrote the code correctly.

The problem is when he press the "send" button I don´t know how to get this new data. I have two options:

a-) Refreshing the page after recording;

b-) Geting the data and inserting without refreshing it - (the best option).

Any Suggestions? I looked for it in the MSN library but didn´t find anything.

db.Execute("INSERT INTO Links (Linkadd, CategoryID2, LinkUser ) VALUES (@0,@1,@2)", link, categoriesna, WebSecurity.CurrentUserId);
Refresh();!? / Response


(No response found.)

Login to post response