|
You are getting this error because of DLThumbnails having two different dataSource. And the error message is saying the same thing.
If you check in codebehind,
macupryk wrote: void BindThumbnails()
{
DataSet ds = new DataSet();
ds = GetBinaryImagesByProfileID.FetchAllImagesInfo(intGetProfileID, "omegaloveConnectionString");
DLThumbnails.DataSource = ds;
DLThumbnails.DataBind();
}
You are giving data source of DLThumbnails as ds .
On the other hand, in aspx page, you have created one more SQLDataSource,
macupryk wrote: <asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:omegaloveConnectionString %>"
selectcommand="sprGetBinaryImages" selectcommandtype="StoredProcedure">
<selectparameters>
<asp:parameter name="ProfileID" type="Int32" defaultvalue="0">
and you have also assigned the same SQLDataSource as the DataSource of DLThumbnails . Which causes the confiliction error. You can remove any one them. Just Remove DataSourceID="SqlDataSource1" From Datalist aspx code. It will work
Hope this will help you. Let me know if you need any more help.
Thanks !
|
|
|
|
|
I have a web control defined like
class SomeControl<T> : WebControl
...
How do I use it directly in an aspx page (= .aspx file), with the type specification?
In the code, it is easily
SomeControl<int> ctrl = new SomeControl<int>();
but in the aspx, I am clueless. Any ideas?
|
|
|
|
|
I didn't get your question. Sorry ! Here you are creating the object of web user control, then how does this related with aspx page code. Can you please describe it in more details, so that I can help you.
Thanks!
|
|
|
|
|
Hello,
My application is in Asp.net1.1 hence the third party ABCpdf can be used in this project. Hence i created a webservice in Asp.net2.0. Upon test run, its working okay and creating the PDF document from a url and saving in one of the directory of my orignal application written in ASP.net1.1.
I created the proxy class using Wsdl.exe of vs2005 and added the class in the ASp.net1.1 application.Build is okay. no error. But this class in not refereced in the project. Hence i cannot invoke the method to save the webpage as PDF. How to reference the proxy class. Its object is not being created and the project is not recognizing. The rest of the ASp.net1.1 project is in VB.net but this proxy class in in C#.
What should i do.Every thing is working okay i just need to invoke the webservice from ASP.net1.1 project. Plz help.
Thanks,
Ali
|
|
|
|
|
|
Thanks alot. My issue is solved.
|
|
|
|
|
Any Time ..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I have a very large XMLDocument with 56,000 child records each having 8 child field elements. The application that i have written performs a complicated process on the XML. It can process 10,000 records in 5 minutes and 20,000 in 25 minutes (increases exponentially) but takes maybe 10 hours to process the 56,000 record (which is unacceptable). Whats the best way to de-batch this XML Document into bite size chunks (eg 10,000 and after 5 iteration will process 50,000. which will execute in 25-30 minutes processing time)
Thanks.
|
|
|
|
|
Have you tried any multi-threading? I'd also revisit the algorithm, or work being done; it seems excessive to use that much time. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
You can try these 3 ways...
1. as Mark suggested use multithreading
2. load the xml doument in datatable and perform the task, it will be much more faster then processing a file on the disk.
3. if possible try to create a global temp table in sql server (##tablename , so that you don't lose the table on connecting close), and insert the xml document in the table and after that you can fire Select / Update statement on the table and get desired result.
you can use all of the 3 at the same time to get the improved performance...modified on Sunday, February 28, 2010 6:39 PM
|
|
|
|
|
Thanks i'll give that a try
|
|
|
|
|
I hava a simple Web Service create by C#.
And now I need to let the user visit this web service through apache.
How to set it in the apache, it need to modify the C# code?
|
|
|
|
|
|
It is a good answer, thanks very musch
|
|
|
|
|
Hi,
I gave the follow code snippet :
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" />
<div>
<asp:ComboBox ID="ComboBox1" runat="server">
<asp:ListItem Text="Item1" Selected="True" />
<asp:ListItem Text="Item2" />
<asp:ListItem Text="Item3" />
<asp:ListItem Text="Item4" />
</asp:ComboBox><br /><br />
<asp:Button ID="EnableButton" runat="server" Text="Enable"
onclick="EnableButton_Click" /> 
<asp:Button ID="DisableButton" runat="server" Text="Disable"
onclick="DisableButton_Click" />
With code behind :
<br />
protected void EnableButton_Click(object sender, EventArgs e)<br />
{<br />
ComboBox1.Enabled = true;<br />
}<br />
<br />
protected void DisableButton_Click(object sender, EventArgs e)<br />
{<br />
ComboBox1.Enabled = false;<br />
}<br />
Why do I have to press the "Enable" button twice to enable a disabled ComboBox ?
How can I solve the problem ?
tia
|
|
|
|
|
You don't have an ajax combobox. Just by placing a scriptmanager on the page does not automagically make it ajax.
Enabling and disabling controls can easily be accomplished on the client-side with javascript. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
This is because you are not using an UpdatePanel . add an UpdatePanel on the page and put everything inside except ScirptManager . and it will work. and also use the scriptmanager instead of toolkitscriptmanager.
if you want to do this without AJAX for testing then add Response.Redirect("~\ThisPage.aspx"); after you set the combobox enable true or false, and you dont have to click twice to enable or disable it.
|
|
|
|
|
Are web form generators like:
http://www.wufoo.com
http://www.elbowspace.com
http://www.formsping.com
http://www.fospace.com
considered web 2.0?
|
|
|
|
|
Hi,
can anyone guide please on how to retrive ads for the AdRotator control from SQL server and update the views and clicks plz..
Thanks,
|
|
|
|
|
|
Hi,
I have tried few ASP.NET hosting providers so far but I still have problems with them, mostly server is down or emails are not reaching when I send though my ASP.NET..
Can you please share your thoughts with me..
which hosting provider you are using now? are you happy with them?
Thanks..
|
|
|
|
|
jrahma wrote: mostly server is down or emails are not reaching
This means, you Hosting server is not working properly. You can ask them to resolve the issue.
Which Server are you using hosting ?
|
|
|
|
|
well, i used 1&1, m6, discountasp, brinkster and maximumasp..
I will now try serverintellect, their plans and price are good but they need to add more hard disk space and bandwidth to the their plans I guess
I hope they will be good...
|
|
|
|
|
Looks like you've already tried quite a few and I've also used most of those over a period of time. Presently using DiscountASP.net and SoftSys neither of which have given any trouble whatsoever. If you're having trouble with all of those hosts is it possible the issue is yours and not theirs?
Have you tried speaking to any of them to resolve the issues? I know that, for instance, DiscountASP.Net have a pretty good support system and when I've needed info to make soemthing work they have been very helpful.Tychotics: take us back to the moon
"Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars."
H. G. Wells
|
|
|
|
|