this is a part of my Stored Procedure :
Create procedure sp_Units_GetUnitState
@PadidehOrAtkinsCode int
as
Select State from Units where ID = @PadidehOrAtkinsCode
go
I have a DataSet (.XSD) file which has my StoredProcedure (named GetDataBy1 here)

I pass the parameter like this :
odsUnit.SelectParameters["PadidehOrAtkinsCode"].DefaultValue =
txtPadidehOrAtkinsCode.Text;
Now I want to fill my textbox Text property with the State field I had in my stored procedure, what should I do to get the value from osdUnit?

Create an object of your stored procedure and call the GetData function. No need to assign select parameters to your objectdatasource. Follow below example: I assumed your dataset name is dataset1.