I am using Webservices to generate and save the Xml. basically made an object of XmlDocument which exposes funtion save. Function has passing parameter as path . So i can give local path as "C:\..." . It even works for localhost as "http:\\localhost\..." but when i change that to "http:\\iP of the comp on network " it thows an error.
I also tried mapping of network drive and then give pathe as any local drive but in vain
I posted a question a while ago and nobody seemed to be able to help me, I got this huge error when trying to create a new user when I set the enablePasswordRetrieval="true". Then I read on the Internet that I had to create and set machineKey settings. I had a look at a couple of samples, and decided to keep it to enablePasswordRetrieval="false".
Do I still need machineKey values if enablePasswordRetrieval="false"? How do I create these keys? Can someone please explain??
Dim ds As New DataSet("Account")
Dim dt As New DataTable("Account")
Dim dr As DataRow = dt.NewRow()
dr("FName") = "Suresh"
dr("LName") = "Dayma"
dr("Salary") = "30300"
Dim dv As DataView = New DataView(dt)
ds = dv.Container
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
this is the error iam getting when i press the post button in the index.aspx page. check ou this link www.40dol.com(it is working fine in mozilla, but in ie it giving above error)
I have given a problem set in which i need to parse an xml document of size near about 1GB. In which the it should able to Parse/Load/Search the xml document in efficiently .
Now please anyone help me how to go for this means which are possible way and which is better PLease help me
I am working on PowerPoint Automation. I have an image stored in the database which I have to insert in ppt slide. Can anybody give me some pointer or sample code how to do this?
I am using the following piece of code
where fn is the name of the file.
I need to change only one column datatype of a datatable and remaining records and datatypes as it is.
I have one datatable filled up with data records , i need same records in another datatable with only one column of price with changed datatype of int from string .
datatable.copy() and clone () doesnt work caz they also copy structure of the original datatable.
i think v cant able to change the datatype of an datatable(if there is any data rows in it), so u just create a new datatable and write a code to create the table and move the records to that new DataTable
When I add a Crystal Report in a Visual Basic 2005 Project it is loaded together with its .vb source file but when I add it to an ASP.NET Project there is no source file. Could somebody explain to me why this is so?
is there any function to convert mysql string datatype to int datatype.
I need to search data records from a table between certain price values.now this price values are stored in mysql as varchar type. And I need to compare it with certain price range which obviously is double or int type,
but how can i compare int and string . it gives error.
var txt = '';
txt = window.getSelection();
else if (document.getSelection)
txt = document.getSelection();
else if (document.selection)
txt = document.selection.createRange().text;
alert(txt)//This line is to get starting index of selected text
Can anyone guide me is the below approach is correct or not....
I am writing my max html code in my class file (Business layer) and return simple string to presentation layer. Normally i am doing this type of coding where i need my html to be build on the basis of return values from database.
E.g. I want to show hyperlink on a page if count(*) from table is greater than zero otherwise display “Not Available”. So my coding apprach is as below
Yes you are right,web.config is parsed each and everytime and your method will be called.This will show impact on performance so you can use cache memory to hold the connecton string.
Dont forget to set the expiry policy for that cache item,
i prefer file based expiry policy so that when web.config is changed then cache item get refreshed.
Interesting, if it is parsing the xml file each time it's doing it really quickly, far more efficiently than I thought. For instance if I do something like the follow code...
for (int i = 0; i < 1000; i++)
...it's going to parse the xml file 1000 times and cause the page execution to hang for a bit, except my page execution time is about 0.015 seconds. Also if I add a Thread.Sleep(1) inside the for loop the page execution jumps to about 2 seconds (1 second for Thread.Sleep(1) x 1000 plus any overhead from Thread.Sleep() method) meaning it's not my page timer thats not timing properly or anything.
Are you sure it's reading the web.config file each time and not just reading the settings from memory? Or have I way overestimated the overhead of parsing through xml?
www.dominicpettifer.co.uk (work in progress)
Last Visit: 31-Dec-99 18:00 Last Update: 30-Sep-23 13:53