|
Hi there,
I have the situation as follows:
I have custom web part, which is provider and consumer at the same time. It implements IWebPartTable interface. When I work with my custom web part in "chain mode", which means web part p1 provides data for web part p2 and web part p2 provides data for web part p3 (p1->p2->p3) the data in all web parts are displayed properly. But, if I work with my web part in "parallel mode", which means web part p1 provides data for web parts p2 and p3 (p1->p2, p1->p3), the data only displayed in last web part p3. All connections are there!
The problem is that I must move using TableCallback object from GetTableData method on class level. Before moving it on class level, it looked as follows:
public void GetTableData(TableCallback callback)
{
callback(_table.Rows);
}
After moving it, it looks as follows:
public sealed class TableProviderWebPart : WebPart, IWebPartTableExtended
{
private TableCallback tableCallback;
...
public void GetTableData(TableCallback callback)
{
this.tableCallback = callback;
}
}
Do you have any suggestion how to make my web part work in "parallel mode" as well?
Thank you in advance.
Goran Tesic
|
|
|
|
|
hi
i write a program in ASP>NET with AJAX
when i send method to asmx whit xmlhttp if my browser be firefox it is rghith but IE has a problem some time my filds in the server side is null but when i test ajax url it is true
pls help me
mamad
|
|
|
|
|
Your question doesn't make sense. Please try and express yourself more clearly. Cutting down on the textspeak might help.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I find it had to believe that you used the ASP.NET AJAX library and it works with FF and not IE. It's a Microsoft library. If you actually wrote AJAX code, that may be the case. In either case, one has to wonder how you expect us to point out your bugs if you're not showing us any code.
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 )
|
|
|
|
|
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.
|
|
|
|