|
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 .
|
|
|
|
|
Please don't Cross post !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi All,
In my Application we are using flash files,in that if we click on the flash image it should redirect to another page in new window,so to do that we are doing like this:
string sFlashObject = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0\" height=\"195\" width=\"220\"> " + "<param name=\"movie\" value=\"http://ebutler.be/erez/fsi/fsi.swf?autobooklet=true&src=http://www.ebutler.be/erez&pages_dir=" + hfImageFilePath.Value + "&cfg=pages_presets/thumbnail.fsi&MouseModes_Mode2=0&
pages_demourl=http://localhost:3112/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value +
"&pages_demourltarget=_new\"> " +
"<param name=\"wmode\" value=\"transparent\"> " +
"<embed type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" wmode=\"transparent\" src=\"http://ebutler.be/erez/fsi/fsi.swf?autobookletId=true&src=http://www.ebutler.be/erez&pages_dir=" + hfImageFilePath.Value + "&cfg=pages_presets/thumbnail.fsi&MouseModes_Mode2=0&
pages_demourl=http:///localhost:3112/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value +
"&pages_demourltarget=_new\" height=\"195\" width=\"220\"> " +
"</object>";
In the above script you can notice that i gave demourl as:
"http:///localhost:3112 /UI/FSIViewer.aspx?FolderID%3d"
Instead of this i need to show Servername where ever we open the application
Thanks In Advance
Yamuna
|
|
|
|
|
you can get the value of Current Server via Request.Url after some string manipulations. Request.Url.toString() will give you the URl of the current webpage request so via string manipulations you can get the name of the server.
|
|
|
|
|
First of all, you code is nota understandable at all.
yamunarani wrote: pages_demourl=http://localhost:3112/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value +
What about this one,
pages_demourl="/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value +;
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
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.
|
|
|
|
|