|
I don't think a listbox can show images.
|
|
|
|
|
asp.net does not have Image Listbox. you can write your own though!
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I will suggest you to write your own custom control using DIV .
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi
How can we check the failure of windows service programatically. I have a windows service that elapses every 5 minutes and I need to check if the service is failed then restart it automatically in my code. I googled but I couldnt find the Failed Status for the windows service.
Any ideas please!
|
|
|
|
|
gottimukkala wrote: . I have a windows service that elapses every 5 minutes and I need to check if the service is failed then restart it automatically in my code.
From where do you want to check it?
BTW : How does it come to ASP.NET Forum ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
gottimukkala wrote: I need to check if the service is failed then restart it automatically in my code
Wrap your main method in try/catch blocks. So you can handle *all* exceptions. BTW, this question has nothing to do with ASP.NET. Plese post in the correct forum next time.
|
|
|
|
|
Well, first you need to handle all possible failures in your application.
Windows Services can perform some actions when it fails. Looks at Services windows in the recovery tab. One of the option is 'Restart the service'
Before you go head and select this, mind the consequence of your action. If there is something in your app or data that is thrown an exception, and it repeats every time the service starts, you will end up chasing your tail.
BTW: Next time use the right forum.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Thanks all for your replies. Sorry, I will post next time in other forum.
|
|
|
|
|
Good Day all
Am using Ultragridweb on .NET 2.0. I want to have a multiselect on the grid cells and save it in a Arraylist. So far this is what i did
protected void ultraGridCycles_SelectedCellsChange(object sender, SelectedCellsEventArgs e)
{
ArrayList array = new ArrayList();
foreach (UltraGridCell cell in ultraGridCycles.DisplayLayout.SelectedCells)
{
if (cell.Value != null && cell.Value.ToString() != "")
{
array.Add(cell.Value);
Session["Cycles"] = array;
}
}
}
When i try to do Multi select it brings me only the last value i selected.
How can i do this
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Vuyiswa Maseko wrote: Am using Ultragridweb on .NET 2.0.
Since this is a third party control, I don't think this is the right place for this question. You have to try this control's customer support.
Vuyiswa Maseko wrote: ArrayList array = new ArrayList();
A better option is to use a generic List than ArrayList since you are on .NET2.0.
|
|
|
|
|
I know this is a Third party Control. but i need an idea on how to use it with Gridview. that is why in my subject i said gridview not ultragridview
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
I have two dropdownlists. on change of first dropdownlist javascript function is called inside which another dropdownlist is disabled. But when the selectedindex changed of first dropdownlist is called second dropdownlist is not disabled.
How i can disable the second dropdownlist.
Life is Beautiful
|
|
|
|
|
Have you debugged through this to see what is not happening?
|
|
|
|
|
Hi,
I have an application where when a user sign off and then hits windows back button it is navigating to the previous page in the authenticated space. But i want that the user should not be allowed to navigate to authenticated space but instead show an error message. for that i am thinking that I might need to refresh the browser acche. Any ideas on how to do that.
Any other possible solutions are also welcome
|
|
|
|
|
Try this
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Expires = 0
|
|
|
|
|
I m using Menu Control. there are two cases when user clicks on any menu item.
1. it redirect to the pages in same domain.
2. It redirect to other website.
case 1 is working fine but in case 2 its opening the url in same domain. (under project name).
for example, if project name is MyProject.
In second case, when I click the menu item, I should redirect to "www.website1.com". But instead of this, I'm getting MyProject/www.website1.com.
Tnx in adv.
Balasubramanian K.
|
|
|
|
|
BalasubramanianK wrote: In second case, when I click the menu item, I should redirect to "www.website1.com". But instead of this, I'm getting MyProject/www.website1.com.
where is that section ? please put that.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Thanks Abhijit.
digimanus reply helped me. Thank you
Balasubramanian K.
|
|
|
|
|
you might add http:// before your www......
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Yah.. It is working now. Thank you very much.
Balasubramanian K.
|
|
|
|
|
|
I didn't understand the which communication layer are you using. Are you just trying to connect with Database with your windows service? Isn't it.
if yes, you can connect. But <code>not using</code> the Configuration you have provided</b>.
Try to read out about ConnectionString and AppSetting section of App.config file.
One sample from you
<configuration>
<appsettings>
<add key="DBConnectionString" value="Data Source=myserver;Initial Catalog=MyDB;User ID=sa;Password=password@123" />
</appsettings>
</configuration>
Now read the key value using ConfigurationManager class.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hey guys, this question is out of curiosity.
What is the difference between querying, inserting, updating or deleting data in your database from the codeBehind than from a WebService?
I've been taught to do data access in the WebService and thats what i do, but the only reason as to why i can come up with is if you have a routine like NotifyWebMaster(Message); you dont have to replicate that code in every .cs file you want to access it from.
Are there any other reasons?
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
hi Harvey
I assume if you say Code behind, you are talking about behind a form(Windows) aspx(Web). cool Good Question. Its not a Good idea or a good Practice to write your database work in your Forms or Pages code behind. Especially me, i don't do my database work using wizards. i create a DAL(Data Access layer) and a BLL(Business Logic Layer). Now all your pages or forms as you said will call one function that you have a function repeated in all the pages as you said. If you taught to write your data access layer in your Web Service, its good and its a good Practice. but i Prefer DLL's than web services. but it all depends on your and the Application you are writing.
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
modified on Thursday, March 19, 2009 10:28 AM
|
|
|
|
|
Hi Vuyiswa,
Good Answer. It always better to developed own BLL and DAL for Business and Database Access respectively, and its a very good practice.
Vuyiswa Maseko wrote: If you taught to write your data access layer in your Web Service, its good and its a good Practise. but i Prefer DLL's Smile than web services.
Exactly. When you will choose web service or when to use dll that totally based on your requirement.
cheers,
Abhijit
CodeProject MVP
|
|
|
|