.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Asad Ali
Fauzul Azmi
Post New Web Links

Connecting dropdownlist to a data source

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :SharePoint
 

HI,

I have a external list. I changed the textbox available for Student Id column and made it as a dropdownlist. Now I want to connect the datasource to the dropdownlist. I clicked on Data fields.  In the change data bindings,  in the select datasource, i selected the datasource, data field for display text, i selected Student id, in the data field for value, i selected the student Id. Clicked on ok. In the Preview browser, when i try to view the page, i am getting error as Object reference not set error"

How to connect a dropdownlist to a datasource?

Thank you




View Complete Post


More Related Resource Links

Connecting a Sharepoint Custom list with an external Data-source

  
Hi I am planning to connect a Sharepoint Custom list with an external Data-source. External DB will be in Access 2007 format. More Information: I need a solution that we can connect our sharepoint list (one-way) to online db in a way that new  information is directly updated in the sharepoint list, whilst other info changed in sharepoint list  is not synced back to original value. Is there a way to solve this? -saumil

manage a dropdownlist though data source

  

hello,

all of you, actuly i am a new user of asp.net and i am a learner so i just want to connect two dropdownlist to data souce  and i want that the list item of second dropdown is changed according to change of selected item of first dropdown.

i have connect it to data source successfully it getting chaged items but it happance only when its load then if i select the next item of first one it would not work properly,

so please solve my problem i think you definatly give the answer.

thank you !


Toolbox: Data Snapshots, Subversion, Source Code Organization and More

  

If you want to save, organize, and annotate snapshots of your database data, find an easy way to install and configure Subversion, and automate the organization of your source code, then you'll want to read more about these latest tools.

Scott Mitchell

MSDN Magazine August 2009


Data Points: Data Source Controls in ASP.NET 2.0

  

ASP. NET 2. 0 introduces a series of new tools that improve data access including several data source and data bound controls. The new assortment of data source controls can eliminate a ton of repetitive code that was required in ASP.

John Papa

MSDN Magazine January 2005


Empty Website Data Source windown

  

Hi all,

I am Visual Web Developer user and facing a problem when I am creating a local report (.rdlc) file.

I am using Business objects as the Data Source for this report. It was working perfectly until all the items in the Website Data Source window suddenly "disappeared". The "Add New Data Source" button on this window is also disabled. Now the window is just like a blank box only. And I can't continue working with the report file like this...

I have tried undoing what I did before but it does not help at all...

Any reason for this to happen? There is no sign or something at least indicating what is wrong.

Please help.

Thanks

 ps: found a similar thread in this forum but not solved


Data Binding to Dropdownlist

  

   private void AddDBDataToControl(DataSet app_Support,int count)
    {
        int i = 0;
        while (count != 0)
        {
     

            DateTime dt = Convert.ToDateTime(app_Support.Tables[0].Rows[i]["FromDate"].ToString());

//dt=23/08/2010 10:04:00 AM

            DropDownList h1 = (DropDownList)GVDate.Rows[i].Cells[1].FindControl("txthour");
            h1.SelectedValue = dt.Hour.ToString();
            DropDownList m1 = (DropDownList)GVDate.Rows[i].Cells[2].FindControl("txtmin");
            m1.SelectedValue = dt.Minute.ToString();

            DropDownList h2 = (DropDownList)GVDate.Rows[i].Cells[5].FindControl("txthourto");
            DateTime dt2 = Convert.ToDateTime(app_Support.Tables[0].Rows[i]["To

The report cannot be opened because the data source associated with it is not a report model.

  
hi,

i tried to open a report i created in sql business intelligence development studio in the report builder in wss3 and it gave me this error:

Microsoft.ReportingServices.ReportBuilder.ReportModel.Report: The report 'http://servername:port#/Reports/report.rdl' cannot be opened because the data source 'http://servername:port#/DataSource Library/datasource.rsds' associated with it is not a report model.

This report was not created in Report Builder. Try opening this report in Report Designer instead.

can i fix this so i can open my reports in report builder?

thnx

BDC Entity as a Data Source for a Lookup column

  
Is it possible to create a custom lookup field type to have a BDC entity as the data source?

GridView editing without using data source controls?

  

I am binding my gridview without using a datasource control and instead doing it in the code behind. However, I would like to use the inline editing features of the gridview. Could someone please point me to an example that does gridview editing/updating 'manually' in the code behind?

Thanks,
Tim


Creating a SharePoint 2010 Web Part That Can Read and Write Data to an External Data Source

  
Learn to use Visual Studio 2010 to create a Visual Web Part that uses a BCS external content type in SharePoint Server 2010 to read and write data to the AdventureWorks sample database.

Sample: Creating a SharePoint 2010 Web Part That Can Read and Write Data to an External Data Source

  
Explore the code in this visual how-to article as you learn to use Visual Studio 2010 to create a Visual Web Part that uses a BCS external content type in SharePoint Server 2010.

Video: Connecting PivotTables in Excel 2007 to Data Stored in SharePoint Lists

  
Learn how to use the Open XML SDK 2.0 to create Excel 2007 PivotTables that are connected to data stored in SharePoint lists.

Sample: Connecting to a .NET Framework Source Using Business Connectivity Services in Office 2010

  
Explore the code in this visual how-to article as you learn to learn how to use Visual Studio 2010 to create a BCS external content type.

Connecting to a .NET Framework Source Using Business Connectivity Services in Office 2010 (Visual Ho

  
Watch the video and explore code as you learn how to use Visual Studio 2010 to create a BCS external content type. The external content type then connects to a .NET Framework assembly that uses XLINQ to provide read-write access to data that is stored in a simple XML data file.

Video: Connecting to a .NET Framework Source Using Business Connectivity Services in Office 2010

  
Watch this visual how-to video as you learn to create an Office 2010 Business Connectivity Services External Content Type based on a .NET Framework source.

XML Source (Data is not loading to Destination ,Package Runs sucessful)

  
Hi First I run execute SQL Task SELECT TOP(10) [Message],opportunity_Id  FROM SBP FOR XML PATH ('GS_Opportunity'), ROOT('GSOpportunities') That will make 10 different file into single file then i have assigned this output to variable and it will output as XML Now I put Data flow task ,in it I put XML task and in source i have put XML Data From Variable and I select XSD file location,now XML task is showing me different source table and i have selected appropriate destination table but when i run this package it will not transform data from source to destination,Can you suggest me what is the problem i try to put data viewer it is not transforming any data  while insted of if i select direct file location instead of variable it is running good    

.Net SqlClient Data Provider connecting as sa

  
I recently changed the sa password on a SQL 2005 std sp3 default instance. I now see .Net SQL data provider connecting with sa login from an app server. From a trace I see: Application name: .Net Sql Client data provider NTUserName: sqluser LoginName: sa HostName: app server name LoginSID: SID for sa SessionLoginName: ssd\sqluser Sqluser is a sql server logon that is not sa. SSD\sqluser is local admin on app server and is not sa on SQL SERVER and is not in builtin/administrators either. I thought an existing session may explain it but both the app server and sql server have been restarted since the sa p/w change. Could I be misinterpreting the Profiler output? Any ideas?
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend