Yes, this was exactly what I was looking for. Thank you!
Though I had to add one more line of code to get the string to show as XML. The code snippet I use is this:
Response.Clear();
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlString);
doc.Save(Response.OutputStream);
Response.ContentType = "text/xml"; // -> Added this line to show the XML properly.
Response.Flush();
Response.Close();
i have a spgridview
i write this code:
gridView.AllowGrouping = true;
gridView.GroupField = "YearMonth";
gridView.GroupFieldDisplayName = "date";
gridView.AllowGroupCollapse = true;
i want it expand not collapse in first time(when it run) what can i do? does any body know?
Hi,
I have create one solution having two web projects.
here I am using svn "." when i open the sln file it gives error like
"Refreshing the project failed.unable to retrive folder information from the server"
"unable to retrive folder information from the server" separate.
in IIS i have created 2 VD for both web projects.
using scripts & executable.
I want to programatically upload a file from the local computer to the server without any intervention from the user. I tried using the FileUpload control but it requires the user to click the browse button to select a file. Can't I programatically set the file to be uploaded? Or is there another way to do this?
That would violate just a few security protocols. Just imagine the risks if browsers just allowed websites to upload documents to the server without user input.
There is no possibility to have input type="file" control to set the value without human intervention. Even you cannot copy the input type="file" control.
Thus if you create a dynamic form and copy the control to that form and send.. it wont be possible. So forget about this..
Moreover you can do one thing, is to programmatically open the File browser dialog...