|
Hi Sebastian,
Datatable can be used in Ajax ,but it needs to be returned as XML from the Server page ,and then that XML can be parsed and the desired task could be done .
eg: in this code in am converting a DataTable into XML string
(This code is on Ajax Server page which returns XML string to Client page which Implements ajax)
public partial class DataAccessAjax : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string result;
DataTable dataTable=GetEmpRecords(); --function returning Dataset
using (StringWriter sw = new StringWriter()) {
dataTable.WriteXml(sw);
result = sw.ToString();
}
Response.Write(result);
Response.End();
}
Now XML string is returned of datatable could be used for Ajax implementaion at clientside
|
|
|
|
|
Do you mean AJAX, or ASP.NET AJAX, a library for people who don't want to learn how to write AJAX code ? What are you trying to do exactly ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi,
i want to add tooltip to dropdownlist i am using the below code
private void BindTooltip2()
{
for (int i = 0; i < ddlJob.Items.Count; i++)
{
ddlJob.Items[i].Attributes.Add("title", ddlJob.Items[i].Text);
}
}
but this one is not working in safari browsers .
its working in mozilla,netscape only
give some idea to solve this
|
|
|
|
|
Hello,
i get the following error : ActiveXobject is not defined
Any help
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
ellllllllie wrote: ActiveXobject is not defined
Well define it then. With the details you have supplied thats about all I can suggest.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
How can you possibly expect any help with such a useless title and so little provided information?
|
|
|
|
|
Be more descriptive of what is causing this error. I.e. offending code?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
iam calling a window.open when a button is clicked through javascript.
the problem is that it is getting minimised when ever it is opened .how to solve the problem.
|
|
|
|
|
Use This i hope it will help u
function OpenNewCust()
{
window.open("Default.aspx","Title","status=yes,toolbar=no,width=550, height=600, menubar=no,location=no,scrollbars=yes,left=350,top=165");
return false;
}
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
Hi,
I am using .net 2.0. In my project I have a gridview in a table. In that gridview I have ImageButtons in the ItemTemplate tag. When I run the project it works fine in Mozila. But in IE 6.0, the image buttons are not wrapped the text in its datafield and the whole table design is collapsed. Please give me an idea to design the ImageButton that will suit all browsers.
Thanking You.
|
|
|
|
|
IE6 is almost certainly deviating from the standard. If you're using a standard server control, the framework should deal with it. You need to look at the generated HTML and work out how to change it so that it works in IE6.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all,
i need to inactive one dropdownlist while we select item "Photo prints " in another dropdown list. and i need to display a text in txtcomment "My order is of minimum Rs. 2,500.".
i am sending my code pls help me...
If Not Page.IsPostBack Then
Me.ddlproduct.Items.Add("Select")
Me.ddlproduct.Items.Add("Photo Prints")
'If Me.ddlproduct.SelectedValue = "Photo Prints" Then
' 'Me.ddlquantity.Enabled = False
' txtcomment.Text = "My order is of minimum Rs. 2,500."
'End If
Me.ddlproduct.Items.Add("Custom Calendars")
Me.ddlproduct.Items.Add("Collage Posters")
Me.ddlproduct.Items.Add("Greeting Cards")
Me.ddlproduct.Items.Add("Photo Mugs")
Me.ddlproduct.Items.Add("Zoomini Books")
Me.ddlproduct.Items.Add("Zoomin T-Shirts")
Me.ddlquantity.Items.Add("Select")
Me.ddlquantity.Items.Add("30-50")
Me.ddlquantity.Items.Add("51-100")
Me.ddlquantity.Items.Add("101 & Above")
End If
and
Protected Sub ddlproduct_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlproduct.SelectedIndexChanged
If Me.ddlproduct.SelectedValue = "Photo Prints" Then
Me.ddlquantity.Enabled = False
txtcomment.Text = "My order is of minimum Rs. 2,500."
End If
End Sub
Thanks
Subbu.
|
|
|
|
|
This is ugly, but I'd expect it to work, so long as the autopostback on the control is true. I'd do this in javascript tho, not via a postback.
It's hard to know what's wrong when you don't tell us what happens when you try to use the code. Does the event fire ? In the debugger, does Me.dllproduct.SelectedValue equal what you expect ? Is the issue that you never reenable dllquantity and clear txtcomment, if something else is selected ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Subbu ,
You could very well use javascript for this purpose ,it will prevent uneccesery post back,
but if at all you are doing it in code behind then it seems fine except for part
subbu.sk wrote: 'If Me.ddlproduct.SelectedValue = "Photo Prints" Then
' 'Me.ddlquantity.Enabled = False
' txtcomment.Text = "My order is of minimum Rs. 2,500."
'End If
which is not required (anyways it is commented)
I recommend you implement this in JavaScript
On Code behind u just need to add attribute (In Page load Event)
ddlproduct.Attibutes.Add("onchange","CheckDropDown();")
In on client Side you need to define this function "CheckDropDown();"
function CheckDropDown()
{
var ddlproduct=document.getElementById("ddlproduct");
var ddlquantity=document.getElementById("ddlquantity");
var txtComment=document.getElementById("txtComment");
var selIndex=ddlproduct.selectedIndex;
var optValue=ddlproduct.options[selIndex].value;
if(optValue=='Photo Prints')
{
ddlquantity.disabled=true;
txtComment.Value='My order is of minimum Rs. 2,500';
}
else
{ ddlquantity.disabled=false
txtComment.Value='';
}
}
|
|
|
|
|
What happens when u try to update data in a dataset in .NET while the
record is already deleted in SQL SERVER as backend?
OR What is concurrency? How will you avoid concurrency when dealing with
dataset? (One user deleted one row after that another user through his
dataset was trying to update same row. What will happen? How will you
avoid the problem?)
|
|
|
|
|
I would implement record locking so that one user at a time had the right to edit a piece of data.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sounds a lot like a homework question...
|
|
|
|
|
we need answers not assements
|
|
|
|
|
Nice. Way to reply to a two year old message...
|
|
|
|
|
iam working on one web application i have this error when i go from one page to other
Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.
Parameter name: instance
plz give me solution for this why this is coming
iam using .net 3.5,ajax.
|
|
|
|
|
I would guess that you're not using AJAX at all, you're using ASP.NET AJAX, which is a wrapper for people who don't need performance and who can't be bothered learning AJAX for themselves.
You should be able to set into your debugger to see what line is causing the error. If it's deep in the framework you have no control over, then read the documentation, or google the error message, I'm sure someone else has solved it already.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian that was a very poor non answer.
|
|
|
|
|
if you dont know answer than it not Compulsory to answer
|
|
|
|
|
Set the ScriptMode attribute of ScriptManager to Release
|
|
|
|
|
Hello All,
In my project iam using dropdown, I binded the values in the dropdown,it has morethan 100 values so the drop down comming so big. For my query is how can I display only 5 values with vertical scrolbar. Please help me any one having some good idea..
Thanks in advance..
Praveen Kumar.R
|
|
|
|