I use ASP.NET with VB. myDataSet is a DataSet with some data. I want to save the DataSet XML to Local Storage and then load the item from Local Storage offline. But now I seem to be failed to write the item of xml to Local Storage. Does somebody know how to solve this problem?
Dim xml As String = myDataSet.GetXml()
Dim str As String = "<script> localStorage.setItem('key1', '" & xml & "'); </script>"
ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "showmessage1", str, False)
I use localStorage to save a item called "key1", and then I want to read the value and display it on Label('LabelLS'). But the Label'text does not change. I am sure localStorage get the key1 item(I had used document.write(d) to print key1 item). Does somebody know how to solve it?
Protected Sub ButtonSubmit_Click(sender As Object, e As EventArgs) Handles ButtonSubmit.Click
Dim str2 As String = "<script> var d = localStorage.getItem('key1'); var c = document.getElementById('LabelLS'); c.innerHTML = d; </script>"
ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "showmessage2", str2, False)
Actually i have a doubt. I was thinking to make some tool but the problem is that it needs to extract some data which is in datagrid in some other site. Is it possible to extract those data from that site and store it in,say,textbox in my site.
Hey thanks. Actually i got it. What i was missing was that i wasnt prefixing "http://" before. but it's ok now. but there's a diff issue now. I have a page say "http://ev~.in/.../..../~.jsp" It's showing error that "
A potentially dangerous Request.Form value was detected from the client (txtdest="<!doctypehtml><html...").Description:RequestValidationhasdetectedapotentiallydangerousclientinputvalue,andprocessingoftherequesthasbeenaborted.Thisvaluemayindicateanattempttocompromisethesecurityofyourapplication,suchasacross-sitescriptingattack.Toallowpagestooverrideapplicationrequestvalidationsettings,settherequestValidationModeattributeinthehttpRuntimeconfigurationsectiontorequestValidationMode="2.0".Example:<httpRuntimerequestValidationMode="2.0"/>. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.
I guess we cant bypass that. right? What my main aim is that i have table under tht page (i have to login too) which shows attendance. I just want to extract the attendance thing. Is it possible?