|
Sorry for late reply
If you are using ASP.net 2.0 version then play with
<asp:dynamicimage runat="server"
="" imagetype="gif" imagegeneratorurlimagefile="textimage.asix">
<parameters>
<asp:parameter name="Text" defaultvalue="ASP.NET 2.0">
In C# 2.0 inbuilt control is given for having Dynamic Images
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Iam new to asp.net
Can we create more than one web.config file how it works if we declare more than one .
What is use of more config files
Thanks nAdvance
|
|
|
|
|
You can have separate web.config files for each directory in your web application, in addition to the one in the root. For each web page, by default, system will look for a web.config in the same folder as the page and if not found, then looks in the parent folder.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
How can i rotate image on my web page similarally, how we do in MS Office not like add rotator. is there any extra tools availabe for this?
Please Help...
regards,
PVC
|
|
|
|
|
|
Iam new to asp.net
Why can't we use navigation with server.tranfer for non aspx pages.pls help me
Thanks n advance
|
|
|
|
|
AFAIK Server.Transfer tells the ASP.NET service to load and execute another aspx page, any other page type can't be executed by the service. You probably want Request.Redirect?
|
|
|
|
|
Hi,
I have an image, file upload and a button control on my webform. I am uploading a new image and attaching the image to replace my existing image in button click event. It seems to work fine on my local machine. When I deploy and run on the server side, the image upload is working fine, the image is getting replaced in the background. However my web page still shows old image. If I reload the page then it shows the updated image. I am using the same name for the image when I am doing save as in the button click event. Any inputs why this is happening?
Appreciate inputs
Raj D
|
|
|
|
|
I belive, you are not loading the image after the image is uploaded. Could you please post your code for better assistance?
|
|
|
|
|
I have the Image1.ImageURL set to the same jpg filename that I am not changing. So in page load event caused by the button click event the image needs to be loaded. If it is reading from the server then it should show the new uploaded image. However it seems to be not retrieving this data from server. Please see the code below that I used. I even set the Image1.ImageURL in the page load event.. Still does not work. It works great on my local system. Please advice
<br />
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
Image1.ImageUrl = "SiteURL here/images/studios/S-arc-0001.jpg"<br />
End Sub<br />
<br />
Protected Sub Button6_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button6.Click<br />
Response.Cache.SetCacheability(HttpCacheability.NoCache)<br />
If FileUpload1.HasFile Then<br />
FileUpload1.SaveAs(MapPath("~/images/studios/S-arc-0001.jpg"))<br />
Image1.ImageUrl = "Site URL here/images/studios/S-arc-0001.jpg"<br />
End If<br />
End Sub<br />
Raj D
|
|
|
|
|
dasumohan wrote: Image1.ImageUrl = "SiteURL here/images/studios/S-arc-0001.jpg"
You are using the Absolute URL for Image Path. Use relative path.
Say,
Image1.ImageUrl = "images/studios/S-arc-0001.jpg"
dasumohan wrote: Response.Cache.SetCacheability(HttpCacheability.NoCache)
If you need the Cacheability, set it in the Page Load event.
The relative path may solve your problem.
|
|
|
|
|
Meybe cache?
try
Response.Cache.SetCacheability(HttpCacheability.NoCache);
|
|
|
|
|
Caching would be my guess as well, especially as your using the same file name. You could also try changing the filename to include some timestamp based hash.
|
|
|
|
|
|
Hello,
I have a databound datagrid with vehicle driver details. I add new/blank rows to this datagrid on a button click event to insert new record to the driver table and also have the edit/update functionality.
One of the columns is 'Current Driver?' which is also databound in a template column. Since there can be only one current driver for a vehicle at a given point of time, on checking the 'current driver' checkbox I need to write an itemdatabound event for the datagrid which will allow me to check only one checkbox. I do not want any messages to popup, all I want is if a person checks this checkbox for a record then it should be allowed but previously checked checkbox for any other records should be unchecked automatically so that any given point only record has the 'current driver' status checked.
Is there any way to achieve this?
I use VS2005Pro/.net2.0/VB
Thanks a ton.
Aartee.
...HE is watching Us All!
|
|
|
|
|
Checkbox is meant to be multiple selections. Yet you can do it thru codings.
But radio button is the best control in this scenario.
So use radio buttons and set the groupname property as common name.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Use radio or have a JavaScript function to uncheck.
|
|
|
|
|
Dear Sirs,
how do i can maximise the page while on load itself. is there anything as we do it on VB.
Thanking u...
|
|
|
|
|
|
Dear Sirs,
I need to generate a unique 12 digit number. i need it to be unique even if the application gets restarted. Is there any solution for this...?
|
|
|
|
|
Every time you create one, write it to a database, and when you are creating a new one, check if it's existed before.
|
|
|
|
|
Thanks for ur reply...
i need that key to be secured. so that if u have a key then u should not be able to predict other keys. hence is there any specific algorithm for generating unrelated keys...
|
|
|
|
|
you can use Select newid() in SQL Server
this will give you a unique identifier. but it's longer than 12 characters.
|
|
|
|
|
There is no way that you can totally disable prediction of keys.
You can use the random generator in the encryption classes, that will give you an extremely good randomness.
---
single minded; short sighted; long gone;
|
|
|
|
|
hllo guffa,
thanks for ur reply. could u explain me more about that method.
|
|
|
|