c# - Inserting data into database in asp.net froms using the get method -
i want insert data database directly using url. asp.net default utilises post method can mention method want use because post method secured. in method data send in url database.
i getting this:
http://localhost:37145/website6/default.aspx?__viewstate=%2fwepdwulltezmtc4njy3nthkzh%2fzblwg%2faetocad3rjqba9mpamvbemwh%2fv9x6bpkaeu&__eventvalidation=%2fwedaan9lgp6yeh%2bodzmcfidl9y1escfkfw%2fruhzy1olb%2fnuvm34o%2fgfav4v4n0wgfzhr3f%2fbbzxlqovqaj%2fdsazkteluarerozhikn64xnvvi%2fuvg%3d%3d&textbox1=admin&button1=button
in above url there 2 things _viewstate , _eventvalidation these 2 things , @ end value textbox , button appended url , data inserted database.
also there method data inside _viewstate code because want insert data databae directly using url , method.
also can response database whether data has been inserted or not. 1 if inserted or, 0 if failed.
you can like
mydata=request.querystring("textbox1")
then can insert mydata content database.
Comments
Post a Comment