|
Hi Abhijit,
Thanks for your reply
We are using FSI viewer in Our application so we are using the Code which i posted in the message
if you want you can view the Message again.To bind the image dynamically we have to use that code.
If u want explanation about FSI viewer i will give you not understood.
Instead of http://localhost:3112/ this i need to use <servername> that too dynamically i have to get.
regards,
Yamuna
|
|
|
|
|
Is http://localhost:3112 is the same site from which you are...
If it is .. you can only use Relative path, rather than absolute.
|
|
|
|
|
Hi,
From a link I open up a popUp window where I want to display an xml, exactly the way for instance IE does when you open an xml document from file (expanded with parents and childs).
In my Page_Load method (in the popUp window) I retrieve the xml string via a web service and then I want it to be displayed. But how?
I tried the following code:
string xmlString = rq.GetErrorTextByID(id);
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlString);
doc.Save(Server.MapPath("message.xml"));
Response.Redirect("message.xml");
This works fine, but of course it physically creates the message.xml file on disk and I don't want that. I want the xml to be shown the same way as this code does, but I don't want the file to be created.
This might be a simple task, but I haven't worked with asp.net for that long Any ideas/suggestions?
modified on Wednesday, September 23, 2009 10:38 AM
|
|
|
|
|
You mean you need to write the content of message.xml to your browser??
Use this code :
Response.Clear();
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlString);
doc.Save(Response.OutputStream);
Response.Flush();
Response.Close();
I think this is what you need.
|
|
|
|
|
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";
Response.Flush();
Response.Close();
|
|
|
|
|
Great...
Thanks for the update as well. .
I just overlooked the contentType .
|
|
|
|
|
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?
|
|
|
|
|
ptvce wrote: i have a spgridview
what is spgridview ? Are you talking about Share point control ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
How to Acieve multivel grouping for SPGridview (Sharepoint)
+Group1 --- TopLevel
...+Child1 --Second level
.........Item1
.........Item2
...+Child2
.........Item3
.........Item4
.........Item5
+Group2
..+Child1
.........Item6
..+Child2
.........Item7
Thnaks in millions..
|
|
|
|
|
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.
can u help me any one.
thanks in advance.
|
|
|
|
|
When you are getting the problem ? While taking loading the file ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
yes.
when i open the sln file from svn folder it shows error msgs.
and other applications are loaded succefully.
|
|
|
|
|
Hello every one,i have a (mysql) database name "classified" in my computer.i want to add this in App_data folder.how to do this .
|
|
|
|
|
Paste the database to the App_Data Folder. Change the Connection String as
"~/AppData/DbName".
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
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?
|
|
|
|
|
dptalt wrote: without any intervention from the user
Leave alone the implementation, tell me how you plan to decide which file needs to uploaded.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: tell me how you plan to decide which file needs to uploaded.
Using Artificial Intelligence
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Abhijit Jana wrote: Artificial Intelligence
Or Born negligence (I did not want to use exact word here )
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: I did not want to use exact word here
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
The file name and path to be uploaded is stored in a session variable. In the code behind I would like to have a method that uploads this file.
|
|
|
|
|
dptalt wrote: The file name and path to be uploaded is stored in a session variable.
From where these file name will come to session variable ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
dptalt wrote: it requires the user to click the browse button to select a file.
Yes It should be !
dptalt wrote: Can't I programatically set the file to be uploaded? Or is there another way to do this?
Is it a fix file ? If yes, you can try it using ActiveX Components. But it will work only on IE.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
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.
|
|
|
|