I have an application that has JS calling ASMX files to do asyncronous requests, using ASP.NET AJAX.
The problem is that I use always the same "onError" function, and now I don't know how to identify the method that rised the error, and it is giving me a lot of problems to debug errors. The parameter "data" of the onError method does not give enough information, for example:
en System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) en System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject) en System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject) en System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serializer) en System.Web.Script.Services.WebServiceMethodData.StrongTypeParameters(IDictionary`2 rawParams) en System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters) en System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams) en System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)
Is there any way to know the webmethod that raised the error?
The ASP.NET GridView control's default column types just don't seem to be up to using an image as a hyperlink. The HyperLinkField has no image attributes, and the ImageField has no navigation attributes. Is this possible without using a TemplateField?
How can I set the alt tag of an image that has been set using HyperLink.ImageUrl? I read an article that states you should be able to do HyperLink.Attributes["text"] = "My Alt Text" but that doesn't seem to work.
I want to try and avoid creating a separate image control and adding it to that hyperlink just to set an Alt tag.
Have a HyperLink in my GridView that Redirects to a new page. I need to capture a value in a cell, but when the HyperLink is clicked the RowCommand event is not firing.
how to implement click event for hyperlink as I am using hyperlink to logout the application and need to write the logout code in the event. For some reasons I am not able to use linkbutton.
I have a panel like this. I have an image control inside this panel that I have put as a background image for the panel using the style where I adjusting the z-indexes.This works fine!
I have put a label and a hyperlink like this in the <table>. The label can be seen but not the hyperlink which is the problem. I have tried to put a z-index to the hyperlink [Code]....
I have some dynamically-changing text, which I would like to appear as a hyperlink (i.e. underlined text which changes colour as you hover the mouse over it). However, I would also like this text to behave like an asp:Button object when the user clicks on it. This is so I can add some VB.NET into the click event of the text. Does anyone know how I can do this?
I have been trying to add and OnClick event to a Hyperlink. The problem is in both FindControl, they are not populating the hl and reportId variables. I have added the following to the RowDataBound method.
[Code]....
When clicked the client side addUsage OnClick event will pass the the variables to a Generic Handler as parameters.
i am developing a web site in asp.net using visual studio 2010 i am developing reports using reportviewer and .rdlc file i have added a hyperlink column in my report.
i have set URL as [URL] and it works fine. but when i deploy web site on my server i have to change my url from "http://localhost/webform2.aspx" to [URL].
there are many reports in this website so every time changing this url from localhost to domain name is very hectic
I developed crystal report using the tool available with VS2005. In SQL i have one image column, which is storing binary data.My requirement, is in crystal report i need to give one hyperlink to display that image.
I am adding a click event (display alert on click) to a html hyperlink inside an UpdatePanel on document(ready). However, the event never gets fired when I click the hyperlink. Is it because of ASync postback? What is the correct way to do this?
I have a hyper link control and I set the NavigateURL and the ImageURL property at runtime. I also need to set the class of the image tag that it generates but I cannot figure out how I can do that. The solution mentioned here [URL] does not work because the image url is hard coded.
I am developing a web application using asp.net, telerik RadAjax control. I have to need to develop when mouseover the image then show a hyperlink and when click the clink then open a new window(like facebook profile picture change).
i have small thumbnails of images displayed in datagridview taken from the database , now i want to show them on another page in bigger size ... but i dont know how to do it ?
I am using a DataList to display records from SQL backend in ASP.net 2.0 Framework 3.5. In the ItemDataBound I am setting up a Hyperlink's URL and enabling/disabling it based on data.
The HTML is as follows:-
[Code]....
and in the vb code:-
[Code]....
This is all working correctly in IE, but in Opera, FireFox and Safari while the Hyperlink works, the control is not disabled if Stk.Docs = 0.
I have four Imagebuttons that I want to disable depending on the Role the user belongs too. I know how do do this in a gridview or detailsview but for some reason it isn't working on just a plain form. So when a User who is not in the "Admin" role logs onto the page he either doesn't see the button or the hyperlink has been disabled thus not allowing him to proceed any further.
I have few images on my aspx website and was trying to do a simple link to another page from the image. Noticed that the image control does not let me specify the url, and when i was playing wtih <a href... in source code i run into some issues.
Then i noticed HyperLink control and i used that one. In a property window i see "ImageURL", and "NavigateURL", so i guess that eliminated the need for a "Image" control.
The only problem that i run into with the "hyperlink" control is that once the link is created, the image has a "nasty" red border which i need to remove but i am not sure how to. I set border style to None and it did not work. Then i tried to set border width to 0 and still i have a red border around my image.
How do i remove that annoying red border and is there a better way to do image link with aspx?
how to "discover" hyperlink in some text and convert that hyperlink in html hyperlink with asp.net (or javascript). For example, if a user enter this text:
You found it at [URL]
How can i found and convert in html like :
You found it at <a href='http://www.foo.com'>http....</a>