|
How are you initialising the XmlHttp object? There is a difference between IE and FF on how you create this/
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
i used prototype and a function that write myself.
but ie have a problem.
when i write a ajax url like this
("localhost.../service.ams/adduser?username="+varusername)
when i used alert(varusername) it give me curect ansewr
but in thenserver side
it is null
[webmethod]
public void adduser(string varusername)
{
context.response.write(varusername)
}
|
|
|
|
|
i have used this javascript and code for selecting a row in gridview. From this i'll be getting index of the row. its working fine but what i want is the cell value(of any columm) of that selected row can anybody tell me what to do to read the cell value.
function onGridViewRowSelected(rowIdx)
{ var selRow = getSelectedRow(rowIdx);
if (curSelRow != null)
{curSelRow.style.backgroundColor = '#ffffff';}
if (null != selRow)
{ curSelRow = selRow;
curSelRow.style.backgroundColor = '#ffff99';
document.getElementById('txtId').value =rowIdx ;}
}
code:
protected void gvAuditErrors_RowCreated(object sender, GridViewRowEventArgs e)
{ if (e.Row.RowType == DataControlRowType.DataRow)
{e.Row.Attributes.Add("onclick", "onGridViewRowSelected('"
+ m_iRowIdx.ToString() + "')");}
m_iRowIdx++;}
}
thanks in advance
|
|
|
|
|
plz help me out of this problem
|
|
|
|
|
I am developping a website in asp.net 2.0.
It works fine with localhost.
If I go to my site with an external IP (thrue internet) I have many images that disappear for a second session!
If I do a refresh (F5) many images disappear and others appear again.
As if it was a random behavior.
If I am connected with only one session (even with an external IP) it works.
Since I login a second time I have this problem in my both sessions!
Where can I search?
What could be my problem?
A bad parameter in IIS?
Thanks for your help.
Yannis.
|
|
|
|
|
maybe. I guess, your internet connection is so slow?? It happened to me like that if I was on bad internet connection..
ycorre wrote: second session!
What do you mean by "second session"??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I don't think it is my connection.
I download and upload quickly.
But I tried something : I uncheck the "Persistant connection" in IIS on the default web site properties.
And since now it works fine.
"Second session" :
I log one time on my site.
I laucnh a second explorer (IE or Firefox) and I log on my site a second time (I have 2 explorer in same time : 2 sessions for my site).
When I log a second time, I see the images disappear for the both sessions.
Regards.
|
|
|
|
|
ycorre wrote: I uncheck the "Persistant connection" in IIS on the default web site properties.
And since now it works fine
Now it works for you? it's weired.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hai,
I have a Crystal Report. I have to change background color of a Textobject dynamically.
What can I do?? Please help me....
Thanks in advance
Surya Nair
|
|
|
|
|
|
|
|
You could do this using ASP.NET AJAX[^].
Follow the tutorials on the site for more information.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
You can also do it using Icallback.
Go to Demo and code
Best Regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I success to implement the callback process with 2 dropdownlist. When my page is posting back, the second dropdownlist (with the callback) is beeing empty.
What is the problem?
What can I do to prevent this?
Thank you
Shay Noy
|
|
|
|
|
Hi,
We are having a two button in our web application (titled as 'Generate Report' , 'Cancel' )by default the page load with default data . whenever user clicks the 'Generate Report' button the application fetch the data from the database and display in the web page. meanwhile while fetch if the user clicks the 'Cancel' the fetching data action to be cancel the web page retain with the old data
|
|
|
|
|
rraja wrote: We are having a two button in our web application (titled as 'Generate Report' , 'Cancel' )by default the page load with default data . whenever user clicks the 'Generate Report' button the application fetch the data from the database and display in the web page. meanwhile while fetch if the user clicks the 'Cancel' the fetching data action to be cancel the web page retain with the old data
Very interesting. And your question is...?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I am using a temporary data show in gridview. I want delete the particular row when click the button. i am using the (GridView2_RowDeleting) event. I write below this code.
protected void GridView2_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
DataTable dt = new DataTable();
Session["dt"] = dt;
dt.Rows.RemoveAt(e.RowIndex);
GridView2.DataSource = ((DataTable)Session["dt"]).DefaultView;
GridView2.DataBind();
}
when click the delete button then create below error.
(There is no row at position 0.)
|
|
|
|
|
Gagan Deep Garg wrote: DataTable dt = new DataTable();
Session["dt"] = dt;
Your are creating new DataTable thats means your dataTable is null.
please don't forget to vote on the post that helped you.
|
|
|
|
|
Yes, I am creating a New data table. I have two buttons. First is Add, Second is Save. When Click the Add button, Data Temporary show in GridView.
When Click the Save Button, Data Save in Database.
|
|
|
|
|
You create a new DataTable object. By default, it doesn't have any rows of data in it.
You then try and delete the row at postion 0. There is no row at position 0, so an OutOfRangeException is raised.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I have already different object data table. but it can not implement
|
|
|
|
|
Gagan Deep Garg wrote: I have already different object data table. but it can not implement
You're not making any sense.
I've told you what the problem is with your code. If you don't understand, you're probably beyond help.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
First you have to copy data from your object datatable to temporary datatable
please don't forget to vote on the post that helped you.
|
|
|
|