|
Don't know - Your class don't have any access modifiers, right ? Have you tried creating another sample class and try to refer it.
|
|
|
|
|
Development environment : ASP.NET 2.0 , Visual studio 2005
I am looking for a good method for deploying my ASP.NET application. I have used "Publish website" feature with "Allow site to updatable" checkbox checked. This worked correctly, but I am facing some problem in updating the site after deploying. I did the change in local machine and used the "Publish website" again, but it changed all assemblies names (assemblies which starts with app_web ).
There is another option to avoid this by checking "Use fixed assembly names" checkbox. But it will generate each assembly for each page, so I will have many DLLs in my bin directory. Is there any performance impact for this method ? Or do I need to use aspnet_merge.exe and merge assemblies ? I need to update this site regularly. Please suggest a good method.
Thanks
|
|
|
|
|
You may use merge.exe as well however looking at performance, you should use "Use fixed assembly names" option.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Thank you for the reply. Do you have any articles which talks about the performance issue for fixed naming ?
|
|
|
|
|
|
Hi there,
I've created a web page and it contains three images. These all images will be changable. So i want to give the path of images in Web.Config file and file name in that particular image src. How i can give that?. Also am using code behind not inline.
I wanted to write only in aspx page not in codebehind.
Below is my code:
Web.Config:
<add key="ImagePath" value="http://192.168.0.181/Labeling/Images/"/>
and in my aspx page,
<img id="ImgHeader" runat="server" src="<%header.gif%>" />
What all the ways available to call WebConfig file values?
Please help..!!
Regards n Thks
Sam.M
|
|
|
|
|
<img id="ImgHeader" runat="server" src='<% ConfigurationManager.AppSettings["ImgHeader"] %>' /> ?
|
|
|
|
|
Sorry. This is not working. It's not retrieving the value from web.Config file. When i right click the image and see the properties it says "Not Available"
I want to write the path only in aspx page and all other code i've written in code behind.
Do i need to register any namespace?
Regards n Thks
Sam.M
|
|
|
|
|
Then try
<img id="ImgHeader" src='<%= ConfigurationManager.AppSettings["ImagePath"] %>' />
|
|
|
|
|
I tried,but below error is coming:
Compiler Error Message: CS1002: ; expected
Regards n Thks
Sam.M
|
|
|
|
|
Yes you need to put ; at the end of statement.
<img id="ImgHeader" src='<%= ConfigurationManager.AppSettings["ImagePath"]; %>' />
|
|
|
|
|
Thanks. It's working fine.
Regards n Thks
Sam.M
|
|
|
|
|
string strConfig= System.Configuration.ConfigurationSettings.AppSettings[strKey];
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
modified on Tuesday, May 6, 2008 9:13 AM
|
|
|
|
|
Abhijit Jana wrote: string strConfig= System.Configuration.ConfigurationSettings.AppSettings[strKey];
strFilePath = HttpContext.Current.Server.MapPath(strConfig);
now read it as XML file
What do you mean ? What is the point in reading as XML file for setting a image URL ?
|
|
|
|
|
This is not working.
I want to write the path only in aspx page and all other code i've written in code behind.
Do i need to register any namespace?
Regards n Thks
Sam.M
|
|
|
|
|
If your images are all going to be assigned via code behind and you have access to the control:
imgHeader.ImageUrl = ConfigurationManager.AppSettings["ImgHeader"] + "image.jpg";
or, if your going to use a mixture of code behind and UI,
]]>' />
I think you might be duplicating your assignment of the src value, thus overwritting what is initially set loosing the path.
|
|
|
|
|
Hi,
I am showing image dynamacally.I got image path from database.
After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image.
(I think first time browser getting the image from temporary internet file).Do u have any Idea ?
Thank & Regards
Vijay s
|
|
|
|
|
Well of course you have to refresh the browser how else is it going to check the image??
If you dont refresh the browser you are just viewing the page in the same state you left it
|
|
|
|
|
that is the problem with everyone.... browsers do show pages from their cache.... one need to make it sure that browser is set to check updates of webpages on every visit.... only the it brings newer versions of pages on every time
Ashish Sehajpal
|
|
|
|
|
yes. you have to refresh that page after changing the image path in DB
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Vijayitsb wrote: After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image.
Hope you are not changing image path directly through query analyzer.
Browsers will cache the images depends on the URL. So if you can append some timestamp/random values to the end of URL, it won't be cached and when new image uploaded, it will show that immediately.
Assume initially your image path is something like /somedirectory/someimage.jpg
You can change that to /somedirectory/someimage.jpg?random=append some random value here avoid caching
Note : This will stop browser from caching the image. So if this page is visited frequently, browser has to load image each time.
|
|
|
|
|
Hi
Guys need ur help i am facing a problem in changing the data grid template's column header text at run time, hows this possible , kindly reply ASAP, thankx in advance .
|
|
|
|
|
give this a go
http://www.velocityreviews.com/forums/t92109-setting-column-header-text-of-datagrid-in-prerender-do-you-know-how-to-do-it.html
King Shez wrote: kindly reply ASAP
I wouldnt put this in your posts, this puts people off
|
|
|
|
|
hi ,
I work with asp.net (vb 2005) I use aspx.vb form
I try to display a dynamic form which is described by xml (componont like text box, label, radio button ...)
my pb is how to display it dynamicaly and how to fix its layout.
I ask is someone can help me.
thanks.
|
|
|
|
|
How you do that is up to you. You need to certain the controls before the page load event for them to ave viewstate, but beyond that, your XML format and what you do with it, depends on your needs.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|