Something like "document.getElementById('DivId').innerHTML = RenderRating(reply);" in the ready state change function when to receive a successful status (XMLHttpRequest status of 200) from the XMLHttpRequest.
I have listbox1 and listbox2 if i double click on any item i need to add it into listbox2,
This is part is working fine with my code,
var s_Index = ctrlSource.selectedIndex;
var s_Value = ctrlSource.selectedValue;
if(s_Index > -1)
var newOption=new Option();
newOption.value = ctrlSource.options[s_Index].value;
newOption.text = ctrlSource.options[s_Index].text;
If user click on same item that already exit in listbox2 then i need to display alert message i.e u have already selected particular item.
I would like to use the DetailsView control for Insert, Edit and Delete of records. But my problem is that my tables consist of 50 fields. Is there a way to split the DetailsView into two columns? Or is there a way wherein I can use two DetailsView with only 1 common SQLDatasource?
I have a website with an ActiveX object embedded in the default.aspx. When I run the project, I am asked to install the embedded object. If I browse to a sub-page, when I return to default.aspx, I am asked to install the same object I just installed!
I assume this is intentional (for testing purposes?). Is there a way I can setup IIS so I'm asked to install the object only once per session?
1) You have a System.Data.DataTable object with data
2) You want to replace the data in a SQL Server table with the data in the System.Data.DataTable
With ADO.NET, using a data table you'd have to do it in two steps:
1) send a TRUNCATE TABLE statement to SQL Server using a SqlCommand object.
2) use the SqlDataAdapter.Update() method to insert the new records (just make sure that the row version for each row is set to "new").
i m developing web portal in C# asp.net web application. i want to display image in hyperlink control rather than text. i can do it by using hyperlink's property that is 'imageurl', but problem is that in hyperlink,image displays in actual size not in that size which i have given in hyperlink height and width property.
can u plz tell me how i can restrict size of hyperlink upto my own requirment i mean i want to display all the images in hyperlink of size 100/100,even if image actual size is 500/500. just as i can do in image control.No matter how big image is but it always displays in that fixed size which i give to it.
Before I start, let me just say that if you want the images to display as 100x100, then it would be best and easier to simply resize the image and save it that way. However here are some options:
1) The easiest is to use HTML controls (an anchor "A" tag wrapped around an image "IMG" tag) instead of server controls. This is what is being rendered for you right now anyway when you are using the ImageUrl property of the Hyperlink control. The problem with it is that it doesn't set the Height and Width of the IMG element, it sets it for the A element. This is your best alternative.
2) If you are using the Hyperlink control because you want to use it for a postback event, then use the ImageButton control instead. The height and width properties of the ImageButton control will work in this case.
sounds like yahoo is stripping the tag. Wise of them, really.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
I want to have a link that upon clicking on it, it open SaveAs Dialog for saving a file. Just like we have the file URL and we right click on it and click Save Target As... I want to do it with just one click.
Is there a way to manipulate a server control with client script?
I have a System.Web.UI.WebControls.Menu control on my page. When the user selects a particular style sheet from a select control, I want to change the Orientation property of the Menu control from "Horizontal" to "Vertical".
How can I go about this?
Last Visit: 31-Dec-99 18:00 Last Update: 16-Aug-22 0:11