|
I would like to perform mouse click(right / single / double ) in a every node of an treeview control. But no such event is avail for this control. How can i perform this operation ?.
Jey
|
|
|
|
|
Hi there,
In this case, you can customise the TreeView control to do what you want. You can create a custom TreeNode as below and override the RenderPreText/RenderPostText method:
public class ExTreeNode : TreeNode
{
protected override void RenderPreText(HtmlTextWriter writer)
{
base.RenderPreText(writer);
writer.AddAttribute("onmouseover", "alert('hover me')");
}
} Also, to make the TreeView control work properly on postback, you may need to create a custom TreeView control by inheriting the built-in control and override the protected CreateNode method.
|
|
|
|
|
I currently using textbox with property multiple line, and i have write some text I want to break it into new line can insert into database.
Please help me?
................
|
|
|
|
|
Instead of text box try using Text Area.
|
|
|
|
|
You can set the TextMode property to multiline for a textbox.
Best Regards,
Apurva Kaushal
|
|
|
|
|
For some reason the new Linq for just does not work on my computer.
What I have installed:
SQL Server 2005 Express with default settings.
Visual Studio Web Developer 2005
Scott Gu's TagCloud linq example which you can find here:
http://weblogs.asp.net/scottgu/pages/Building-a-Photo-Management-Tagging-Site-using-ASP.NET-2.0_2C00_-LINQ_2C00_-and-Atlas.aspx
The Problem:
I tried to run Scott's example above but this error comes up whenever the program encounters "DataBind()" or if I try to use the sqlmetal command:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
This also happens with other linq related programs i run. Is there some setting I can change in SQL server to fix this? Thanks.
|
|
|
|
|
Hi there.
Do you enable the Name Pipes protocol for the Sql Express instance? You can find more hints from the link[^].
|
|
|
|
|
Hi
I've a dataset which retrieves an Image from table.
I want to bind it an imagebox. How to do it?
Thanks in advance.
Irshad
|
|
|
|
|
You can create another apx page and in the page load of this new aspx you can write this.
byte[] image = null;
image =(byte[])objDV[0]["imgImage1"];// Taking it from dataview/dataset/dtable
Response.ContentType = objDV[0]["strImage1ContentType"].ToString();
Response.BinaryWrite(image);
Assume this new aspx page name is ImageLoad.aspx
In your page where you are taking an Image control, call the method from aspx
page.
<asp:Image id=imgLogo runat="server" ImageUrl='<%#GetLogoURL(DataBinder.Eval(Container.DataItem,"intId"))%>' AlternateText='<%#DataBinder.Eval(Container.DataItem,"strName")%>'></asp:Image>
and in code behind you will have
protected string GetLogoURL(object objLogo)
{
return "ImgLoad.aspx"
}
"Walking on water and developing Software on a specification is easy, if
both are frozen..."
-- modified at 4:31 Tuesday 19th September, 2006
|
|
|
|
|
Can application use more than one web.config file. if yes than how will it identifies the default web.config?
|
|
|
|
|
Yes you can have more than one web.config file in an application, actually you can have separate config files for all the flders what you are having in your application. Normally if you are having config files in the folder it overrides the base web.config file.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Did any of you come across this type of issue...???
When sending EMail from ASP.NET application, for some domains mail is bounced back, as follows(this is coming only for some domains, not for all)
Subject: Spam Delivery Status Notification (Failure)
The following message to [recipientEmailAddress] was undeliverable.
The reason for the problem:
5.1.0 - Unknown address error 554-'5.5.2 Invalid data in message' EMail Body Format is HTML.
Email Body contains
1. strBody += "";
2. strBody += "....";
3. strBody += " \"sometext ... it's the only way to survive.\"";// in mail signature.
Thanks in advance.
-- modified at 13:58 Tuesday 19th September, 2006
|
|
|
|
|
Hi Folks,
I am having a ASP.NET Web Application developed on my friends PC on Visual tudio 2003. Now on my system, when i run it using IIS directly its working good. But when i run it using Visual Studio 2003 in debugging mode it is giving me this message: "Unable to start debugging on WebServer" and it doesn't start.
What is that which is not allowing me to start the applicatin in Debgging mode?
Thanks for your time and Help.
Karmendra
|
|
|
|
|
Check whether debugging is enabled or not?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks or your help Apurva, I am not good at ISS, how can i enable debugging, where should i do it??
Do what makes you happy....nJoy
|
|
|
|
|
You first check your config file for that may there you would be having:
debug="false"
Best Regards,
Apurva Kaushal
|
|
|
|
|
my config file is having debug set to true. Only after setting this i am geting the issuei posted.
Thnks again.
|
|
|
|
|
Then you check in IIS whether it set for debugging or not. For that check the property of the application in IIS. Check in directory tab whether application name is created or not.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks again,
I checked that applicaion name i already present, still it is giving the same error.
Thanks for yor time and help.
|
|
|
|
|
Have you tried these things:
1. Run "Internet Services Manager" (under Control Panel > Administrative Tools). If you are running on a server rather than a workstation then this will instead be called "Internet Information Services (IIS) Manager".
2. Find the project/application in the list of web sites. (Open up your computer in the list, and look under "Default Web Site" - or "Web Sites" if on a server).
3. Bring up its properties (Right click > Properties).
4. If the 'application name' (under "Application Settings" on the "Directory" tab) is greyed out then click '[Create]' and then '[OK]'.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I tried all the steps you metioned above. Still i am nt ableto run the application in debug mode I am still gettin the following error.
<br />
Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged.
Thanks
|
|
|
|
|
You try to re-register the aspnet account with the IIS something like this:
%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
on the command promt..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi KSuthar,
did u rename the virtual directory that the project resides in.
I hope this error is occureed becoz of the IIS had decided to revert the directory from an application to the directory.
So make the application again, via the IIS Management tool.
(1)Within the IIS management tool, select your virtual dir.
(2)Right-click and select Properties
(3)In the Properties dialog box, click on the Create button.
Hope this will solve your Problem
Happy Coding
With Regards
Satips
|
|
|
|
|
This doesn't seems to be working because in my earlier reply I too have told him check the same.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Ok fine.
With Regards
Satips
|
|
|
|