|
I can only assume that you have no idea how ASP.NET works.
AJAX is not needed to move things about, if you're not changing anything on the backend. Even then, you can move stuff and do a postback to store the data when you're done. NOTHING can happen on the client end without javascript, that is the ONLY language that runs on the client. So, if you want to move stuff without javascript, the only way is to add buttons that perform a postback and move the order around in code behind.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank you sir for your reply .I thought there might be some way similar to drag and drop of Listitems between the different listbox in winforms.
|
|
|
|
|
You can do it but you need to use javascript (very tricky one you will have write bunch of code ),in ASP.NET you can do it on FLY,
That's why in web application you will find 2 button one for adding and other for removing item.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thank you Sandeep for your valuable reply...
|
|
|
|
|
hi friends
i want to export pdf document in asp.net with out using third party tools in asp.net.Is there possiblties pdf document like word and excel document generate in asp.net(with using Crystal reports and sql resports)
Prasanna Kumar.B
|
|
|
|
|
The reason those tools exist, is that they are required.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
function callreg()
{
alert("hello");
var shl = new ActiveXObject("WScript.Shell");
shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD");
}
This script is correctly working in local system. When i access this with remote system, it shows an error automation server cannot create object. Can any one help me to solve it???
Thanks in advance
Sutheesh
|
|
|
|
|
Sutheesh wrote: var shl = new ActiveXObject("WScript.Shell");
shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD");
Calling ActiveXObjects in IE are now critical. Microsoft has given many security updates to do so. You problem may be WScript.Shell is not available in your machine or it is not a trustable ActiveXObject in your machine.
I had the same problem, when I tried to use Excel object. Later on, I used my own VB ActiveX to my need.
|
|
|
|
|
Hi,
Try to save your HTML file as hta extention.
It may be solve your problem.
Just try and see.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
i am using aspx page, not html file.
Sutheesh
|
|
|
|
|
Hi,
I have the following declarion in my ASP.NET page:
<asp:RadioButtonList
ID="RadioButtonListContactPref"
CssClass="caption"
runat="server"
DataTextField="Name"
DataValueField="CommonCodeID"
</asp:RadioButtonList>
The radio button list is populated from the database like (partial code):
RadioButtonListContactPref.DataSource = oCC;
RadioButtonListContactPref.DataBind();
My problem is I do not know how to detect a change if a different radio button is selected, please can some advise how to detect a change in radio button. If the default is Yes, and if some one clicked on No, then alert must be displayed saying something like "A different radio selection was made".
Thanks
Brendan
|
|
|
|
|
Just check the ClientID for your radiobutton list or name of your radiobutton list
now in your javascript getElementbyName(radiobutoon list Name);
it will return all controls with same name means radio buttons
Now iterate through each radio button and check whether it is selected or not now when any radiobutton is seleceted store that radiobutton index or name in a varaible that is declare out your javascript function (class level variable ). Now again iterate through it whenever radio button is seleted and check the stored value with newly selected varaible .
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi,
you can try this code...
This is JavaScript
<script type="text/javascript"><br />
function CheckChange()<br />
{<br />
var tags = document.getElementsByTagName('input');<br />
for(i=0;i<tags.length;i++)<br />
{<br />
name = tags[i].name;<br />
if(name == 'RadioButtonList1')<br />
{<br />
if(document.getElementById(tags[i].id).value == 'No')<br />
{<br />
if(document.getElementById(tags[i].id).checked == true)<br />
{<br />
alert("Selected No");<br />
break;<br />
}<br />
}<br />
}<br />
} <br />
}<br />
}<br />
Call this function as below..
<asp:RadioButtonList ID="RadioButtonList1" runat="server" onClick="CheckChange()"><br />
<asp:ListItem Selected="True">Yes</asp:ListItem><br />
<asp:ListItem>No</asp:ListItem><br />
</asp:RadioButtonList>
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
I am feching the records from arraylist using datarow.
One by One record fetch and stored it into the varibles.
Now I have 2 buttons one is Next and other is Prev.
I want to circulate the records by using the Next and Prev buttons.
on the Next button when click Next record will be display on the form and on the Prev button Previous record will be display.
I have 10 records in the arraylist.
It is like online exam paper.
Thanks,
sjs4u
|
|
|
|
|
Are you using any control to show the records like repeater,Gridview ?
If no then just create a session varaible, store the index of the reacord that you are showing when you click next increment that index by one and when say Prev decrement that record by one and fetch the record from your arraylist.Also check lower and upper bound of your arraylist
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks Sandeep for a wonderfull solution.
Regards,
Sandeep
|
|
|
|
|
You can use a currency manager to navigate between records both ways within array list
http://support.microsoft.com/kb/316303[^]
For an incremental navigation you can use arraylist.Getenumerator method and enumerator.Movenext
|
|
|
|
|
Hi,
My cancel button code looks like this:
<asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="button" OnClick="btnCancel_Click" />
I need to add a Javascript method to the onclick event of this button, but the onclick event already has an event handler associated to it. What do I do now? I also tried the following but it did not work:
OnClick="return confirmExit();btnCancel_Click"
Please can someone advise?
Thanks
Brendan
<div class="ForumMod">modified on Thursday, February 14, 2008 2:58 AM</div>
|
|
|
|
|
You can do it in two way by registering the javascript from server and by writing in aspx itself
1. Button1.Attributes.Add("OnClick","javascript:JavascriptMethodName();")
2. <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="JavasscriptMethodname();" OnClick="Button1_Click" />
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks Sandeep
|
|
|
|
|
1 sql server,
1 class ,
1 Web.Config
1 Default.aspx
1 Default.aspx.cs
download link
www.evdenevenakliyatbul.com/DataAccess2.rar
Boya - Badana - Tadilat ve Tamirat Isleri Bir Yudum Kahve Molasi (Coffee) Dügün Nisan ve Gelinlik (wedding)
Google Reklamlarinizi Sadece Siz Yönetin Elektrik Proje Tesisat Projesi Çizimi Illere Göre Nakliyat Firmalari Istatistik
http://www.evdenevenakliyatbul.com
|
|
|
|
|
Hi,
I have developed a webservice which comprises a sinlge web method. This web method is used for document conversion. The return type of the web method is bytes. The web service is consumed in my web application and everything works fine. But when my colleague is trying to consume the same web service in my system to his web application an error is being thrown. My colleague added the web service to his application using the VS IDE. When accessing the web method after creating an object for the web service the following error is shown:
System.Net.WebException: The request failed with HTTP status 404: Not Found.
I tried to access the webservice by provinding the URL in IE then it works fine, so what are we missing? Do we have to do any addtional steps when consuming a webservice which is not in the same machine or same domain?
Any help is greatly appreciated,
gauthee
|
|
|
|
|
Client.DownloadFile("http://www.yahoo.com","C:\downloads\yahoo.html")
if i given like that yahoo.html downloaded in my C:\downloads\ physical when i run my aspx page in local host.
i run this coding in server this is not working i want to down files in a given path when i host my project into server.how can i do it
please any body can tell how to download pages into our system local physical directory.
This is haneef.............................................................
|
|
|
|
|