User Profile & Activity

A Yousif Member
Page
of 29
Posted: November 13, 2009 9:01 AM

Well, technically I changed the DataSourceID that was already there in your sample.  I just changed it from an Access source to a SQL source. ;)  But you nailed it.  Removing the DataSourceID did the trick.  However, I did not want to use multiple columns but just a normal pulldown list and I accomplished it with the following configuration:

ASPX Markup

        <ISWebCombo:WebCombo 
            ID="WebCombo1" runat="server"
            Height="20px" Width="200px" >
        </ISWebCombo:WebCombo>

Codebehind:

combo.DataMember = "DefaultView";
combo.DataTextField = "reportSetName";
combo.DataValueField = "reportSetID";

combo.LayoutSettings.StatusBoxVisible = false;

combo.Columns.Add("reportSetName");
combo.Columns.Add("reportSetID");

DataView dv = (DataView)SqlDataSource1.Select(new DataSourceSelectArguments("reportSetID DESC"));

combo.PopulateUnboundData(dv,false);

Thanks Gordon.

Would you please add this as a feature request?  Thanks.

Posted: November 12, 2009 9:38 AM

Yes, I experience the post back with your sample.  I had to modify it to use a SQL data source, but that's it.  I've included my video and you can see it post back when I pull it down the first time.  I put a block of code in with a check for Page.IsPostBack to make it clear.

Posted: November 11, 2009 8:40 AM

I appreciate the video and all, but it doesn't resolve the "problem."  I need the combo to be filled upon rendering and to not post back at all.  Just like it does in unbound mode but I have to be able to have a value/text pair in that mode.

Posted: November 10, 2009 9:20 AM

Gordon,

Although this works with an unbound data set.  It still posts back and that's what I don't want.  I need the combo box to populate with all the data items and NOT post back per my original description please.  Please unmark your response as an answer since it has not provided a solution to this issue.  Thank you.

Posted: November 9, 2009 8:39 AM

Hi Grodon,

Thank you so much.  I had a feeling you guys had to have something like this.  I'm sorry I couldn't find it in the references as I looked and looked.  This is a huge deal so I'm glad you were able to dig it up.  Thanks again.

Posted: November 6, 2009 10:24 AM

I'm running into one more issue with the solution above.  Even though I can store the value in a hidden cell, when I finally post the page back, I cannot retrieve this value.  When I check the Page.Request.Params collection, only the combo box text is available and the value is not part of the fields posted back.  Any ideas on how to retrieve this value?  Thanks.

You have to look at the entire thread in context.  Don't just take one snippet out of it.  If that was the last entry, then yeah, it would make sense, but it's not.

I'm sure you're capable of creating a web control that handles events in about 10 minutes.  All you have to do is create a control derived from WebControl and implement the IPostBackEventHandler interface.

Hello again,

We'd love to help you resolving your problem as soon as possible. To make that happen, it'll be very helpful if you can provide us a reproducible sample based on your unique scenario, so that we can efficiently investigate your issue and provide a working solution at the soonest.

Looking forward to your sample. Thanks!

I'm sorry, why can't you create a simple page with a WebMenuBar and a custom WebControl control?  I'm very busy with my own work and don't have time to constantly create samples that you can easily create yourselves.

Of course I read this.  That's why I said what I said regarding no personal attacks or anything like that.  My statement is negative feedback towards the lack of helpful input from your end, so I don't understand why you would remove that.

You disrespect us, your customers, when you do not provide quality support and feedback and waste our time.  You should really head your own signature of "Providing the most excellent technical support for Intersoft customers. Your satisfaction is our success." because so far that hasn't been the case from my perspective.  And when I say "you" I mean InterSoft and not you personally.

You have to look at the entire thread in context.  Don't just take one snippet out of it.  If that was the last entry, then yeah, it would make sense, but it's not.

I'm sure you're capable of creating a web control that handles events in about 10 minutes.  All you have to do is create a control derived from WebControl and implement the IPostBackEventHandler interface.

All times are GMT -5. The time now is 11:36 PM.
Previous Next